Revert "Fixed dll payload generation in genpayload.py"

This reverts commit c5582dc7ed.
This commit is contained in:
byt3bl33d3r 2015-09-22 14:58:59 +02:00
parent 3a57c0ef82
commit 99e075853f
1 changed files with 9 additions and 12 deletions

View File

@ -66,19 +66,16 @@ if __name__=="__main__":
with open(outpath, 'wb') as w:
w.write(binary)
elif args.type=="dll_x64":
binary=get_edit_binary(os.path.join("payloads","pupyx64.dll"), args.host, args.port)
outpath="pupyx64.exe"
if args.output:
outpath=args.output
with open(outpath, 'wb') as w:
w.write(binary)
exit("not implemented")
elif args.type=="dll_x86":
binary=get_edit_binary(os.path.join("payloads","pupyx86.dll"), args.host, args.port)
outpath="pupyx64.exe"
if args.output:
outpath=args.output
with open(outpath, 'wb') as w:
w.write(binary)
exit("not implemented")
pass
else:
exit("Type %s is invalid."%(args.type))
print "binary generated to %s with HOST=%s"%(outpath,(args.host, args.port))