Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported opcode: JUMP_IF_NOT_EXC_MATCH #242

Closed
NiKoCZ89 opened this issue Mar 5, 2022 · 9 comments
Closed

Unsupported opcode: JUMP_IF_NOT_EXC_MATCH #242

NiKoCZ89 opened this issue Mar 5, 2022 · 9 comments

Comments

@NiKoCZ89
Copy link

NiKoCZ89 commented Mar 5, 2022

Unsupported opcode: JUMP_IF_NOT_EXC_MATCH

any fix/update?

@abros1
Copy link

abros1 commented Mar 27, 2022

Same issue with me

@karjok
Copy link

karjok commented Jun 6, 2022

I also had a similar error last night, when I tried to decompile the pyc file compiled with python 3.10, the message "Unsupported opcode: BLA_BLA_BLA" appears.

I think this is an error because the pyc file that will be decoded is a bytecode file compiled with python 3.9 and above, and the opcodes that are not supported by pycdc are opcodes that just appeared in python version 3.9 and above.

so I tried reading the ASTree.cpp file and studying it, then I realized that the opcode that was printed as an error was not in the "case block" of the ASTree.cpp file.

I tried to change it a little by adding the opcodes printed in the error message into the case block (on line 1166)

case Pyc::JUMP_IF_NOT_EXC_MATCH_A:
case Pyc::RERAISE_A:

then rebuild it. I don't know what happened but it solved my problem when trying to decompile python 3.9 and above bytecode. everything is done!

@angelheart150
Copy link

angelheart150 commented Sep 22, 2022

i have the same error , how can i solve it ?

photo_2022-09-22_20-48-57

photo_2022-09-22_20-48-57 (2)

Screenshot from 2022-09-23 00-06-22

@AngeloD2022
Copy link

obfuscated_stealer.pyc.zip

I am trying to analyze malware, and I received this error when putting the above file into pycdc.

@sami-soft
Copy link

Same issue with me

@fernando535
Copy link

Same issue... how can i resolved it?

@kzorin52
Copy link

same

@meir555
Copy link

meir555 commented Nov 21, 2023

Temporary fix:
I tried to comment out the line return new ASTNodeList(defblock->nodes()); in ASTree.cpp (this is the line that stops when it reaches an unknown opcode, in the default:)
The output is not completely correct, I had places where the try-catch was not in place, but all the decompiled code is readable, and after minor corrections it worked perfectly.

@zrax
Copy link
Owner

zrax commented Feb 21, 2024

Duplicate #450

@zrax zrax closed this as completed Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants