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

Please help me! !! #81

Closed
Future-3 opened this issue Aug 11, 2020 · 2 comments
Closed

Please help me! !! #81

Future-3 opened this issue Aug 11, 2020 · 2 comments

Comments

@Future-3
Copy link

my code:
spl_autoload_unregister(array('YiiBase','autoload'));
after obfuscated:
spl_autoload_unregister(array("\131\151\x69\x42\141\x73\145", "\x61\165\164\x6f\x6c\x6f\141\144"));
There was a mistake when it's running:
Error - type:1 - file:/var/www/html/framework/YiiBase.php - line:8 - msg:Uncaught LogicException: Passed array does not specify an existing static method (class 'YiiBase' does not have a method 'autoload') in /var/www/html/framework/YiiBase.php:8
Stack trace:
#0 /var/www/html/framework/YiiBase.php(8): spl_autoload_register(Array)
#1 /var/www/html/framework/yii.php(8): require('/var/www/html/f...')
#2 /var/www/html/wwwroot/admin.yunfanghu.php(8): require_once('/var/www/html/f...')
#3 {main}

@WaelKYoussef
Copy link

You probably have:
$conf->obfuscate_class_name = true;
$conf->obfuscate_method_name = true;
Inside your 'yakpro-po.cnf' file;

If you're going to reference class and method names with literal strings like this then you should set the aforementioned flags to 'false' inside the .cnf file.

Or better yet, specify a small set of classes and methods you 'know' you'll be directly referencing and add them to the array of:
$conf->t_ignore_classes = [];
$conf->t_ignore_methods = [];
respectively inside your .cnf file.

@pk-fr
Copy link
Owner

pk-fr commented Oct 13, 2020

answered by @WaelKYoussef

@pk-fr pk-fr closed this as completed Oct 13, 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

3 participants