Advertisement
Blasium

Untitled

Dec 31st, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.48 KB | None | 0 0
  1. <?php
  2. echo '<link href="http://q-load.me/favicon.ico" rel="shortcut icon" type="image/x-icon" />';
  3.  
  4. $user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
  5. $cookies = "cookies.txt";
  6.  
  7. if(!isset($_GET['method']) || !isset($_GET['url'])) die("ERROR (params)");
  8.  
  9. $ch = curl_init();
  10. switch($_GET['method'])
  11. {
  12.     case 1: curl_setopt($ch, CURLOPT_URL, "http://dcrypt.it/decrypt/container"); break;
  13.     case 2: curl_setopt($ch, CURLOPT_URL, "http://dcrypt.it/decrypt/cnl"); break;
  14. }
  15. curl_setopt($ch, CURLOPT_POSTFIELDS, "link=".$_GET['url']);
  16. curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
  17. curl_setopt($ch, CURLOPT_POST, 1);
  18. curl_setopt($ch, CURLOPT_HEADER, 0);
  19. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies);
  20. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies);
  21. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  22. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  23. $reso = curl_exec($ch);
  24. $res = get_string_between($reso,'[',']');
  25.  
  26. $debu = 0;
  27. while(strpos($res,'"') !== 0)
  28. {
  29.     $find = get_string_between($res,'"','", ');
  30.     if(strlen($find) == 0) break;
  31.     echo $find."<br/>";
  32.     if(strcmp(substr($find,0,4),"http") != 0) exit;
  33.     $res = str_replace('"'.$find.'",','',$res);
  34.     if($debu >= 5) exit;
  35.     else $debu++;
  36. }
  37. exit;
  38.  
  39.  
  40.  
  41. function get_string_between($string, $start, $end)
  42. {
  43.     $string = " ".$string;
  44.     $ini = strpos($string,$start);
  45.     if ($ini == 0) return "";
  46.     $ini += strlen($start);
  47.     $len = strpos($string,$end,$ini) - $ini;
  48.     return substr($string,$ini,$len);
  49. }
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement