Comments (4)
Might be built with a modified pyinstaller.
from pyinstxtractor.
nameLen = struct.calcsize('!IIIIBc')
(entryPos, cmprsdDataSize, uncmprsdDataSize, cmprsFlag, typeCmprsData, name) = struct.unpack( '!IIIBc{0}s'.format(entrySize - nameLen), self.fPtr.read(entrySize - 4))
As I wrote, change signed integer in the code to unsigned integer will solve this bug.
Search: struct.unpack('!8siiii64s', self.fPtr.read(self.PYINST21_COOKIE_SIZE))Replace: struct.unpack('!8sIIII64s', self.fPtr.read(self.PYINST21_COOKIE_SIZE))
iiii to IIII , signed integer to unsigned integer.
search and replace these code also:
nameLen = struct.calcsize('!IIIIBc')(entryPos, cmprsdDataSize, uncmprsdDataSize, cmprsFlag, typeCmprsData, name) =
struct.unpack(
'!IIIBc{0}s'.format(entrySize - nameLen),
self.fPtr.read(entrySize - 4))
lmcjrrg [email protected] 于2022年11月28日周一 17:29写道:
I also encountered this problem, local pyinstaller=5.6[+] Processing start_program.exe
[+] Pyinstaller version: 2.1+
[+] Python version: 3.10
[+] Length of package: -1928081237 bytes
[+] Found 10364 files in CArchive
[+] Beginning extraction...please standby
Traceback (most recent call last):
File "E:\workFile\windows_final_file\dist\pyinstxtractor.py", line 454, in
main()
File "E:\workFile\windows_final_file\dist\pyinstxtractor.py", line 443, in main
arch.extractFiles()
File "E:\workFile\windows_final_file\dist\pyinstxtractor.py", line 277, in extractFiles
data = zlib.decompress(data)
zlib.error: Error -5 while decompressing data: incomplete or truncated stream—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
from pyinstxtractor.
from pyinstxtractor.
As I wrote, change signed integer in the code to unsigned integer will solve this bug. Search: struct.unpack('!8siiii64s', self.fPtr.read(self.PYINST21_COOKIE_SIZE)) Replace: struct.unpack('!8sIIII64s', self.fPtr.read(self.PYINST21_COOKIE_SIZE)) iiii to IIII , signed integer to unsigned integer. search and replace these code also: nameLen = struct.calcsize('!IIIIBc') (entryPos, cmprsdDataSize, uncmprsdDataSize, cmprsFlag, typeCmprsData, name) = struct.unpack( '!IIIBc{0}s'.format(entrySize - nameLen), self.fPtr.read(entrySize - 4)) lmcjrrg @.> 于2022年11月28日周一 17:29写道:
…
I also encountered this problem, local pyinstaller=5.6 [+] Processing start_program.exe [+] Pyinstaller version: 2.1+ [+] Python version: 3.10 [+] Length of package: -1928081237 bytes [+] Found 10364 files in CArchive [+] Beginning extraction...please standby Traceback (most recent call last): File "E:\workFile\windows_final_file\dist\pyinstxtractor.py", line 454, in main() File "E:\workFile\windows_final_file\dist\pyinstxtractor.py", line 443, in main arch.extractFiles() File "E:\workFile\windows_final_file\dist\pyinstxtractor.py", line 277, in extractFiles data = zlib.decompress(data) zlib.error: Error -5 while decompressing data: incomplete or truncated stream — Reply to this email directly, view it on GitHub <#61 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACPUJIRKVL3C75IOFMS4E3WKR3QPANCNFSM6AAAAAASKEIXLQ . You are receiving this because you authored the thread.Message ID: @.>
Thank you. I have solved the problem according to your method. It's great
from pyinstxtractor.
Related Issues (20)
- Can you commit it to PyPi HOT 1
- How to patch a .pyc file in existing pyinstaller build? HOT 6
- Missing cookie, unsupported pyinstaller version or not a pyinstaller archive HOT 9
- Missing cookie, unsupported pyinstaller HOT 1
- Missing cookie, unsupported pyinstaller version or not a pyinstaller archive HOT 9
- PYZ-00.pyz cannot decrypt. I have tried many ways, but I cannot extract them HOT 2
- Missing cookie, unsupported pyinstaller version or not a pyinstaller archive HOT 5
- [!] Error : Missing cookie, unsupported pyinstaller version or not a pyinstaller archive HOT 2
- Missing cookie, unsupported pyinstaller version or not a pyinstaller archive HOT 3
- [!] Error : Missing cookie, unsupported pyinstaller version or not a pyinstaller archive HOT 4
- Not working HOT 1
- Decompile incomplete HOT 1
- Missing cookie HOT 2
- Doesn't Support python3.11
- how to use? HOT 14
- [!] Error: Could not open run.exe
- No pyc file generated HOT 2
- Unsupported opcode: MAKE_CELL pass # WARNING: Decompyle incomplete HOT 1
- is there anyway to pack extract folder to exe again ? HOT 1
- [!] Error : Missing cookie, unsupported pyinstaller version or not a pyinstaller archive HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyinstxtractor.