I was hoping someone might be able to cast an eye to this, there's a rather irritating module included in something a client of mine is using called Code Crypter it is essentially a ZendEncoder type thing, but it's old, and doesn't like to work too well.
Long story short, the client is running an old version of a package script from WebScribble, and essentially, the CodeCrypter thing is loaded in, provides an extra level of hell on the code, and contiunes...
WebScribble have given us licence to remove the CodeCrypter support, as we've paid for a licence twice for them, and it's an old version they don't care about, I'm really just looking for some backup on the assesment I've made so far.
Here's an example script (apologies for it's lenght)
Code: Select all
<?php
if (!function_exists("cc_output")) {
$cc_module = "cc.".strtolower(substr(php_uname(),0,3)).".".phpversion().".cc";
if (strtolower(substr(php_uname(), 0, 7)) == "windows") {
$fl_dir = substr(getcwd(), 3);
} else {
$fl_dir = getcwd();
}
$cc_path = str_repeat("../", 14).$fl_dir."/";
@dl($cc_path."cc/".$cc_module);
while (!function_exists("cc_output") && (strlen($cc_path)>0)) {
$cc_path = substr($cc_path,0,strlen($cc_path)-1);
@dl($cc_path."cc/".$cc_module);
}
if (!function_exists("cc_output")) {
echo "Critical error: Unable to load CodeCrypter module.";
exit;
}
...snipped...
?>My question stands, that if i put the binary content of the decode process into a file, and allow zend decoder/optimiser to run on it, will it facilitate correct function of the code ?
Thanks -- I trust I provided enough infromation on this for someone to make comment atleast,
Regards, Soogn