V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
EricJia
V2EX  ›  问与答

如何反编译 pyc 文件

  •  
  •   EricJia · Aug 29, 2021 · 1596 views
    This topic created in 1708 days ago, the information mentioned may be changed or developed.

    尝试 1: https://tool.lu/pyc/, 底层用的应该是这个库 https://github.com/zrax/pycdc 。 能反编译出 90%, 个别位置会提示# WARNING: Decompyle incomplete,

    尝试 2:easy python decompiler, 底层应该用的 uncompyle6,提示 magic number error

    尝试 3:uncompyle6, 同样 ImportError: Unknown magic number in

    请问还有什么黑魔法吗?

    如有老哥赐教,wx 200+大红包送上, 以示感激。

    EricJia
        1
    EricJia  
    OP
       Aug 29, 2021
    magic number 是 610d 0d0a,python3.9
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   812 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:37 · PVG 03:37 · LAX 12:37 · JFK 15:37
    ♥ Do have faith in what you're doing.