Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <form method="POST" action="">
- Link: <input type="text" name="link" />
- <input type="submit" name="submit" value="Get" />
- </form>
- </body>
- </html>
- <?
- function getPage($url, $referer, $timeout, $header){
- if(!isset($timeout))
- $timeout=400;
- $curl = curl_init();
- if(strstr($referer,"://")){
- curl_setopt ($curl, CURLOPT_REFERER, $referer);
- }
- curl_setopt ($curl, CURLOPT_URL, $url);
- curl_setopt ($curl, CURLOPT_TIMEOUT, $timeout);
- curl_setopt ($curl, CURLOPT_USERAGENT, sprintf("Mozilla/%d.0",rand(4,5)));
- curl_setopt ($curl, CURLOPT_HEADER, (int)$header);
- curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
- $html = curl_exec ($curl);
- curl_close ($curl);
- return $html;
- }
- $submit = $_POST['submit'];
- $link = $_POST['link'];
- if(isset($submit)){
- $file = getPage($link,'80','30','1');
- $a = explode('<a class="btnt btnt-w" href="',$file);
- $a = explode('"',$a[1]);
- $file = getPage($a[0]."?sid=0",'80','30','1');
- $ten = explode('LINK:',$file);
- $ten1 = explode('<div id="adMarx_afplayer"',$ten[1]);
- preg_match_all('#{"name":"(.*?[^"]+).*?link":"(.*?[^"]+)#', $ten1[0],$id);
- for($i=0;$i<count($id[1]);$i++){
- echo $id[1][$i]." <input onclick='this.select()' type='text' value='".trim(base64_decode($id[2][$i]))."' size='2' style='text-align:center; width: 50%;'><br/>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement