wcypierre

4shared bypass timer download

Dec 3rd, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <title>
  5.     4shared Bypass Timer Download
  6.     </title>
  7. </head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <body>
  10.     4shared Bypass Timer Download
  11.     <br />
  12.     <form action="<?php echo htmlentities($_SERVER['PHP_SELF'],ENT_QUOTES); ?>" method="get" />
  13.         <b>Url</b>
  14.             <input type="text" name="url" />
  15.         <br />
  16.     </form>
  17. </body>
  18. </html>
  19.  
  20. <?php
  21.  
  22. /*
  23. Initially inspired by http://www.getsongnow.com/
  24. Later Inspired by p0pc0rn (http://w3.tbd.my/thread-8997.html)
  25. */
  26.  
  27. function retrieve($url){
  28.     $con = curl_init($url);
  29.     $option = array(
  30.     CURLOPT_RETURNTRANSFER=>1,
  31.     CURLOPT_HEADER=>false,
  32.     CURLOPT_SSL_VERIFYPEER=>false,
  33.     CURLOPT_HTTPAUTH=>CURLAUTH_ANY,
  34.     CURLOPT_FOLLOWLOCATION=>false,
  35.     CURLOPT_MAXREDIRS=>0
  36.     );
  37.    
  38.     curl_setopt_array($con,$option);
  39.    
  40.     $exec = curl_exec($con);
  41.     $http_code = curl_getinfo($con);
  42.    
  43.     if(preg_match("/404/",$http_code['http_code'])){
  44.         die("Site is offline");
  45.     }
  46.    
  47.     curl_close($con);
  48.     return $exec;
  49. }
  50.  
  51. if(isset($_GET['url'])){
  52.     $url = $_GET['url'];
  53.    
  54.     if(function_exists('curl_init')){
  55.         $content = retrieve($url);
  56.     }
  57.     else if(function_exists('file_get_contents')){
  58.         $content = file_get_contents($url);
  59.     }
  60.     else{
  61.         die("Please use another webhosting to try this script");
  62.     }
  63.  
  64.     if(preg_match("/window\.location \= \"(.*?)\"\;/", $content, $match)){
  65.         echo "Decoded url: <a href=". htmlentities($match[1], ENT_QUOTES) . ">". htmlentities($match[1], ENT_QUOTES) ."</a>";
  66.     }
  67. }
  68.  
  69. ?>
  70.  
Add Comment
Please, Sign In to add comment