Tip: Click lines to highlight, hold ctrl/cmd to multi-select

http://codedumper.com/ibopa (7-Aug @ 11:21)

Syntax Highlighted Code

  1. <?php
  2. if (function_exists('file_get_contents'))
  3. {
  4. }
  5. else
  6. {
  7.     function file_get_contents($file)
  8.     {
  9.         $handle = fopen($file, "rb");
  10.         $data = fread($handle, filesize($file));
  11.         fclose($handle);
  12.         return $data;
  13.     }
  14. }
  15. if (function_exists('phpbyte_error'))
  16. {
  17. }
  18. else
  19. {
  20.     function phpbyte_error($str)
  21.     {
  22.         return "<html>
  23.        <body style=\"font-family:Arial, sans-serif; font-size:12px;\">
  24.        &nbsp;<br>
  25.        <blockquote>
  26.        <h4>Encoder gebruikt <a href=\"http://www.phpbyte.nl\">phpbyte.nl</a></h4>
  27.        <p style=\"font-size:11px;\"><b>Error :</b></p>
  28.        <div style=\"border:1px solid #C60005;font-family:Courier;color:#C60005;background-color:#FFE1E2;padding:3px;width:300px;height:70px;\">
  29.        $str
  30.        </div><br>
  31.        <p style=\"color:#666666;font-size:10px;\">
  32.        Copyright &copy; " . date("Y") . " PhpByte.nl - All rights reserved
  33.        </p>
  34.        </blockquote>
  35.        </body>
  36.        </html>";
  37.         }
  38. }
  39. if (function_exists('phpbyte_run_through'))
  40. {
  41. }
  42. else
  43. {
  44. function phpbyte_run_through($input)
  45. {
  46.         $sec = 1327;
  47.         $reverse = 0;
  48.         $j = $sec;
  49.         $pad = strlen($input);
  50.        
  51.         for($i = 0; $i < strlen($input); $i++)
  52.         {
  53.             if($j == 0) {
  54.                 $reverse = 1;
  55.             } elseif ($j == $sec)
  56.             {
  57.                 $reverse = 0;
  58.             }
  59.            
  60.             if($reverse == 0)
  61.             {
  62.                 $j--;
  63.             } elseif ($reverse == 1)
  64.             {
  65.                 $j++;
  66.             }
  67.            
  68.             $enc .= substr($input, $i, $i+1) ^ chr( $j * ($pad + 1) );
  69.            
  70.             $pad--;
  71.         }
  72.        
  73.         return $enc;
  74.     }
  75. }
  76.  
  77. if (function_exists('getsometext'))
  78. {
  79.  
  80. }
  81. else
  82. {
  83.     function getsometext($aasscc)
  84.     {
  85.         $fst = str_pad("",strlen($aasscc),chr(10));
  86.         $revert = base64_decode($aasscc) ^ $fst;
  87.         return $revert;    
  88.     }
  89. }
  90.  
  91. $ll1l11lll1 = array(getsometext("b2liZQ==") => "",getsometext("enhjZH4=") => "",getsometext("enhjZH5s") => "",getsometext("bmNv") => "");
  92. $O0O0OO00O0 = file_get_contents($phpbyte_self);
  93. $OO0O0OO000 = strtr($O0O0OO00O0,$ll1l11lll1);
  94. if(md5(trim($O0O0OO00O0)) == md5(trim($OO0O0OO000)))
  95. {
  96.     $O0O0OO00O0 = explode("?".">",$O0O0OO00O0);
  97.     $O0O0OO00O0 = phpbyte_run_through(base64_decode(trim($O0O0OO00O0[1])));
  98.     eval($O0O0OO00O0);
  99. }
  100. else
  101. {
  102.     $msg = phpbyte_error("PhpByte is aangepast hacker slot zit daarom op het bestand.");
  103.    
  104.     // This is: die($msg);
  105.     eval(getsometext("bmNv") . "('" . $msg . "');");
  106. }
  107.  
  108. if(!class_exists(Cipher_bleh))
  109. {
  110.     class Cipher_bleh
  111.     {
  112.         var $p = array(0xC25A59B5, 0xEFE830F5);
  113.         function setKey($key)
  114.         {
  115.             $key = $this->_formatKey($key);
  116.             $keyPos = $keyXor = 0;
  117.             $iMax = count($this->p);
  118.             $keyLen = count($key);
  119.             for ($i = 0; $i < $iMax; $i++)
  120.             {
  121.                 for ($t = 0; $t < 4; $t++)
  122.                 {
  123.                     $keyXor = ($keyXor << 8) | (($key[$keyPos]) & 0x0ff);
  124.                     if (++$keyPos == $keyLen)
  125.                     {
  126.                         $keyPos = 0;
  127.                     }
  128.                 }
  129.                 $this->p[$i] = $this->p[$i] ^ $keyXor;
  130.             }
  131.             $encZero = array('L' => 0, 'R' => 0);
  132.             for ($i = 0; $i + 1 < $iMax; $i += 2)
  133.             {
  134.                 $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']);
  135.                 $this->p[$i] = $encZero['L'];
  136.                 $this->p[$i + 1] = $encZero['R'];
  137.             }
  138.         }
  139.        
  140.         function encryptBlock($block, $key = null)
  141.         {
  142.             if (!is_null($key))
  143.             {
  144.                 $this->setKey($key);
  145.             }
  146.             list($L, $R) = array_values(unpack('N*', $block));
  147.             $parts = $this->_encryptBlock($L, $R);
  148.             return pack("NN", $parts['L'], $parts['R']);
  149.         }
  150.        
  151.         function _encryptBlock($L, $R)
  152.         {
  153.             $L ^= $this->p[0];
  154.             $R ^= $this->p[1];
  155.             return array('L' => $R, 'R' => $L);
  156.         }
  157.        
  158.         function decryptBlock($block, $key = null)
  159.         {
  160.             if (!is_null($key))
  161.             {
  162.                 $this->setKey($key);
  163.             }
  164.             $L = null;
  165.             $R = null;
  166.             $retarray = array_values(unpack('N*', $block));
  167.             if(isset($retarray[0]))
  168.             {
  169.                 $L = $retarray[0];
  170.             }
  171.             if(isset($retarray[1]))
  172.             {
  173.                 $R = $retarray[1];
  174.             }
  175.             $L ^= $this->p[1];
  176.             $decrypted = pack("NN", $R ^ $this->p[0], $L);
  177.             return $decrypted;
  178.         }
  179.        
  180.         function _formatKey($key)
  181.         {
  182.             return array_values(unpack('C*', $key));
  183.         }
  184.     }
  185.    
  186.     function full_str_pad($input, $pad_length, $pad_string = '',$pad_type = 0)
  187.     {
  188.         $str = '';
  189.         $length = $pad_length - strlen($input);
  190.         if ($length > 0) {
  191.             if ($pad_type == STR_PAD_RIGHT) {
  192.                 $str = $input.str_repeat($pad_string, $length);
  193.             } elseif ($pad_type == STR_PAD_BOTH) {
  194.                 $str = str_repeat($pad_string, floor($length/a));
  195.                 $str .= $input;
  196.                 $str .= str_repeat($pad_string, ceil($length/a));
  197.             } else {
  198.                 $str = str_repeat($pad_string, $length).$input;
  199.             }
  200.         } else {
  201.             $str = $input;
  202.         }
  203.        
  204.         return $str;
  205.     }
  206.    
  207.     function phpbyte_run_script($encdata) {
  208.         $secret = "new unknown secret";
  209.         $the_cipher = new Cipher_bleh;
  210.         $decrypt = '';
  211.         $data = $encdata;
  212.         for ($i=0; $i<strlen($data); $i+=8) {
  213.             $decrypt .= $the_cipher->decryptBlock(substr($data, $i, 8),$secret);
  214.         }
  215.         return trim($decrypt);
  216.     }
  217. }
  218.  
  219. if(function_exists('file_get_contents'))
  220. {
  221. }
  222. else
  223. {
  224.     function file_get_contents($file)
  225.     {
  226.         $handle = fopen($file, "rb");
  227.         $data = fread($handle, filesize($file));
  228.         fclose($handle);
  229.         return $data;
  230.     }
  231. }
  232.  
  233. if(function_exists('phpbyte_error'))
  234. {
  235. }
  236. else
  237. {
  238.     function phpbyte_error($str)
  239.     {
  240.         return "<html>
  241. <body style=\"font-family:Arial, sans-serif; font-size:12px;\">
  242. &nbsp;<br>
  243. <blockquote>
  244. <h4>Encoder gebruikt <a href=\"http://phpbyte.nl\">phpbyte.nl</a></h4>
  245. <p style=\"font-size:11px;\"><b>Error :</b></p>
  246. <div style=\"border:1px solid #C60005;font-family:Courier;color:#C60005;background-color:#FFE1E2;padding:3px;width:300px;height:70px;\">
  247. $str
  248. </div><br>
  249. <p style=\"color:#666666;font-size:10px;\">
  250. Copyright &copy; " . date("Y") . " PhpByte.nl - All rights reserved
  251. </p>
  252. </blockquote>
  253. </body>
  254. </html>";
  255.     }
  256. }
  257.  
  258. if($phpbyte != 1)
  259. {
  260.     die(phpbyte_error("Dit script kan niet aangeroepen worden. Script Gestopt!"));
  261. }
  262.  
  263. $filename = $phpbyte_dpath . "/" . $phpbyte_fname;
  264. $data = file_get_contents($filename);
  265. $phpbyte_data = explode("?".">",$data);
  266. $phpbyte_data = base64_decode( trim( $phpbyte_data[1] ) );
  267.  
  268. if($phpbyte_zlib == 1)
  269. {
  270.     $phpbyte_data = gzinflate($phpbyte_data);
  271. }
  272. else
  273. {
  274. }
  275. eval( phpbyte_run_script($phpbyte_data) );
  276. ?>

Plain Code

<?php
if (function_exists('file_get_contents')) 
{
} 
else 
{
    function file_get_contents($file) 
    {
        $handle = fopen($file, "rb");
        $data = fread($handle, filesize($file));
        fclose($handle);
        return $data;
    }
}
if (function_exists('phpbyte_error')) 
{
}
else 
{
    function phpbyte_error($str) 
    {
        return "<html>
        <body style=\"font-family:Arial, sans-serif; font-size:12px;\">
        &nbsp;<br>
        <blockquote>
        <h4>Encoder gebruikt <a href=\"http://www.phpbyte.nl\">phpbyte.nl</a></h4>
        <p style=\"font-size:11px;\"><b>Error :</b></p>
        <div style=\"border:1px solid #C60005;font-family:Courier;color:#C60005;background-color:#FFE1E2;padding:3px;width:300px;height:70px;\">
        $str
        </div><br>
        <p style=\"color:#666666;font-size:10px;\">
        Copyright &copy; " . date("Y") . " PhpByte.nl - All rights reserved
        </p>
        </blockquote>
        </body>
        </html>";
        }
}
if (function_exists('phpbyte_run_through')) 
{
} 
else 
{
function phpbyte_run_through($input) 
{
        $sec = 1327;
        $reverse = 0;
        $j = $sec;
        $pad = strlen($input);
        
        for($i = 0; $i < strlen($input); $i++) 
        {
            if($j == 0) {
                $reverse = 1;
            } elseif ($j == $sec) 
            {
                $reverse = 0;
            }
            
            if($reverse == 0) 
            {
                $j--;
            } elseif ($reverse == 1) 
            {
                $j++;
            }
            
            $enc .= substr($input, $i, $i+1) ^ chr( $j * ($pad + 1) );
            
            $pad--;
        }
        
        return $enc;
    }
}

if (function_exists('getsometext')) 
{

} 
else 
{
    function getsometext($aasscc) 
    {
        $fst = str_pad("",strlen($aasscc),chr(10));
        $revert = base64_decode($aasscc) ^ $fst;
        return $revert;    
    }
}

$ll1l11lll1 = array(getsometext("b2liZQ==") => "",getsometext("enhjZH4=") => "",getsometext("enhjZH5s") => "",getsometext("bmNv") => "");
$O0O0OO00O0 = file_get_contents($phpbyte_self);
$OO0O0OO000 = strtr($O0O0OO00O0,$ll1l11lll1);
if(md5(trim($O0O0OO00O0)) == md5(trim($OO0O0OO000)))
{
    $O0O0OO00O0 = explode("?".">",$O0O0OO00O0);
    $O0O0OO00O0 = phpbyte_run_through(base64_decode(trim($O0O0OO00O0[1])));
    eval($O0O0OO00O0);
}
else 
{
    $msg = phpbyte_error("PhpByte is aangepast hacker slot zit daarom op het bestand.");
    
    // This is: die($msg);
    eval(getsometext("bmNv") . "('" . $msg . "');");
}

if(!class_exists(Cipher_bleh)) 
{
    class Cipher_bleh 
    {
        var $p = array(0xC25A59B5, 0xEFE830F5);
        function setKey($key)
        {
            $key = $this->_formatKey($key);
            $keyPos = $keyXor = 0;
            $iMax = count($this->p);
            $keyLen = count($key);
            for ($i = 0; $i < $iMax; $i++) 
            {
                for ($t = 0; $t < 4; $t++) 
                {
                    $keyXor = ($keyXor << 8) | (($key[$keyPos]) & 0x0ff);
                    if (++$keyPos == $keyLen) 
                    {
                        $keyPos = 0;
                    }
                }
                $this->p[$i] = $this->p[$i] ^ $keyXor;
            }
            $encZero = array('L' => 0, 'R' => 0);
            for ($i = 0; $i + 1 < $iMax; $i += 2) 
            {
                $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']);
                $this->p[$i] = $encZero['L'];
                $this->p[$i + 1] = $encZero['R'];
            }
        }
        
        function encryptBlock($block, $key = null)
        {
            if (!is_null($key)) 
            {
                $this->setKey($key);
            }
            list($L, $R) = array_values(unpack('N*', $block));
            $parts = $this->_encryptBlock($L, $R);
            return pack("NN", $parts['L'], $parts['R']);
        }
        
        function _encryptBlock($L, $R)
        {
            $L ^= $this->p[0];
            $R ^= $this->p[1];
            return array('L' => $R, 'R' => $L);
        }
        
        function decryptBlock($block, $key = null)
        {
            if (!is_null($key)) 
            {
                $this->setKey($key);
            }
            $L = null;
            $R = null;
            $retarray = array_values(unpack('N*', $block));
            if(isset($retarray[0])) 
            {
                $L = $retarray[0];
            }
            if(isset($retarray[1])) 
            {
                $R = $retarray[1];
            }
            $L ^= $this->p[1];
            $decrypted = pack("NN", $R ^ $this->p[0], $L);
            return $decrypted;
        }
        
        function _formatKey($key)
        {
            return array_values(unpack('C*', $key));
        }
    }
    
    function full_str_pad($input, $pad_length, $pad_string = '',$pad_type = 0) 
    {
        $str = '';
        $length = $pad_length - strlen($input);
        if ($length > 0) {
            if ($pad_type == STR_PAD_RIGHT) {
                $str = $input.str_repeat($pad_string, $length);
            } elseif ($pad_type == STR_PAD_BOTH) {
                $str = str_repeat($pad_string, floor($length/a));
                $str .= $input;
                $str .= str_repeat($pad_string, ceil($length/a));
            } else {
                $str = str_repeat($pad_string, $length).$input;
            }
        } else {
            $str = $input;
        }
        
        return $str;
    }
    
    function phpbyte_run_script($encdata) {
        $secret = "new unknown secret";
        $the_cipher = new Cipher_bleh;
        $decrypt = '';
        $data = $encdata;
        for ($i=0; $i<strlen($data); $i+=8) {
            $decrypt .= $the_cipher->decryptBlock(substr($data, $i, 8),$secret);
        }
        return trim($decrypt);
    }
}

if(function_exists('file_get_contents')) 
{
} 
else 
{
    function file_get_contents($file) 
    {
        $handle = fopen($file, "rb");
        $data = fread($handle, filesize($file));
        fclose($handle);
        return $data;
    }
}

if(function_exists('phpbyte_error')) 
{
} 
else 
{
    function phpbyte_error($str) 
    {
        return "<html>
<body style=\"font-family:Arial, sans-serif; font-size:12px;\">
&nbsp;<br>
<blockquote>
<h4>Encoder gebruikt <a href=\"http://phpbyte.nl\">phpbyte.nl</a></h4>
<p style=\"font-size:11px;\"><b>Error :</b></p>
<div style=\"border:1px solid #C60005;font-family:Courier;color:#C60005;background-color:#FFE1E2;padding:3px;width:300px;height:70px;\">
$str
</div><br>
<p style=\"color:#666666;font-size:10px;\">
Copyright &copy; " . date("Y") . " PhpByte.nl - All rights reserved
</p>
</blockquote>
</body>
</html>";
    }
}

if($phpbyte != 1) 
{
    die(phpbyte_error("Dit script kan niet aangeroepen worden. Script Gestopt!"));
}

$filename = $phpbyte_dpath . "/" . $phpbyte_fname;
$data = file_get_contents($filename);
$phpbyte_data = explode("?".">",$data);
$phpbyte_data = base64_decode( trim( $phpbyte_data[1] ) );

if($phpbyte_zlib == 1) 
{
    $phpbyte_data = gzinflate($phpbyte_data);
} 
else 
{
}
eval( phpbyte_run_script($phpbyte_data) );
?>

Permalink: http://codedumper.com/ibopa