coolass

Mypaste

Jul 17th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $str = file_get_contents('https://gimmeproxy.com/api/getProxy?post=true&minSpeed=50');
  5. $st = json_decode($str,1);
  6. $pro = $st['curl'];
  7.  
  8.  
  9. function request23($url,$pro){
  10.  
  11. $ch = curl_init($url);
  12. curl_setopt($ch, CURLOPT_POST, 0);
  13. curl_setopt($ch, CURLOPT_HEADER,1);
  14. //curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  15. //curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  16. curl_setopt($ch, CURLOPT_PROXY, $pro);
  17. //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
  18. //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
  19. curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);
  20. curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
  21. return curl_exec($ch);
  22.  
  23. }
  24.  
  25. $url = 'http://cngs.in/kBRoxzQA';
  26. $output= request23($url,$pro);
  27. $headers=array();
  28.  
  29. $data=explode("\n",$output);
  30.  
  31. $headers['status']=$data[0];
  32.  
  33. array_shift($data);
  34.  
  35. foreach($data as $part){
  36. $middle=explode(": ",$part);
  37. $headers[trim($middle[0])] = trim($middle[1]);
  38. }
  39. $rr = $headers['Location'];
  40. $refe = explode('referrer=',$rr);
  41. $refer = $refe[1];
  42.  
  43. function randomNumber($length) {
  44. $result = '';
  45.  
  46. for($i = 0; $i < $length; $i++) {
  47. $result .= mt_rand(0, 9);
  48. }
  49. return $result;
  50. }
  51.  
  52. function generateRandomString($length) {
  53. $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  54. $charactersLength = strlen($characters);
  55. $randomString = '';
  56. for ($i = 0; $i < $length; $i++) {
  57. $randomString .= $characters[rand(0, $charactersLength - 1)];
  58. }
  59. return $randomString;
  60. }
  61.  
  62.  
  63. function request($url,$data,$head,$pro){
  64. $ch = curl_init($url);
  65. curl_setopt($ch, CURLOPT_POST, 1);
  66. curl_setopt($ch, CURLOPT_HEADER,0);
  67. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  68. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  69. curl_setopt($ch, CURLOPT_PROXY, $pro);
  70. //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
  71. //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
  72. curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);
  73. curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
  74. return curl_exec($ch);
  75.  
  76. }
  77.  
  78. function requestPUT($url,$data,$head,$pro){
  79. $ch = curl_init($url);
  80. curl_setopt($ch, CURLOPT_POST, 1);
  81. curl_setopt($ch, CURLOPT_HEADER,0);
  82. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  83. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  84. curl_setopt($ch, CURLOPT_PROXY, $pro);
  85. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
  86. //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
  87. //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
  88. curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);
  89. curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
  90. return curl_exec($ch);
  91.  
  92. }
  93.  
  94. function request2($url,$head,$pro){
  95.  
  96. $ch = curl_init($url);
  97. curl_setopt($ch, CURLOPT_POST, 0);
  98. curl_setopt($ch, CURLOPT_HEADER,0);
  99. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  100. //curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  101. curl_setopt($ch, CURLOPT_PROXY, $pro);
  102. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
  103. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
  104. curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);
  105. curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
  106. return curl_exec($ch);
  107.  
  108. }
  109. //61add18f6b2d16ce$val = '';
  110. function osid($length){
  111. return substr(sha1(rand(0,getrandmax())),rand(0,24),$length);
  112. }
  113.  
  114.  
  115.  
  116. $no = '88974'.rand(00000,99999);
  117.  
  118. $osid = osid(16);
  119. //echo $osid;
  120. $str = file_get_contents('name.txt');
  121. $arr = explode(',',$str);
  122. $a = rand(0,500);
  123. $b = rand(0,500);
  124. $imei= randomNumber(15);
  125. $gcm='APA91bFo72lbQJgDmOn5LnNmGylqL4bO'.generateRandomString(26).'ThRjUZ1uEXVY2E5DfnSmjyLshzPlPsQt4d1IAM_'.generateRandomString(22).'';
  126. $no = '88976'.rand(00000,99999);
  127.  
  128. $name = $arr[$a];
  129. $name2 = $arr[$b];
  130.  
  131. $email = $name.strtolower($name2).rand(0,9999).'@gmail.com';
  132. echo $email;
  133.  
  134. function setHeaders($data,$token){
  135. $head[] = 'Content-Length: '.strlen($data);
  136. $head[] = 'Host: m.cashngifts.in';
  137. if($token!='0'){
  138. $head[] = 'era-token: '.$token.'';
  139. }
  140. return $head;
  141. }
  142.  
  143.  
  144. $refrr = 'http://cngs.in/kBRoxzQA';
  145. $
  146.  
  147. $token = '0';
  148. $username = $name.rand(000,999);
  149. $password = $name.rand(000,999);
  150. echo $username." ".$password." ";
  151.  
  152. $url = 'http://m.cashngifts.in/era/user/register';
  153. $data = 'username='.$username.'&email='.$email.'&mobile_no='.$no.'&password='.$password.'&country=India&android_id='.$osid.'&imei_no='.$imei.'&utm_join='.$refer.'';
  154. $hd = setHeaders($data,$token);
  155. $response1 = requestPUT($url,$data,$hd,$pro);
  156. echo $response1."<br>";
  157.  
  158. $url2 = 'http://m.cashngifts.in/era/user/login';
  159. //Edit Gcm to random
  160. //$gcm = 'AAPA91bEPsiKsBDQfGJ8yhfm4f0T2KIYZefVea8gow-6zxYwLYrfdOS5lNUNzUhhib-9RGsuG8j3mkSvjkoZn_ZtNJyBuMkgPUf-QWEjCyUrivJBUlzpRmtY7DogjbQe61zWaGv07LQq-';
  161. $data2 = 'username='.$username.'&password='.$password.'&android_id='.$osid.'&imei_no='.$imei.'&fcm_token=cSfv0JS9E9o%3'.$gcm.'';
  162. $hd2 = setHeaders($data2,$token);
  163. $response2 = request($url2,$data2,$hd2,$pro);
  164. $jd = json_decode($response2,1);
  165. echo $response2."<br>";
  166. $token = $jd['era_tkn'];
  167. $otp = $jd['user_data']['verification_code'];
  168.  
  169.  
  170.  
  171. $url3 = 'http://m.cashngifts.in/era/user/verification';
  172. $data3 = 'ver_code='.$otp.'';
  173. $hd3 = setHeaders($data3,$token);
  174. $response3 = request($url3,$data3,$hd3,$pro);
  175. $jd2 = json_decode($response3,1);
  176. $msg = $jd2['message'];
  177. echo "<center>$msg</center><br>";
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184. ?>
Add Comment
Please, Sign In to add comment