Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $key = $_GET['q'];
- $kiwot = urlencode($key);
- $spath = $_GET['start'];
- $xpath = $_GET['num'];
- $lhost = array("domain");
- $host = $lhost[rand(0,(count($lhost)-1))];
- $path = "/search?q=".$kiwot."&first=".$spath;
- $uagent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6";
- $fp = fsockopen($host, 80, $errno, $errstr, 5);
- if (!$fp) {
- echo "$errstr ($errno)<br />\n";
- } else {
- $out = "GET $path HTTP/1.0\r\n";
- $out .= "Host: $host\r\n";
- $out .= "Accept: */*\r\n";
- $out .= "User-Agent: $uagent\r\n";
- $out .= "Connection: Close\r\n\r\n";
- fwrite($fp, $out);
- while (!feof($fp)) {
- echo fgets($fp, 128);
- }
- fclose($fp);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement