Advertisement
Guest User

Untitled

a guest
May 1st, 2014
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1.  
  2. <body BGCOLOR="#04B404">
  3. <?php
  4.  
  5. set_time_limit(0);
  6.  
  7. $cookie = 'c:/xampp/htdocs/img/cookie.txt';
  8.  
  9. $agent = "Opera/9.80 (J2ME/MIDP; Opera Mini/7.1.32052/34.1697; U; en) Presto/2.8.119 Version/11.10";
  10.  
  11. $uid = $_REQUEST['uid'];
  12. $pwd = $_REQUEST['pwd'];
  13.  
  14. $ch = curl_init();
  15. curl_setopt($ch,CURLOPT_URL,"http://ultoo.com/login.php");
  16. curl_setopt($ch, CURLOPT_TIMEOUT, 0);
  17. curl_setopt($ch,CURLOPT_COOKIEJAR,$cookie);
  18. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  19.  
  20. curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
  21. curl_setopt($ch,CURLOPT_REFERER,"http://ultoo.com/login.php");
  22. $one=curl_exec($ch);
  23.  
  24. preg_match_all("/document.getElementById(.*?).value/",$one,$us);
  25. $user = $us[1][10];
  26.  
  27. $user = str_replace('(', '', $user);
  28. $user = str_replace(')', '', $user);
  29. $user = str_replace("'", '', $user);
  30.  
  31. //die("<font color='red'><b>".$user."</b></font>");
  32. flush();
  33.  
  34. $pass = $us[1][9];
  35.  
  36. $pass = str_replace('(', '', $pass);
  37. $pass = str_replace(')', '', $pass);
  38. $pass = str_replace("'", '', $pass);
  39.  
  40.  
  41. $data1 = "$user=$uid&$pass=$pwd&RememberMe=1";
  42. $ch = curl_init();
  43. curl_setopt($ch, CURLOPT_URL,"http://ultoo.com/login.php");
  44. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  45. curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
  46. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  47.  
  48. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  49. curl_setopt($ch, CURLOPT_REFERER, "http://ultoo.com/login.php");
  50. curl_setopt($ch, CURLOPT_POST, 1);
  51. curl_setopt($ch, CURLOPT_POSTFIELDS,"$data1");
  52.  
  53.  
  54. $ct = curl_exec( $ch );
  55.  
  56. if(stristr($ct,"number & password"))
  57. {
  58. echo "<font color='red'><b>Invalid U/P</b></font>";
  59. }
  60. else
  61. {
  62.  
  63. if(stristr($ct,"secure.php"))
  64. {
  65. curl_setopt($ch, CURLOPT_URL,"http://ultoo.com/secure.php?zxcoiesesscd=");
  66. curl_setopt( $ch, CURLOPT_USERAGENT, $agent );
  67. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  68.  
  69. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  70. curl_setopt($ch, CURLOPT_AUTOREFERER, true);
  71.  
  72. $ct=curl_exec($ch);
  73.  
  74.  
  75. preg_match_all("/document.getElementById(.*?).value/",$ct,$mbll);
  76. $mbl = $mbll[1][5];
  77.  
  78. $mbl = str_replace('(', '', $mbl);
  79. $mbl = str_replace(')', '', $mbl);
  80. $mbl = str_replace("'", '', $mbl);
  81.  
  82. //die("<font color='red'><b>".$mbl."</b></font>");
  83. flush();
  84.  
  85. $url = "http://ultoo.com/captcha.php";
  86. curl_setopt($ch, CURLOPT_URL,$url);
  87. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  88. curl_setopt($ch, CURLOPT_HEADER, 0);
  89. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  90. curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  91. //curl_setopt($ch, CURLOPT_POST, 1);
  92.  
  93. $html=curl_exec($ch);
  94. curl_close($ch);
  95.  
  96. $name = "img/".rand(1,99999).".png";
  97. $myFile = $name;
  98. $fh = fopen($myFile, 'w') or die("can't open file");
  99. $stringData = $html;
  100. fwrite($fh, $stringData);
  101. fclose($fh);
  102. }
  103. }
  104. ?>
  105. <center>
  106. <img src=<?php
  107. echo $name; ?>><br>
  108. <form method=post action="play.php">
  109. <input type=text name=c>
  110. <input type=hidden name=img value=<?php
  111. echo $name; ?>>
  112. <?php
  113.  
  114. echo '<input type="hidden" name="mbl" value="'.$mbl.'">';
  115.  
  116. echo '<input type="hidden" name="uid" value="'.$uid.'">';
  117.  
  118. ?>
  119. <input type=submit name="submit" value=Earn>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement