Giter VIP home page Giter VIP logo

Comments (5)

rocky avatar rocky commented on August 11, 2024

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.

glensc avatar glensc commented on August 11, 2024

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.

rocky avatar rocky commented on August 11, 2024

In order for this to be a proper bug report that is actionable, I need:

  1. A python interpreter that can execute this code. Let's start out with what python -V reports. Do you have that?
  2. 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.

glensc avatar glensc commented on August 11, 2024

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.

rocky avatar rocky commented on August 11, 2024

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)

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.