encryption - What does this PHP do? Is it an encoder/decoder? -
i don't know php @ all; more of question of curiosity.
following php function below in text file few thousand characters of text, such as:
xnefstuhsnwgsx5ztq4x/auw/rtism+klrbetwg0xe1uwb49rnrxrgrgy5eep3y0uvtcvlqhufop 4n7ldlqpq9uactyuujgbkmuscqcylcp08u06t0k3nwtnim7q6bqmk/izbe+uk1ywbvc1lzr9ooek
does php function encode random-looking text php? can encryption scheme figured out this?
edit: client says has full ownership , rights code, developed else. how decoded? require password?
<?php //003ac if (!extension_loaded('ioncube loader')) { $__oc = strtolower(substr(php_uname(), 0, 3)); $__ln = 'ioncube_loader_' . $__oc . '_' . substr(phpversion(), 0, 3) . (($__oc == 'win') ? '.dll' : '.so'); @dl($__ln); if (function_exists('_il_exec')) { return _il_exec(); } $__ln = '/ioncube/' . $__ln; $__oid = $__id = realpath(ini_get('extension_dir')); $__here = dirname(__file__); if (strlen($__id) > 1 && $__id[1] == ':') { $__id = str_replace('\\', '/', substr($__id, 2)); $__here = str_replace('\\', '/', substr($__here, 2)); } $__rd = str_repeat('/..', substr_count($__id, '/')) . $__here . '/'; $__i = strlen($__rd); while ($__i--) { if ($__rd[$__i] == '/') { $__lp = substr($__rd, 0, $__i) . $__ln; if (file_exists($__oid . $__lp)) { $__ln = $__lp; break; } } } @dl($__ln); } else { die('the file ' . __file__ . " corrupted.\n"); } if (function_exists('_il_exec')) { return _il_exec(); } echo ('site error: file <b>' . __file__ . '</b> requires ioncube php loader ' . basename($__ln) . ' installed site administrator.'); exit(199); ?>
it's practically ioncube-encoded php, or obfuscated if like. ioncube non-free obfuscated-bytecode execution engine , ioncube loader
library handles obfuscated code.
worth mention 'deobfuscator' free library, , it's loaded in of php installations i've seen.
Comments
Post a Comment