naneau / php-obfuscator

A parsing PHP obfuscator
586 stars 181 forks source link

improvement: Ignore variable names beginning by ... #17

Open pk-fr opened 9 years ago

pk-fr commented 9 years ago

In my project, I work with indirect function names or variable names.... ( i.e. $$v = 'xxx') they all start with a prefix .

is it possible to add a joker in obfuscator.scramble_variable.ignore: (and obfuscator.scramble_private_method.ignore:)

meaning variable (or function) starting by foo

pk-fr commented 9 years ago

I have started looking at your code.... perhaps could be optimized :

naneau commented 9 years ago

Perhaps a regular expression for variable names could be implemented, it would solve this problem. In general, however, you'll find that variable variables will cause problems with this kind of obfuscation.

pk-fr commented 9 years ago

It would be great :)