Advertisement
Guest User

Untitled

a guest
Jul 21st, 2013
2,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.27 KB | None | 0 0
  1. <?php
  2. /*
  3.  *
  4.  *     Written by Orange@chroot.org
  5.  *
  6.  */
  7.  $cookie_key  =  "◢▆▅▄▃崩╰(〒皿〒)╯潰▃▄▅▇◣";
  8.  $iv          =  "00000000";
  9.  
  10.  
  11. function safe( $s ) {
  12.     if ( is_string( $s ) && strpos( $s, "\0" ) === false ) {
  13.         if ( strpos( $s, 'O:' ) === false ) {
  14.             return true;
  15.         } else if ( ! preg_match('/(^|;|})s:[+\-0-9]+:"/', $s ) ) {
  16.             return true;
  17.         }
  18.     }
  19.     return false;
  20. }
  21.  
  22. class qoo{
  23.     var $key_var = "FakeKey";
  24.     function __construct(){}
  25.  
  26.     function __destruct(){
  27.         $keyfile = $this->key_var . ".php";
  28.         $keyfile = basename( $keyfile );
  29.  
  30.         include( $keyfile );
  31.  
  32.         print $key;
  33.     }
  34.  
  35. }
  36.  
  37. $checksum = $_COOKIE['checksum'];
  38. if ( @md5($checksum) == '' ) {
  39.  
  40.     $auth_str = $_COOKIE['auth_str'];
  41.     $auth_str = base64_decode( $auth_str );
  42.     $auth_str = mcrypt_decrypt( MCRYPT_BLOWFISH,
  43.                                 $cookie_key,
  44.                                 $auth_str,
  45.                                 MCRYPT_MODE_ECB,
  46.                                 $iv );
  47.     $auth_str = trim( $auth_str );
  48.  
  49.     if ( safe($auth_str) )
  50.         unserialize( $auth_str );
  51.     else
  52.         die( 'Auth string is not safe' );
  53. } else {
  54.     new qoo();
  55. }
  56.  
  57.  
  58.  
  59. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement