Svenskithesource / PyArmor-Unpacker

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

No module named 'pytransform' #35

Closed Daggerfp21 closed 1 year ago

Daggerfp21 commented 1 year ago

I keep on getting this error despite having pyarmor installed. Do I need a pytransform file within the directory of the file I want to unpack?

No module named 'pytransform'

Svenskithesource commented 1 year ago

The pytransform module will have been delivered with the script, it's either packed with the .exe or if you were given the source file it will have a folder pytransform in the same dir.

Daggerfp21 commented 1 year ago

The pytransform module will have been delivered with the script, it's either packed with the .exe or if you were given the source file it will have a folder pytransform in the same dir.

The file I'm trying to unpack is a .exe, I turned it into a .pyc file using instxtractor, but there's no file like that. Can I download the pytransform from somewhere on the Internet?

Svenskithesource commented 1 year ago

It has to be included somewhere, otherwise, it wouldn't be able to run. Each pytransform is unique to its project. When you extract the .exe there has to be a _pytransform.dll file in the main dir and in the PYZ folder, there will be a pytransform.pyc file. Copy that one to the main dir and it should run fine.

Daggerfp21 commented 1 year ago

It has to be included somewhere, otherwise, it wouldn't be able to run. Each pytransform is unique to its project. When you extract the .exe there has to be a _pytransform.dll file in the main dir and in the PYZ folder, there will be a pytransform.pyc file. Copy that one to the main dir and it should run fine.

I was able to find everything thank you so much, but now the problem is pycdc has some unsopprted opcodes, so i was wondering if there is an alternative?