Update pyinstxtractor.py

This commit is contained in:
pr0f35510n4l 2020-07-29 09:03:38 +03:00 committed by GitHub
commit 26ff99d7f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,10 +237,11 @@ class PyInstArchive:
with open(nm, 'wb') as f:
f.write(data)
def extractFiles(self, extractionDir=sys.argv[2]):
def extractFiles(self):
print('[+] Beginning extraction...please standby')
if extractionDir is None:
if sys.argv[2] != "":
extractionDir = sys.argv[2]
else:
extractionDir = os.path.join(os.getcwd(), os.path.basename(self.filePath) + '_extracted')
if not os.path.exists(extractionDir):