Do a case insensitive string search for "python" in cookie buffer, Fixes #47

This commit is contained in:
extremecoders-re
2022-06-05 11:45:51 +03:00
committed by GitHub
parent 4dc147a379
commit eba6b6681c

View File

@@ -174,7 +174,7 @@ class PyInstArchive:
self.fPtr.seek(self.cookiePos + self.PYINST20_COOKIE_SIZE, os.SEEK_SET)
if b'python' in self.fPtr.read(64):
if b'python' in self.fPtr.read(64).lower():
print('[+] Pyinstaller version: 2.1+')
self.pyinstVer = 21 # pyinstaller 2.1+
else: