Svenskithesource / PyArmor-Unpacker

A deobfuscator for PyArmor.
GNU General Public License v3.0
493 stars 73 forks source link

Running bypass.py results in TypeError: code() argument 13 must be str, not int #62

Open afan441524641 opened 2 months ago

afan441524641 commented 2 months ago

(py312) F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted>python bypass.py ZHUCEJI.pyc Preparing the unpacker... Preparation completed Initializing the hook Hook installed Running the main entry file, continue? (y/n): y Hook triggered Creating dump folder Done, loading the encrypted code object Code object successfully loaded, decrypting and removing pyarmor from it now F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted\bypass.py:358: DeprecationWarning: co_lnotab is deprecated, use co_lines instead. new_kwargs[k] = getattr(orig, k) Traceback (most recent call last): File "F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted\bypass.py", line 419, in log code = output_code(code) ^^^^^^^^^^^^^^^^^ File "F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted\bypass.py", line 209, in output_code co_consts=tuple(output_code(name) for name in obj.co_consts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted\bypass.py", line 209, in co_consts=tuple(output_code(name) for name in obj.co_consts) ^^^^^^^^^^^^^^^^^ File "F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted\bypass.py", line 203, in output_code obj = copy_code_obj( ^^^^^^^^^^^^^^ File "F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted\bypass.py", line 359, in wrapee return func(new_kwargs) ^^^^^^^^^^^^^^^^^^ File "F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted\bypass.py", line 378, in wrappe return f(bound.kwargs) ^^^^^^^^^^^^^^^^^ File "F:\pyinstxtractor-2024.04\ZHUCEJI(1).exe_extracted\bypass.py", line 393, in copy_code_obj return types.CodeType( ^^^^^^^^^^^^^^^ TypeError: code() argument 13 must be str, not int