From 0d2cfaeab194ef7e483812641f7df58de98ea1ab Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Tue, 22 Sep 2015 22:18:56 +0200 Subject: [PATCH] adding kill command --- README.md | 1 + pupy/pupy.conf | 2 +- pupy/pupylib/PupyCmd.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 44cbca86..c8467938 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Pupy is an opensource RAT (Remote Administration Tool) written in Python. Pupy u - socks5 proxy - interactive shell (cmd.exe, /bin/sh, ...) - interactive python shell +- shellcode exec (thanks to @byt3bl33d3r) ##Quick start In these examples the server is running on a linux host (tested on kali linux) and it's IP address is 192.168.0.1 diff --git a/pupy/pupy.conf b/pupy/pupy.conf index a77bd9c0..e9c335b8 100644 --- a/pupy/pupy.conf +++ b/pupy/pupy.conf @@ -14,5 +14,5 @@ pyexec = pyexec exec = shell_exec ps = ps migrate = migrate -contest = pyexec -c 'print "ok"' +kill = process_kill #tasklist = shell_exec 'tasklist /v' diff --git a/pupy/pupylib/PupyCmd.py b/pupy/pupylib/PupyCmd.py index 217161d8..2385f616 100644 --- a/pupy/pupylib/PupyCmd.py +++ b/pupy/pupylib/PupyCmd.py @@ -360,10 +360,11 @@ class PupyCmd(cmd.Cmd): self.stdout.write("{:<20} {}\n".format(m, color(d,'grey'))) def do_clients(self, arg): + """ alias for sessions """ self.do_sessions(arg) def do_sessions(self, arg): - """ display connected clients """ + """ display/interact with connected clients """ arg_parser = PupyArgumentParser(prog='sessions', description=self.do_sessions.__doc__) arg_parser.add_argument('-i', '--interact', metavar='', help="change the default --filter value for other commands") arg_parser.add_argument('-g', '--global-reset', action='store_true', help="reset --interact to the default global behavior")