dashingsoft / pyarmor

A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.
http://pyarmor.dashingsoft.com
Other
3.31k stars 282 forks source link

Use Javascript to call the obfuscated python file, is it right usage? #1874

Closed 6sixteen closed 2 months ago

6sixteen commented 2 months ago
  1. I use pyarmor gen foo.py to obfuscate the file.
  2. Try to use a javascript to call the file.
  3. Throw runtimeError: unauthorized use of script Can this be done, or is it not allowed? Thanks!
jondy commented 2 months ago

I also have no idea about call .py from javascript.

Anyway, try to disable restrict mode by this way

pyarmor cfg restrict_module=0
pyarmor gen foo.py

Then call the obfuscated script again, if it still doesn't work, it may not work.