Open joaopfg opened 2 years ago
I am trying to obfuscate a very simple file like the following:
from file1 import f1 from file2 import f2 if __name__ == "__main__": f1() f2() print("f3")
The __name__ variable name is converted to a garbage string and it avoids the program to run. Any idea where is the bug ? I can try a PR.
__name__
It seems to me that the vars are renamed with a regex, so you would have to fully change how the script works. Renaming vars with a regex results in a lot of bugs, you should try tokenize or ast.
I am trying to obfuscate a very simple file like the following:
The
__name__
variable name is converted to a garbage string and it avoids the program to run. Any idea where is the bug ? I can try a PR.