Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 12th, 2010  |  syntax: PHP  |  size: 6.04 KB  |  views: 401  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Facebook Poker Bug © Spymastersnake.org
  2.  
  3. <?
  4. set_time_limit(0);
  5. $agent = "Opera/9.64 (Windows NT 6.0; U; tr) Presto/2.1.1";
  6.  
  7. $email="x@hotmail.com";
  8. $pass="123456";
  9.        
  10. $dir=$_SERVER['DOCUMENT_ROOT']."/";
  11.  
  12.  
  13.  
  14. function arasi($a,$b,$data)
  15. {
  16. $x = explode($a,$data);
  17. $z = explode($b,$x[1]);
  18. $oh = $z[0];
  19. if($x && $z) { return $oh; } else { return false; }
  20. }
  21.  
  22.  
  23. $ch = curl_init();
  24. curl_setopt($ch, CURLOPT_URL,"https://login.facebook.com/login.php");    
  25. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  26. curl_setopt($ch, CURLOPT_COOKIEFILE, $dir."facook.txt");
  27. curl_setopt($ch, CURLOPT_COOKIEJAR, $dir."facook.txt");
  28. curl_setopt($ch, CURLOPT_REFERER, "http://www.facebook.com/login.php");
  29. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  30. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  31. curl_setopt($ch, CURLOPT_HEADER, 1);
  32. curl_setopt($ch, CURLOPT_POST, 1);
  33. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  34. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  35. curl_setopt($ch, CURLOPT_POSTFIELDS, "charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&version=1.0&return_session=0&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&email=$email&pass=$pass");
  36.  
  37.  
  38. $giris = curl_exec($ch);
  39. curl_close($ch);
  40.  
  41. if(!eregi("Location: http://www.facebook.com/home.php",$giris)) die("Giriş Başarısız");
  42.  
  43.  
  44.  
  45.  
  46. $ch = curl_init();
  47. curl_setopt($ch, CURLOPT_URL,"http://apps.facebook.com/texas_holdem/index.php?src_track_str=Poker+FB+Bookmark+Other+%25ACTION%25+o%3ABookmark%3A2009-03-11");    
  48. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  49. curl_setopt($ch, CURLOPT_COOKIEFILE, $dir."facook.txt");
  50. curl_setopt($ch, CURLOPT_COOKIEJAR, $dir."facook.txt");
  51. curl_setopt($ch, CURLOPT_REFERER, "http://www.facebook.com/home.php?");
  52. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  53. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  54. curl_setopt($ch, CURLOPT_HEADER, 1);
  55. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  56. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  57.  
  58. $html = curl_exec($ch);
  59.  
  60. curl_close($ch);
  61.  
  62. #echo $html;
  63.  
  64.  
  65.  
  66. #linkler
  67. $zbar2=arasi('iframe height="60" width="760" frameborder="0" scrolling="no" src="','"',$html);
  68. $geof2="http://statics.poker.static.zynga.com/poker//geo/f2.php";$geof2.=arasi('iframe name="cpc" src="http://statics.poker.static.zynga.com/poker//geo/f2.php','"',$html);
  69. $launch="http://facebook.poker.zynga.com/poker/launch.php";$launch.=arasi('<iframe src="http://facebook.poker.zynga.com/poker/launch.php','"',$html);
  70. $ladder=arasi('name="ladder" src="','"',$html);
  71. $geoframe="http://street.presidiomedia.com/track/geoframe.php";$geoframe.=arasi('iframe src="http://street.presidiomedia.com/track/geoframe.php','"',$html);
  72. $link803="http://nav3.zynga.com/link/link.php?link=803".arasi('
  73. <iframe src="http://nav3.zynga.com/link/link.php?link=803','"',$html);
  74. $pcanvas="http://nav3.zynga.com/link/link.php?item=Poker".arasi('<iframe src="http://nav3.zynga.com/link/link.php?item=Poker','"',$html);
  75. $ppi="http://www.socialmedia.com/facebook/ppi.php".arasi('iframe src="http://www.socialmedia.com/facebook/ppi.php','"',$html);
  76.  
  77.  
  78.  
  79. $linkler[]=$zbar2;
  80. $linkler[]=$geof2;
  81. $linkler[]=$launch;
  82. $linkler[]=$ladder;
  83. $linkler[]=$geoframe;
  84. $linkler[]=$pcanvas;
  85. $linkler[]=$ppi;
  86.  
  87. print_r($linkler);
  88.  
  89. #değişkenler
  90. $uid=arasi('uid=','&',$html);
  91. $hash=arasi(';
  92. FBML.Contexts["','"',$html);
  93. $postformid=arasi('post_form_id:"','"',$html);
  94. $dtsg=arasi('fb_dtsg:"','"',$html);
  95.  
  96.  
  97.  
  98.  
  99. $postdata=array(
  100. 'url'=>'http://facebook.poker.zynga.com/poker/inc/ajax/lottery.php',
  101. 'type'=>'0',
  102. 'require_login'=>'false',
  103. 'fb_mockajax_context'=>'O:16:"CanvasFBMLFlavor":1:{s:9:"_fbml_env";a:13:{s:4:"user";i:'.$uid.';s:6:"app_id";i:2389801228;s:10:"fb_page_id";i:0;s:10:"canvas_url";s:124:"http://apps.facebook.com/texas_holdem/index.php?src_track_str=Poker+FB+Bookmark+Other+%25ACTION%25+o%3ABookmark%3A2009-03-11";s:10:"source_url";s:124:"http://facebook.poker.zynga.com/poker/index.php?src_track_str=Poker+FB+Bookmark+Other+%25ACTION%25+o%3ABookmark%3A2009-03-11";s:17:"quickling_enabled";b:0;s:9:"loggedout";b:0;s:7:"non-tos";b:0;s:11:"flavor_code";i:3;s:14:"on_canvas_info";b:0;s:8:"is_tosed";b:1;s:8:"fb_frame";s:12:"texas_holdem";s:14:"suppress_label";b:1;}}',
  104. 'fb_mockajax_context_hash'=>$hash,
  105. 'appid'=>'2389801228',
  106. 'post_form_id'=>$postformid,
  107. 'fb_dtsg'=>$dtsg,
  108. '__a'=>'1');
  109.  
  110. print_r($postdata);
  111.  
  112.  
  113. echo "
  114. zbar2=$zbar2
  115.  
  116.  
  117. geof2=$geof2
  118.  
  119.  
  120.  
  121. launch=$launch
  122.  
  123.  
  124. ladder=$ladder
  125.  
  126. geoframe=$geoframe
  127.  
  128.  
  129. pcanvas=$pcanvas
  130.  
  131. ppi=$ppi";
  132.  
  133. if($ladder!="")
  134. {
  135. echo "<br>
  136.  
  137. <b>sorun yok devam<b>
  138.  
  139. <br>";
  140. }
  141. else
  142. {
  143. die("<b><br>
  144.  
  145. sorun var $html
  146.  
  147. <br>");
  148. }
  149.  
  150.  
  151.  
  152. foreach($linkler as $x => $link)
  153. {
  154.  
  155. echo "<b>
  156.  
  157. $link
  158.  
  159. <b><br>.";
  160.  
  161. $ch = curl_init();
  162. curl_setopt($ch, CURLOPT_URL,$link);
  163. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  164. curl_setopt($ch, CURLOPT_COOKIEFILE, $dir."facook.txt");
  165. curl_setopt($ch, CURLOPT_COOKIEJAR, $dir."facook.txt");
  166. curl_setopt($ch, CURLOPT_REFERER, "http://www.facebook.com/home.php?");
  167. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  168. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  169. curl_setopt($ch, CURLOPT_HEADER, 1);
  170. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  171. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  172.  
  173. $html = curl_exec($ch);
  174.  
  175. curl_close($ch);
  176. }
  177.  
  178.  
  179.  
  180. $ch = curl_init();
  181. curl_setopt($ch, CURLOPT_URL,"http://apps.facebook.com/fbml/fbjs_ajax_proxy.php");
  182. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  183. curl_setopt($ch, CURLOPT_COOKIEFILE, $dir."facook.txt");
  184. curl_setopt($ch, CURLOPT_COOKIEJAR, $dir."facook.txt");
  185. curl_setopt($ch, CURLOPT_REFERER, "http://apps.facebook.com/texas_holdem/index.php?src_track_str=Poker+FB+Bookmark+Other+%25ACTION%25+o%3ABookmark%3A2009-03-11");
  186. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  187. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  188. curl_setopt($ch, CURLOPT_HEADER, 1);
  189. curl_setopt($ch, CURLOPT_POST, 1);
  190. curl_setopt($ch, CURLOPT_POSTDATA, $postdata);
  191. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  192. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  193.  
  194. $html = curl_exec($ch);
  195.  
  196. curl_close($ch);
  197.  
  198. echo "<br><br><br><br><br>$html";
  199. print_r($postdata);
  200.  
  201.  
  202. ?>
clone this paste RAW Paste Data