Advertisement
Kachang404

Auto Generate Spotify

Apr 19th, 2019
1,223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.58 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. $headers = array();
  4. $headers[] = 'User-Agent: Spotify/8.4.98 Android/25 (ASUS_X00HD)';
  5. $headers[] = 'Content-Type: application/x-www-form-urlencoded';
  6. $headers[] = 'Connection: Keep-Alive';
  7.  
  8. // CURL Register Spotify
  9. echo "===========================\n";
  10. echo "Auto Create Spotify Account\n";
  11. echo "      By : Vio\n";
  12. echo "===========================\n";
  13. while (1)
  14. {
  15.     for ($i=0; $i <= 999 ; $i++) {
  16.         $mail = "gdhn".$i."@getnada.com";
  17.         $send = curl('https://spclient.wg.spotify.com:443/signup/public/v1/account/', 'iagree=true&birth_day=12&platform=Android-ARM&creation_point=client_mobile&password=sgb123&key=142b583129b2df829de3656f9eb484e6&birth_year=2000&email='.$mail.'&gender=male&app_version=849800892&birth_month=12&password_repeat=sgb123', $headers);
  18.         $data = json_decode($send[0]);
  19.         if ($data->status == 1) {
  20.             echo "\nSukses | Email : ".$mail;
  21.             $file = "spotify.html";
  22.             $handle = fopen($file, 'a');
  23.             fwrite($handle, $mail."<br>");
  24.             fclose($handle);
  25.         } else {
  26.             echo $data->errors->email."\n";
  27.         }
  28.     }
  29. }
  30.  
  31. function random($length,$a)
  32. {
  33.         $str = "";
  34.         if ($a == 0) {
  35.             $characters = array_merge(range('0','9'));
  36.         }elseif ($a == 1) {
  37.             $characters = array_merge(range('a','z'));
  38.         }elseif ($a == 2) {
  39.             $characters = array_merge(range('A','Z'));
  40.         }elseif ($a == 3) {
  41.             $characters = array_merge(range('0','9'),range('a','z'));
  42.         }elseif ($a == 4) {
  43.             $characters = array_merge(range('0','9'),range('A','Z'));
  44.         }elseif ($a == 5) {
  45.             $characters = array_merge(range('a','z'),range('A','Z'));
  46.         }elseif ($a == 6) {
  47.             $characters = array_merge(range('0','9'),range('a','z'),range('A','Z'));
  48.         }
  49.         $max = count($characters) - 1;
  50.         for ($i = 0; $i < $length; $i++) {
  51.             $rand = mt_rand(0, $max);
  52.             $str .= $characters[$rand];
  53.         }
  54.         return $str;
  55. }
  56.  
  57. function curl($url, $fields = null, $headers = null)
  58.     {
  59.         $ch = curl_init();
  60.         curl_setopt($ch, CURLOPT_URL, $url);
  61.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  62.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  63.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  64.         if ($fields !== null) {
  65.             curl_setopt($ch, CURLOPT_POST, 1);
  66.             curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
  67.         }
  68.         if ($headers !== null) {
  69.             curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  70.         }
  71.         $result   = curl_exec($ch);
  72.         $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  73.         curl_close($ch);
  74.        
  75.         return array(
  76.             $result,
  77.             $httpcode
  78.         );
  79.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement