Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo '<link href="http://q-load.me/favicon.ico" rel="shortcut icon" type="image/x-icon" />';
- $user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
- $cookies = "cookies.txt";
- if(!isset($_GET['method']) || !isset($_GET['url'])) die("ERROR (params)");
- $ch = curl_init();
- switch($_GET['method'])
- {
- case 1: curl_setopt($ch, CURLOPT_URL, "http://dcrypt.it/decrypt/container"); break;
- case 2: curl_setopt($ch, CURLOPT_URL, "http://dcrypt.it/decrypt/cnl"); break;
- }
- curl_setopt($ch, CURLOPT_POSTFIELDS, "link=".$_GET['url']);
- curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies);
- curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $reso = curl_exec($ch);
- $res = get_string_between($reso,'[',']');
- $debu = 0;
- while(strpos($res,'"') !== 0)
- {
- $find = get_string_between($res,'"','", ');
- if(strlen($find) == 0) break;
- echo $find."<br/>";
- if(strcmp(substr($find,0,4),"http") != 0) exit;
- $res = str_replace('"'.$find.'",','',$res);
- if($debu >= 5) exit;
- else $debu++;
- }
- exit;
- function get_string_between($string, $start, $end)
- {
- $string = " ".$string;
- $ini = strpos($string,$start);
- if ($ini == 0) return "";
- $ini += strlen($start);
- $len = strpos($string,$end,$ini) - $ini;
- return substr($string,$ini,$len);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement