GithubHelp home page GithubHelp logo

Comments (4)

extremecoders-re avatar extremecoders-re commented on August 30, 2024

Might be built with a modified pyinstaller.

from pyinstxtractor.

kitcheng avatar kitcheng commented on August 30, 2024

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.

kitcheng avatar kitcheng commented on August 30, 2024

from pyinstxtractor.

lmcjrrg avatar lmcjrrg commented on August 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.