Comments (5)
The short is we need more information about that specific Magic number and what marshal format it uses. BTW that information now handled by project http://github.com/rocky/python-xdis not this one.
So let's review what's in that old issue.
wibiti:
That magic number is "newer" than the the most recent python 2.7.3 release.
Maybe it's from a pre-release version of 2.7.4. Or it could be from a custom python version.
You could try adding 62215 to the magic numbers in magics.py.
SharmaVimarsh:
After adding the magic number in magics.py file, now its giving me "ValueError: bad marshal data (unknown type code)"
wibiti
That error comes from the marshal module which is a standard python module.
Even though we are on 2.7.11 or 2.7.12, the same thing applies. Note that pycdc barfs on this as well.
from python-uncompyle6.
the reproducer is present in bugreport (all needed for debugging is public content) and the .pyc files in question are not mine, do not know how ithey are produced. i can only guess it's from "custom build". the error is reproducible with any .pyc from the tarball.
from python-uncompyle6.
In order for this to be a proper bug report that is actionable, I need:
- A python interpreter that can execute this code. Let's start out with what
python -V
reports. Do you have that? - Information about what rules it uses for demarshalling. Whatever rules it is following, it doesn't fit into later Python 2.7's or Python 3.x releases.
When you have this feel free to reopen in the xdis repo.
from python-uncompyle6.
Those Python files are used by dropbox client, there's no "bin/python" just "bin/dropbox" binary:
$ ldd .dropbox-dist/dropbox-lnx.x86_64-3.20.1/dropbox
linux-vdso.so.1 (0x00007fffb61fe000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f750b7dd000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f750b5d9000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f750b3d6000)
libm.so.6 => /lib64/libm.so.6 (0x00007f750b0d1000)
libc.so.6 => /lib64/libc.so.6 (0x00007f750ad2d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f750b9fa000)
$ LC_ALL=C ls -ld .dropbox-dist/dropbox-lnx.x86_64-3.20.1/dropbox
-rwxr-xr-x 1 glen glen 23697900 May 7 01:30 .dropbox-dist/dropbox-lnx.x86_64-3.20.1/dropbox*
from python-uncompyle6.
xdis release 2.3.0 can now decode custom dropbox Python binaries with magic number 62215.
That's the magic now from an older release of dropbox. I don't imagine uncompyle6 will handle newer releases unless others deal with the decryption aspect needed dropbox's python bytecode.
from python-uncompyle6.
Related Issues (20)
- KeyError: 7198 Any idea on how to fix that ?
- TypeError: '>=' not supported between instances of 'str' and 'int' HOT 2
- lambda + dict comprehension is not decompiled properly HOT 2
- bug HOT 1
- just became a sponsor and need help to uncompyle python 3.11 exe file HOT 1
- Unknown magic number 227 in shopee.pyc
- Program crashes on Windows Conda Python 3.x HOT 9
- failure for "if a or not b:" HOT 5
- Incorrect decompilation of genexpr with `if isinstance` HOT 1
- liberapay link ? HOT 4
- Request for uncompyle6 to support newer versions of python.
- Missing "While True" HOT 4
- Redundant "else:"
- List comprehensions inside of a lambda print only `[` HOT 4
- Unsupported Python version, 3.11, for decompilation HOT 3
- AssertionError HOT 1
- Added support for later versions of Python
- uncompyle6 / decompile / issue HOT 1
- whilestmt38 contains a "_stmts" instead of one of "l_stmts", "l_stmts_opt", "pass" HOT 1
- does not smell like code
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 python-uncompyle6.