Svenskithesource / PyArmor-Unpacker

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

Support async code objects #19

Closed Svenskithesource closed 1 year ago

Svenskithesource commented 1 year ago

Currently when we try to invoke an async code object it will fail saying that we never awaited the function. Python knows it's an async code object by one of the flags that is set, we can simply remove that flag when we invoke it to prevent the error from raising. After it's invoked we will restore the original flag.