Open BaseMax opened 3 years ago
Try this:
if (!function_exists("create_function)) { function __create_function($arg, $body) { static $cache = array(); static $maxCacheSize = 64;
static $sorter;
if ($sorter === NULL) {
$sorter = function($a, $b) {
if ($a->hits == $b->hits) {
return 0;
}
return ($a->hits < $b->hits) ? 1 : -1;
};
}
$crc = crc32($arg . "\\x00" . $body);
if (isset($cache[$crc])) {
++$cache[$crc][1];
return $cache[$crc][0];
}
if (sizeof($cache) >= $maxCacheSize) {
uasort($cache, $sorter);
array_pop($cache);
}
$cache[$crc] = array($cb = eval('return function('.$arg.'){'.$body.'};'), 0);
return $cb; } }
Hi Pierre;
The Function
create_function
has been DEPRECATED in PHP8 and encoded programs will not run in a new server. (PHP 4 >= 4.0.1, PHP 5, PHP 7)Trace
[max@workstation Obfuscator-Class]$ php 2-input.php
[max@workstation Obfuscator-Class]$ php 2-input.php
What I find is obscured code want to use
CREAte_funCTiOn
function somethings is probablycreate_function
. But this is not available in server.$ php -v
I'm not sure it's solved before or a trick and solution to solve this. Anyway I submit this since I see encoded programs cannot run anymore.
Best;