Skip to content

Instantly share code, notes, and snippets.

@robsware
Last active April 12, 2021 17:59
Show Gist options
  • Save robsware/d5e4844115fc802fd6f833fa021aca8d to your computer and use it in GitHub Desktop.
Save robsware/d5e4844115fc802fd6f833fa021aca8d to your computer and use it in GitHub Desktop.
import os
#cd to PoC git folder
os.chdir(r'C:\APPS\Tools\Tools\CVE-2020-1472-master')
with open("DCs.txt", encoding="utf-16") as file_in:
lines = []
for line in file_in:
lines.append(line)
for line in lines:
os.system('echo ' + line.rstrip() + " >> log.txt")
os.system('python zerologon_tester.py ' + line.rstrip() + ' >> log.txt')
@niemant
Copy link

niemant commented Apr 12, 2021

is there a way to implement a progress bar or some kind of verbose output in order to identify if the script is running correctly, if it failed but didn't exited or if it's having some kind of issue?

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment