Login   Register  
PHP Classes
elePHPant
Icontem

File: _top_turck.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Zubov Ilya  >  Solace script maze  >  _top_turck.php  >  Download  
File: _top_turck.php
Role: Application script
Content type: text/plain
Description: Protection procedure
Class: Solace script maze
PHP source code protection based only on PHP code
Author: By
Last change:
Date: 2004-07-06 00:44
Size: 1,513 bytes
 

Contents

Class file image Download
// #Encoder
    $s = $this->php_implode($php_array);
    $s_comp = gzcompress($s, $this->options['compress']['level']);
    $t1 = $this->table;
    do {
        $p1 = rand(1, 127);
        $p2 = rand(128, 255);
        $t2 = substr($t1, $p1, $p2).substr($t1, 0, $p1).substr($t1, $p1+$p2);
        $es = strtr($s_comp, $t1, $t2);
    } while (!$this->safe_stream($es));
    $enc['enc_data'] = $es;
    $enc['p1'] = $p1;
    $enc['p2'] = $p2;


// #Decoder
<?php _V000=__________________________________;
{
MORPH_VARS}
    if (!
is_callable('mmcache_load') && !@dl((PHP_OS=='WINNT'||PHP_OS=='WIN32')?'TurckLoader.dll':'TurckLoader.so')) {
        echo 
'This PHP script has been encoded with Turck MMcache, to run it you must install <a href=http:/'.'/turck-mmcache.sourceforge.net/>Turck MMCache or Turck Loader</a>';
        return;
    };
    if (
version_compare('{PHPVERSION}'phpversion(), '>=')) {
        echo 
'This script requires PHP version {PHPVERSION} or higher (current version is '.phpversion().')';
        return;
    };
    
$GLOBALS['V002'] = microtime();
    
$GLOBALS['V001'] = ''; for ($i=0$i<=255$i++) $GLOBALS['V001'] .= chr($i);
    
ob_start();
?>{ENC_DATA}<?php
function wrapper(&$s) {
    
$t1 $GLOBALS['V001'];
    declare(
ticks=0);
    
$t2 substr($t1, {P1}, {P2}).substr($t10, {P1}).substr($t1, {P1}+{P2});
    return eval(
gzuncompress(strtr($s$t2$t1)));
}
    
$s ob_get_contents();
    
ob_end_clean();
    return eval(
wrapper($s));
?>