Advertisement
GOSTRA_FX

windsribe account creator

Feb 3rd, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. error_reporting(0);
  3. class curl {
  4.     var $ch, $agent, $error, $info, $cookiefile, $savecookie;  
  5.     function curl() {
  6.         $this->ch = curl_init();
  7.         curl_setopt ($this->ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.1 (KHTML, like Gecko) Chrome/2.0.164.0 Safari/530.1');
  8.         curl_setopt ($this->ch, CURLOPT_HEADER, 1);
  9.         curl_setopt ($this->ch, CURLOPT_RETURNTRANSFER, 1);
  10.         curl_setopt ($this->ch, CURLOPT_SSL_VERIFYPEER, 0);
  11.         curl_setopt ($this->ch, CURLOPT_SSL_VERIFYHOST, 0);
  12.         curl_setopt ($this->ch, CURLOPT_FOLLOWLOCATION,true);
  13.         curl_setopt ($this->ch, CURLOPT_TIMEOUT, 30);
  14.         curl_setopt ($this->ch, CURLOPT_CONNECTTIMEOUT,30);
  15.     }
  16.     function header($header) {
  17.         curl_setopt ($this->ch, CURLOPT_HTTPHEADER, $header);
  18.     }
  19.     function timeout($time){
  20.         curl_setopt ($this->ch, CURLOPT_TIMEOUT, $time);
  21.         curl_setopt ($this->ch, CURLOPT_CONNECTTIMEOUT,$time);
  22.     }
  23.     function http_code() {
  24.         return curl_getinfo($this->ch, CURLINFO_HTTP_CODE);
  25.     }
  26.     function error() {
  27.         return curl_error($this->ch);
  28.     }
  29.     function ssl($veryfyPeer, $verifyHost){
  30.         curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, $veryfyPeer);
  31.         curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, $verifyHost);
  32.     }
  33.     function cookies($cookie_file_path) {
  34.         $this->cookiefile = $cookie_file_path;;
  35.         $fp = fopen($this->cookiefile,'wb');fclose($fp);
  36.         curl_setopt ($this->ch, CURLOPT_COOKIEJAR, $this->cookiefile);
  37.         curl_setopt ($this->ch, CURLOPT_COOKIEFILE, $this->cookiefile);
  38.     }
  39.     function proxy($sock) {
  40.         curl_setopt ($this->ch, CURLOPT_HTTPPROXYTUNNEL, true);
  41.         curl_setopt ($this->ch, CURLOPT_PROXY, $sock);
  42.     }
  43.     function post($url, $data) {
  44.         curl_setopt($this->ch, CURLOPT_POST, 1);   
  45.         curl_setopt($this->ch, CURLOPT_POSTFIELDS, $data);
  46.         return $this->getPage($url);
  47.     }
  48.     function data($url, $data, $hasHeader=true, $hasBody=true) {
  49.         curl_setopt ($this->ch, CURLOPT_POST, 1);
  50.         curl_setopt ($this->ch, CURLOPT_POSTFIELDS, http_build_query($data));
  51.         return $this->getPage($url, $hasHeader, $hasBody);
  52.     }
  53.     function get($url, $hasHeader=true, $hasBody=true) {
  54.         curl_setopt ($this->ch, CURLOPT_POST, 0);
  55.         return $this->getPage($url, $hasHeader, $hasBody);
  56.     }  
  57.     function getPage($url, $hasHeader=true, $hasBody=true) {
  58.         curl_setopt($this->ch, CURLOPT_HEADER, $hasHeader ? 1 : 0);
  59.         curl_setopt($this->ch, CURLOPT_NOBODY, $hasBody ? 0 : 1);
  60.         curl_setopt ($this->ch, CURLOPT_URL, $url);
  61.         $data = curl_exec ($this->ch);
  62.         $this->error = curl_error ($this->ch);
  63.         $this->info = curl_getinfo ($this->ch);
  64.         return $data;
  65.     }
  66. }
  67.  
  68. function fetchCurlCookies($source) {
  69.     preg_match_all('/^Set-Cookie:\s*([^;]*)/mi', $source, $matches);
  70.     $cookies = array();
  71.     foreach($matches[1] as $item) {
  72.         parse_str($item, $cookie);
  73.         $cookies = array_merge($cookies, $cookie);
  74.     }
  75.     return $cookies;
  76. }
  77.  
  78. function string($length = 15)
  79. {
  80.     $characters = '0123456789abcdefghijklmnopqrstuvwxyz';
  81.     $charactersLength = strlen($characters);
  82.     $randomString = '';
  83.     for ($i = 0; $i < $length; $i++) {
  84.         $randomString .= $characters[rand(0, $charactersLength - 1)];
  85.     }
  86.     return $randomString;
  87. }
  88.  
  89. function angka($length = 15)
  90. {
  91.     $characters = '0123456789';
  92.     $charactersLength = strlen($characters);
  93.     $randomString = '';
  94.     for ($i = 0; $i < $length; $i++) {
  95.         $randomString .= $characters[rand(0, $charactersLength - 1)];
  96.     }
  97.     return $randomString;
  98. }
  99. function fetch_value($str,$find_start,$find_end) {
  100.     $start = @strpos($str,$find_start);
  101.     if ($start === false) {
  102.         return "";
  103.     }
  104.     $length = strlen($find_start);
  105.     $end    = strpos(substr($str,$start +$length),$find_end);
  106.     return trim(substr($str,$start +$length,$end));
  107. }
  108.  
  109. function loop($socks,$timeout) {
  110.     $curl = new curl();
  111.     $curl->cookies('cookies/'.md5($_SERVER['REMOTE_ADDR']).'.txt');
  112.     $curl->ssl(0, 2);
  113.     $curl->timeout($timeout);
  114.     $curl->proxy($socks);
  115.  
  116.  
  117.     $page_api = file_get_contents('https://www.fakenamegenerator.com');
  118.     $address = fetch_value($page_api, '<div class="address">','</div>');
  119.     $name = fetch_value($address, '<h3>','</h3>');
  120.     preg_match_all('/<dl class="dl-horizontal">(.*?)<\/dl>/s', $page_api, $user);
  121.     $mail = fetch_value($user[1][8], '<dd>','<div class="adtl">');
  122.     $mail_p = explode('@', $mail);
  123.     $domain = array ('@gmail.com','@yahoo.com','@mail.com','@yandex.com','@gmx.de','@t-online.de','@yahoo.co.id','@yahoo.co.uk');
  124.     $random = rand(0,7);
  125.     $email  = $mail_p[0].angka(4).$domain[$random];
  126.     $uname = fetch_value($user[1][9], '<dd>','</dd>');
  127.     $username = $uname.angka(4);
  128.     $password = string(8);
  129.  
  130.     $page = $curl->post('https://windscribe.com/signup', 'signup=1&username='.$username.'&password='.$password.'&password2='.$password.'&email='.$email.'&voucher_code=&captcha=&unlimited_plan=1');
  131.  
  132.     if (stripos($page, 'session_auth_hash')) {
  133.         echo "SUCCESS | Email: ".$email." | Password: ".$password." | Username: ".$username."\n";
  134.         $data =  "SUCCESS | Email: ".$email." | Password: ".$password." | Username: ".$username."\r\n";
  135.         $fh = fopen("success.txt", "a");
  136.         fwrite($fh, $data);
  137.         fclose($fh);
  138.     } else {
  139.         echo "SOCKS DIE | ".$socks."\n";
  140.         flush();
  141.         ob_flush();
  142.     }
  143. }
  144.  
  145. echo "MASS WINDSCRIBE ACCOUNT CREATOR\n";
  146. echo "CREATED BY YUDHA TIRA PAMUNGKAS\n";
  147. echo "Name file proxy (Ex: proxy.txt): ";
  148. $namefile = trim(fgets(STDIN));
  149. if ($namefile == "") {
  150.     die ("Proxy cannot be blank!\n");
  151. }
  152. echo "Timeout : ";
  153. $timeout = trim(fgets(STDIN));
  154. if ($timeout == "") {
  155.     die ("Cannot be blank!\n");
  156. }
  157. echo "Please wait";
  158. sleep(1);
  159. echo ".";
  160. sleep(1);
  161. echo ".";
  162. sleep(1);
  163. echo ".\n";
  164. $file = file_get_contents($namefile) or die ("File not found!\n");
  165. $socks = explode("\r\n",$file);
  166. $total = count($socks);
  167. echo "Total proxy: ".$total."\n";
  168.  
  169. $i = 0;
  170. foreach ($socks as $value) {
  171.     loop($value, $timeout);
  172.     $i++;
  173. }
  174.  
  175.  
  176.  
  177. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement