Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>
- 4shared Bypass Timer Download
- </title>
- </head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <body>
- 4shared Bypass Timer Download
- <br />
- <form action="<?php echo htmlentities($_SERVER['PHP_SELF'],ENT_QUOTES); ?>" method="get" />
- <b>Url</b>
- <input type="text" name="url" />
- <br />
- </form>
- </body>
- </html>
- <?php
- /*
- Initially inspired by http://www.getsongnow.com/
- Later Inspired by p0pc0rn (http://w3.tbd.my/thread-8997.html)
- */
- function retrieve($url){
- $con = curl_init($url);
- $option = array(
- CURLOPT_RETURNTRANSFER=>1,
- CURLOPT_HEADER=>false,
- CURLOPT_SSL_VERIFYPEER=>false,
- CURLOPT_HTTPAUTH=>CURLAUTH_ANY,
- CURLOPT_FOLLOWLOCATION=>false,
- CURLOPT_MAXREDIRS=>0
- );
- curl_setopt_array($con,$option);
- $exec = curl_exec($con);
- $http_code = curl_getinfo($con);
- if(preg_match("/404/",$http_code['http_code'])){
- die("Site is offline");
- }
- curl_close($con);
- return $exec;
- }
- if(isset($_GET['url'])){
- $url = $_GET['url'];
- if(function_exists('curl_init')){
- $content = retrieve($url);
- }
- else if(function_exists('file_get_contents')){
- $content = file_get_contents($url);
- }
- else{
- die("Please use another webhosting to try this script");
- }
- if(preg_match("/window\.location \= \"(.*?)\"\;/", $content, $match)){
- echo "Decoded url: <a href=". htmlentities($match[1], ENT_QUOTES) . ">". htmlentities($match[1], ENT_QUOTES) ."</a>";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment