Advertisement
genol

bypassrandom

May 3rd, 2020
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <?php
  2. $key = $_GET['q'];
  3. $kiwot = urlencode($key);
  4. $spath = $_GET['start'];
  5. $xpath = $_GET['num'];
  6. $lhost = array("domain");
  7. $host = $lhost[rand(0,(count($lhost)-1))];
  8. $path = "/search?q=".$kiwot."&first=".$spath;
  9. $uagent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6";
  10. $fp = fsockopen($host, 80, $errno, $errstr, 5);
  11. if (!$fp) {
  12. echo "$errstr ($errno)<br />\n";
  13. } else {
  14. $out = "GET $path HTTP/1.0\r\n";
  15. $out .= "Host: $host\r\n";
  16. $out .= "Accept: */*\r\n";
  17. $out .= "User-Agent: $uagent\r\n";
  18. $out .= "Connection: Close\r\n\r\n";
  19. fwrite($fp, $out);
  20. while (!feof($fp)) {
  21. echo fgets($fp, 128);
  22. }
  23. fclose($fp);
  24. }
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement