Update pyinstxtractor.py

This commit is contained in:
pr0f35510n4l 2020-07-29 08:53:19 +03:00 committed by GitHub
commit e7e2fb8521
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,9 +238,10 @@ class PyInstArchive:
f.write(data)
def extractFiles(self):
def extractFiles(self, extractionDir=sys.argv[2]):
print('[+] Beginning extraction...please standby')
extractionDir = os.path.join(os.getcwd(), os.path.basename(self.filePath) + '_extracted')
if extractionDir is None:
extractionDir = os.path.join(os.getcwd(), os.path.basename(self.filePath) + '_extracted')
if not os.path.exists(extractionDir):
os.mkdir(extractionDir)