python反编译工具_Python 反编译工具uncompyle2

Usage: uncompyle2 [OPTIONS]... [ FILE | DIR]...

Examples:

uncompyle2 foo.pyc bar.pyc # decompile foo.pyc, bar.pyc to stdout

uncompyle2 -o . foo.pyc bar.pyc # decompile to ./foo.dis and ./bar.dis

uncompyle2 -o /tmp /usr/lib/python1.5 # decompile whole library

Options:

-o output decompiled files to this path:

if multiple input files are decompiled, the common prefix

is stripped from these names and the remainder appended to

uncompyle -o /tmp bla/fasel.pyc bla/foo.pyc

-> /tmp/fasel.dis, /tmp/foo.dis

uncompyle -o /tmp bla/fasel.pyc bar/foo.pyc

-> /tmp/bla/fasel.dis, /tmp/bar/foo.dis

-s if multiple input files are decompiled, the common prefix

is stripped from these names and the remainder appended to

uncompyle -o /tmp /usr/lib/python1.5

-> /tmp/smtplib.dis ... /tmp/lib-tk/FixTk.dis

-c attempts a disassembly after compiling

-d do not print timestamps

-m use multiprocessing

--py use '.py' extension for generated files

--norecur don't recurse directories looking for .pyc and .pyo files

--verify compare generated source with input byte-code

(requires -o)

--help show this message

Debugging Options:

--showasm -a include byte-code (disables --verify)

--showast -t include AST (abstract syntax tree) (disables --verify)

Extensions of generated files:

'.pyc_dis' '.pyo_dis' successfully decompiled (and verified if --verify)

'.py' with --py option

+ '_unverified' successfully decompile but --verify failed

+ '_failed' uncompyle failed (contact author for enhancement)

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值