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
commit eba6b6681c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: