Page 1 of 1

CodeCrypter

Posted: Sat May 27, 2006 5:40 pm
by Soogn
Hey Everyone,

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...
?>
The snipped code can be found in this rafb paste here: http://rafb.net/paste/results/1O3GiT39.html - and, I tried to paste the binary output that results to no avail.... but you can decode it for yourself here http://www.opinionatedgeek.com/dotnet/t ... e64Decode/

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

Posted: Sat May 27, 2006 6:04 pm
by litebearer
No offense intended, but personally, unless it is something that will destroy my files and/or work, I simply try anything I am about to incorporate into my work. Even to the point of creating test databases with theoretical data. It really does make it easier to determine where I am falling short of the mark.

The experimentation allows me to develop useful questions, which frequently lead to their own answers.

Again, no offense intended, simply an observation.

Lite...

Posted: Sat May 27, 2006 7:35 pm
by Soogn
Hey,

Thanks, as it turns out, I solved the problem -- it was really silly, but it's all sorted now - the CodeCrypter module just isn't complatible with my 64bit OS, so i need to rethink my plans!!

D'oh