Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Server List :
- Penang = 473
- Kuala Lumpur = 1899
- Singapore = 367
- Seri Kembangan = 1265
- Cyberjaya = 1610
- Bandar Seri Begawan = 1618
- Jakarta = 880
- */
- class speedtest {
- private $down;
- private $up;
- private $pingay;
- private $server;
- public $hash;
- public $headers;
- public $post;
- public $kudud;
- public $dud;
- public $ch;
- public $accuracy;
- public function setDown($down) {
- $this -> down = $down;
- }
- public function setUp($up) {
- $this -> up = $up;
- }
- public function setPing($pingay) {
- $this -> pingay = $pingay;
- }
- public function setServer($server) {
- $this -> server = $server;
- }
- public function spoof() {
- $hash = md5("{$this->pingay}-{$this->up}-{$this->down}-297aae72");
- $headers = Array(
- 'POST /api/api.php HTTP/1.1',
- 'Host: www.speedtest.net',
- 'User-Agent: 0b0x3d',
- 'Content-Type: application/x-www-form-urlencoded',
- 'Origin: http://c.speedtest.net',
- 'Referer: http://c.speedtest.net/flash/speedtest.swf',
- 'Cookie: bisjut',
- 'Connection: Close'
- );
- $post = "startmode=recommendedselect&promo=&upload={$this->up}&accuracy=8&recommendedserverid={$this->server}&serverid={$this->server}&ping={$this->pingay}&hash={$hash}&download={$this->down}";
- //$post = urlencode($post);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://www.speedtest.net/api/api.php');
- curl_setopt($ch, CURLOPT_ENCODING, "" );
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
- $kudud = curl_exec($ch);$kudud = curl_exec($ch);
- foreach (explode('&', $kudud) as $dud) {
- $gay = explode("=", $dud);
- if (urldecode($gay[0])== "resultid"){
- echo 'URL : http://www.speedtest.net/my-result/'.urldecode($gay[1]).' <br />';
- echo 'Image : http://www.speedtest.net/result/'.urldecode($gay[1]).'.png';
- }
- }
- }
- }
- /*
- Buang tanda komen kalau nak run
- $spoof = new speedtest();
- $spoof -> setDown("10000.999");
- $spoof -> setUp("10000.999");
- $spoof -> setPing("1");
- $spoof -> setServer("473");
- $spoof -> spoof();
- */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment