Svenskithesource / PyArmor-Unpacker

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

Name Error : name 'code' is not defined #23

Closed dfengwin closed 1 year ago

dfengwin commented 1 year ago

thanks for your great work. And, When try to unpack a PyArmor script, I came across an error like "Name Error : name 'code' is not defined" after the injection, with method2. So, I did not get the "dump" directory and pyc file.
I don't know why

dfengwin commented 1 year ago
1665027854361
dfengwin commented 1 year ago

it seems like, this error have something to do with "line 465 : code = output_code(code)" of the "code.py".

dfengwin commented 1 year ago

sys._current_frames() has no return.

Svenskithesource commented 1 year ago

Can you send the file over? It looks like they have some anti debugging. Also what Python version is it, that could affect it as well.

dfengwin commented 1 year ago

may i have your email? and Python version is 3.7

Svenskithesource commented 1 year ago

You can send it to svenskithesource@gmail.com

dfengwin commented 1 year ago

got it

Svenskithesource commented 1 year ago

Got it as in you solved it? If so please tell me what the issue was. Or did you send me an email? (I haven't received one)

dfengwin commented 1 year ago

not yet, a zip file has been sent to your inbox

0xdf223 commented 1 year ago

What was the issue? I see this is closed, but no update, and I'm getting the same thing.

Svenskithesource commented 1 year ago

The issue was that he injected after the code had already finished. Please open a new issue if you have the same problem. Provide the files as well as details like the version etc.

0xdf223 commented 1 year ago

Sent you some details via the email above. I can open another issue if you like as well.

OwnerCM commented 1 year ago

The issue was that he injected after the code had already finished. Please open a new issue if you have the same problem. Provide the files as well as details like the version etc.

@Svenskithesource Thank you for providing such a useful tool. I have a PyArmor encrypted py file running in Python version 3.8.16. When using method 2, I am encountering the same problem and do not know how to solve it. The file has been uploaded as an attachment. I hope you can help me take a look when you have time. Thank you again! file.zip