Advertisement
FurtzGamesssss

Untitled

Aug 9th, 2022
854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.47 KB | None | 0 0
  1. <?php
  2. $down = '4999'.'999'; //Mbps . Decimal
  3. $up = '4999'.'999';  //Mbps . Decimal
  4. $ping = -1;
  5. $server = '1746';
  6. $accuracy = 100;
  7. $hash = md5("$ping-$up-$down-297aae72");
  8. $headers = Array(
  9.         'POST /api/api.php HTTP/1.1',
  10.         'Host: www.speedtest.net',
  11.         'User-Agent: DrWhat Speedtest',
  12.         'Content-Type: application/x-www-form-urlencoded',
  13.         'Origin: http://c.speedtest.net',
  14.         'Referer: http://c.speedtest.net/flash/speedtest.swf',
  15.         'Cookie: COOKIEISTDOOFCOOKIEISTDOOFCOOKIEISTDOOFCOOKIEISTDOOF', // change this for history tests
  16.         'Connection: Close'
  17.     );
  18.     $post = "startmode=recommendedselect&promo=&upload=$up&accuracy=$accuracy&recommendedserverid=$server&serverid=$server&ping=$ping&hash=$hash&download=$down";
  19.     //$post = urlencode($post);
  20.     $ch = curl_init();
  21.     curl_setopt($ch, CURLOPT_URL, 'http://www.speedtest.net/api/api.php');
  22.     curl_setopt($ch, CURLOPT_ENCODING, "" );
  23.     curl_setopt($ch, CURLOPT_POST, 1);
  24.     curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  25.     curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  26.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  27.     curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
  28.     $data = curl_exec($ch);
  29.     foreach (explode('&', $data) as $chunk) {
  30.         $param = explode("=", $chunk);
  31.         if (urldecode($param[0])== "resultid"){
  32.             print 'http://www.speedtest.net/my-result/'.urldecode($param[1]).' Speedtest wurde erfolgreich gefaked';
  33.         }
  34.     }
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement