Comments (4)
Without the pyc file or atleast a disassembly of the code it's hard to provide any helpful suggestions.
from pyinstxtractor.
The pyc file
added to that when i try to uncompyle the PYZ extracted archieves files it just stops uncompyle6 as a whole and doesnt output neither the error nor the code
from pyinstxtractor.
This is neither a bug of pyinstxtractor or uncompyle6. If you try to disassemble the code using dis, it would fail the same way.
>>> import marshal
... import dis
... f=open('backup_decryptor.pyc','rb')
... f.seek(16)
... co=marshal.load(f)
>>> dis.dis(co)
1 0 STORE_GLOBAL 0 (builtins)
>> 2 STORE_GLOBAL 1 (bi)
4 IMPORT_NAME 0 (builtins)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\users\administrator\miniconda3\envs\py38\lib\dis.py", line 79, in dis
_disassemble_recursive(x, file=file, depth=depth)
File "c:\users\administrator\miniconda3\envs\py38\lib\dis.py", line 373, in _disassemble_recursive
disassemble(co, file=file)
File "c:\users\administrator\miniconda3\envs\py38\lib\dis.py", line 369, in disassemble
_disassemble_bytes(co.co_code, lasti, co.co_varnames, co.co_names,
File "c:\users\administrator\miniconda3\envs\py38\lib\dis.py", line 401, in _disassemble_bytes
for instr in _get_instructions_bytes(code, varnames, names,
File "c:\users\administrator\miniconda3\envs\py38\lib\dis.py", line 345, in _get_instructions_bytes
argval, argrepr = _get_name_info(arg, varnames)
File "c:\users\administrator\miniconda3\envs\py38\lib\dis.py", line 304, in _get_name_info
argval = name_list[name_index]
IndexError: tuple index out of range
The code is quite unusual as you don't see the STORE_GLOBAL
instruction right at the start when the operand stack empty.
Further, if you try to run the pyc on standard Python 3.8 in Linux it fails with a segfault.
$ python3 --version
Python 3.8.2
$ python3 backup_decryptor.pyc
Segmentation fault (core dumped)
All of this strongly suggests that the Python interpreter which successfully "runs" this pyc uses different sets of instructions than the standard one. That is the opcodes have been changed. To decompile, you need to figure out the new opcodes, and remap them back to original after which uncompyle6 would work.
from pyinstxtractor.
Thanks for that, got it now
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.