Comments (6)
https://github.com/extremecoders-re/pyinstxtractor/wiki/Replacing-files-inside-the-CArchive
In this article, the new file has to be less than the old one.
what to do if the new file is more in size??
from pyinstxtractor.
Will that violate any checksums or anything?
There no checksums used anywhere in pyinstaller.
In this article, the new file has to be less than the old one.
what to do if the new file is more in size??
If the new file is larger in size than the older it implies all other files which are located after that file have to be shifted. As a result, the table of contents of the CArchive has to be updated with the new offsets for all the affected files.
from pyinstxtractor.
Yes, I shifted everything properly and I updated the TOC also the Cookie.
The patched program does not execute properly. I get killed
as soon as i run the program.
The thing is that the position of the cookie is also updated, but I dont know there the offset of the cookie is stored, so that is not updated, hence maybe that is why it does not execute.
As a sanity check i ran pyinstxtractor.py on the pathced file, and it is able to extract everything without any error. so i have updated all offsets etc ( which are mentioned in your script ) properly.
Also, I am on a mac.
from pyinstxtractor.
I think there is some content in the tail which has to be updated, idk what all though.
from pyinstxtractor.
I see. Mac is tricky. If you go through the pyinstaller source, it requires signing the executable. The modifications invalidates the signature and could be the reason why the process gets killed immediately.
from pyinstxtractor.
Yup, unsigning it, then patching it and signing it again works. Thanks.
Whats surprising is that you dont have to do that if the payload is smaller in size.
from pyinstxtractor.
Related Issues (20)
- 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
- C
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.