shadowbrokers-exploits/windows/Resources/Ops/PyScripts/reproject.py
2017-04-14 11:45:07 +02:00

17 lines
No EOL
491 B
Python

import dsz, dsz.ui
import os.path, sys
import ops
def main(args):
if (len(args) != 1):
dsz.ui.Echo('Usage: reproject <project>', dsz.ERROR)
return 0
f = open(os.path.join(ops.LOGDIR, 'project.txt'), 'w')
f.write(args[0].upper())
f.close()
dsz.ui.Echo(("Target %s's project has been changed to %s" % (ops.TARGET_ADDR, args[0].upper())))
return 1
if (__name__ == '__main__'):
if (main(sys.argv[1:]) != True):
sys.exit((-1))