Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $str = file_get_contents('https://gimmeproxy.com/api/getProxy?post=true&minSpeed=50');
- $st = json_decode($str,1);
- $pro = $st['curl'];
- function request23($url,$pro){
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_POST, 0);
- curl_setopt($ch, CURLOPT_HEADER,1);
- //curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
- //curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
- curl_setopt($ch, CURLOPT_PROXY, $pro);
- //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
- //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
- return curl_exec($ch);
- }
- $url = 'http://cngs.in/kBRoxzQA';
- $output= request23($url,$pro);
- $headers=array();
- $data=explode("\n",$output);
- $headers['status']=$data[0];
- array_shift($data);
- foreach($data as $part){
- $middle=explode(": ",$part);
- $headers[trim($middle[0])] = trim($middle[1]);
- }
- $rr = $headers['Location'];
- $refe = explode('referrer=',$rr);
- $refer = $refe[1];
- function randomNumber($length) {
- $result = '';
- for($i = 0; $i < $length; $i++) {
- $result .= mt_rand(0, 9);
- }
- return $result;
- }
- function generateRandomString($length) {
- $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
- $charactersLength = strlen($characters);
- $randomString = '';
- for ($i = 0; $i < $length; $i++) {
- $randomString .= $characters[rand(0, $charactersLength - 1)];
- }
- return $randomString;
- }
- function request($url,$data,$head,$pro){
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_HEADER,0);
- curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
- curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
- curl_setopt($ch, CURLOPT_PROXY, $pro);
- //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
- //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
- return curl_exec($ch);
- }
- function requestPUT($url,$data,$head,$pro){
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_HEADER,0);
- curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
- curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
- curl_setopt($ch, CURLOPT_PROXY, $pro);
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
- //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
- //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
- return curl_exec($ch);
- }
- function request2($url,$head,$pro){
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_POST, 0);
- curl_setopt($ch, CURLOPT_HEADER,0);
- curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
- //curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
- curl_setopt($ch, CURLOPT_PROXY, $pro);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,TRUE);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
- return curl_exec($ch);
- }
- //61add18f6b2d16ce$val = '';
- function osid($length){
- return substr(sha1(rand(0,getrandmax())),rand(0,24),$length);
- }
- $no = '88974'.rand(00000,99999);
- $osid = osid(16);
- //echo $osid;
- $str = file_get_contents('name.txt');
- $arr = explode(',',$str);
- $a = rand(0,500);
- $b = rand(0,500);
- $imei= randomNumber(15);
- $gcm='APA91bFo72lbQJgDmOn5LnNmGylqL4bO'.generateRandomString(26).'ThRjUZ1uEXVY2E5DfnSmjyLshzPlPsQt4d1IAM_'.generateRandomString(22).'';
- $no = '88976'.rand(00000,99999);
- $name = $arr[$a];
- $name2 = $arr[$b];
- $email = $name.strtolower($name2).rand(0,9999).'@gmail.com';
- echo $email;
- function setHeaders($data,$token){
- $head[] = 'Content-Length: '.strlen($data);
- $head[] = 'Host: m.cashngifts.in';
- if($token!='0'){
- $head[] = 'era-token: '.$token.'';
- }
- return $head;
- }
- $refrr = 'http://cngs.in/kBRoxzQA';
- $
- $token = '0';
- $username = $name.rand(000,999);
- $password = $name.rand(000,999);
- echo $username." ".$password." ";
- $url = 'http://m.cashngifts.in/era/user/register';
- $data = 'username='.$username.'&email='.$email.'&mobile_no='.$no.'&password='.$password.'&country=India&android_id='.$osid.'&imei_no='.$imei.'&utm_join='.$refer.'';
- $hd = setHeaders($data,$token);
- $response1 = requestPUT($url,$data,$hd,$pro);
- echo $response1."<br>";
- $url2 = 'http://m.cashngifts.in/era/user/login';
- //Edit Gcm to random
- //$gcm = 'AAPA91bEPsiKsBDQfGJ8yhfm4f0T2KIYZefVea8gow-6zxYwLYrfdOS5lNUNzUhhib-9RGsuG8j3mkSvjkoZn_ZtNJyBuMkgPUf-QWEjCyUrivJBUlzpRmtY7DogjbQe61zWaGv07LQq-';
- $data2 = 'username='.$username.'&password='.$password.'&android_id='.$osid.'&imei_no='.$imei.'&fcm_token=cSfv0JS9E9o%3'.$gcm.'';
- $hd2 = setHeaders($data2,$token);
- $response2 = request($url2,$data2,$hd2,$pro);
- $jd = json_decode($response2,1);
- echo $response2."<br>";
- $token = $jd['era_tkn'];
- $otp = $jd['user_data']['verification_code'];
- $url3 = 'http://m.cashngifts.in/era/user/verification';
- $data3 = 'ver_code='.$otp.'';
- $hd3 = setHeaders($data3,$token);
- $response3 = request($url3,$data3,$hd3,$pro);
- $jd2 = json_decode($response3,1);
- $msg = $jd2['message'];
- echo "<center>$msg</center><br>";
- ?>
Add Comment
Please, Sign In to add comment