Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem while obfuscating code with global variables in class functions #17

Open
knulo opened this issue Mar 5, 2020 · 0 comments
Open

Comments

@knulo
Copy link

knulo commented Mar 5, 2020

Obfuscating a class with functions using global variables seems to be not recognize the globals.

Third call to function is with assigning: $page = '/some_dir/en/some_file.php'; (see file attached)

Output without obfuscation:
/mydata/phptest/sunlite-dist/templates/default.tmpl
/mydata/phptest/sunlite-dist/templates/de_default.tmpl
/mydata/phptest/sunlite-dist/templates/en_some_file.tmpl <==

Output of obfuscated file:
/mydata/phptest/sunlite-dist/templates/default.tmpl
/mydata/phptest/sunlite-dist/templates/de_default.tmpl
/mydata/phptest/sunlite-dist/templates/de_default.tmpl <==

Maybe, some constants like __DIR__ are also a problem, but in this example it works fine.

testclass.php.src.txt

@knulo knulo changed the title Problem while obfuscating code with double-underscored constants Problem while obfuscating code with global variables in class functions Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant