Skip to main content

pydumpck is a multi-threads tool for decompile exe,elf,pyz,pyc packed by python which is base on pycdc and undecompyle6.sometimes its py-file result not exactly right ,maybe could use uncompyle6.

Project description

pypi version pypi download GitHub release GitHub All Releases GitHub last commit

WindowsLinuxUbuntuKaliFreeBSDDeepinDebianCent OS

What?

pydumpck is a multi-threads tool for decompile exe,elf,pyz,pyc packed by python which is base on pycdc and undecompyle6.sometimes its py-file result not exactly right ,maybe could use uncompyle6.

Install

pip install pydumpck

Usage

usage: pydumpck [-h] [-o OUTPUT_DIRECTORY] [-w THREAD] [-t TIMEOUT] [--session-timeout TIMEOUT_SESSION]
                [-y TARGET_FILE_TYPE] [-d [DECOMPILE_FILE ...]] [-v [SHOW_VERSION]] [-p [PLUGIN ...]]
                [target_file]

pydumpck is a tool for decompile exe,elf,pyz,pyc packed by python which is base on pycdc.sometimes its py-file result
not exactly right ,maybe could use uncompyle6 etc.

positional arguments:
  target_file           file to extract or decompiler,combine with -y for type select.

options:
  -h, --help            show this help message and exit
  -o OUTPUT_DIRECTORY, --ouput OUTPUT_DIRECTORY
                        output archive file to (default: ./output).
  -w THREAD, --thread THREAD
                        thread count for running (default: 0) cpu-count * 2.
  -t TIMEOUT, --timeout TIMEOUT
                        timeout running single decompiler (default: 10).
  --session-timeout TIMEOUT_SESSION
                        timeout running total task (default: 10).
  -y TARGET_FILE_TYPE, --type TARGET_FILE_TYPE
                        file-type of input file,can use pe,exe,elf,pyc,pyz (default: None : auto guess).
  -d [DECOMPILE_FILE ...], --decompile_file [DECOMPILE_FILE ...]
                        only decompile referred file for quick complete (default: None).
  -v [SHOW_VERSION], --version [SHOW_VERSION]
                        show version of package
  -p [PLUGIN ...], --plugin [PLUGIN ...]
                        enable decompiler plugins,split by space .example: `--plugin pycdc uncompyle6` (default:
                        ['pycdc']).available:pycdc,uncompyle6

Quick Start

pydumpck xxx.exe
pydumpck xxx.elf
pydumpck xxx.pyc
pydumpck xxx.pyz
pydumpck xxx.exe --output ./output --thread 8 --timeout 10

Example

  • -p/--plugin specified which plugin to use for decompile (pycdc|uncompyle6)

pydumpck xxx.exe -p uncompyle6

pydumpck xxx.exe -p pycdc uncompyle6

  • -d/--decompile_file specified which file(s) to decompile for a faster run

pydumpck xxx.exe -d main for only target main.py

pydumpck xxx.exe -d main lib_base64 secert for targets main.py and lib_base64.py and secert.py

Notice

pycdc speed is more than 10 times faster than uncompyle6 , and uncompyle6 is not support for python that version above 3.8.

however pycdc sometimes return a not precisely right result.

in pydumpck , you can use --plugin uncompyle6 for single-use or --plugin pycdc uncompyle6 for both-use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydumpck-1.4.46.tar.gz (233.2 kB view details)

Uploaded Source

Built Distributions

pydumpck-1.4.46-py3.10.egg (234.0 kB view details)

Uploaded Source

pydumpck-1.4.46-py3-none-any.whl (234.7 kB view details)

Uploaded Python 3

File details

Details for the file pydumpck-1.4.46.tar.gz.

File metadata

  • Download URL: pydumpck-1.4.46.tar.gz
  • Upload date:
  • Size: 233.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pydumpck-1.4.46.tar.gz
Algorithm Hash digest
SHA256 c085035592fa399f61d7463598038b988b8b095369978853ae5ef98860f7ce38
MD5 e69b051292e1d02156d9585eead6983f
BLAKE2b-256 b290d4afb7b6397a1c195efcdcd0b0b86586748e1de664e1a12e6ffb59d37565

See more details on using hashes here.

Provenance

File details

Details for the file pydumpck-1.4.46-py3.10.egg.

File metadata

  • Download URL: pydumpck-1.4.46-py3.10.egg
  • Upload date:
  • Size: 234.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pydumpck-1.4.46-py3.10.egg
Algorithm Hash digest
SHA256 85ea82a1c6de94ebbbabed5afbc8e3b3f0913574b20a0bae9d5d1d563c0fc3f4
MD5 e0d8a1492af36afc4f6831bc85115cd7
BLAKE2b-256 faa37a6c84d28f05af6bcbdccb268f6aa890cea18d144d4081a6473b7a6590a4

See more details on using hashes here.

Provenance

File details

Details for the file pydumpck-1.4.46-py3-none-any.whl.

File metadata

  • Download URL: pydumpck-1.4.46-py3-none-any.whl
  • Upload date:
  • Size: 234.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pydumpck-1.4.46-py3-none-any.whl
Algorithm Hash digest
SHA256 036b465e2d7a82adfadb52338f7b500f50aa83605fb23ad71726b3eba3e34bcd
MD5 bd1cc9550eebf742b21f5f8f73292e02
BLAKE2b-256 6850058afa2c02ac435eefa95141b68e933f45b76a7fb6b6503db961654c3326

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page