1+ <?php
2+ error_reporting (0 );
3+
4+ /**
5+ * Author : Wahyu Arif Purnomo
6+ * Update : 5 September 2019
7+ * Please don't edit, respect me, if you want to be appreciated.
8+ */
9+
10+ $ climate ->br ()->shout ('The spotify country will be based on your IP when running this tool. ' );
11+
12+ $ input_list = $ climate ->info ()->input ('List? ' );
13+ $ list = $ input_list ->prompt ();
14+
15+ $ input_pass = $ climate ->info ()->input ('Default Password? ' );
16+ $ pass = $ input_pass ->prompt ();
17+
18+ $ input_save = $ climate ->info ()->input ('Save success results? ' );
19+ $ save_file = $ input_save ->prompt ();
20+
21+ $ file = file_get_contents ("$ list " ) or die ("" . $ climate ->br ()->error ('File not found. Check the file name and try again. ' ) . "" );
22+ $ data = explode ("\n" , str_replace ("\r" , "" , $ file ));
23+
24+ $ no = 0 ;
25+ for ($ a = 0 ; $ a < count ($ data ); $ a ++) {
26+ $ email = $ data [$ a ];
27+ $ no ++;
28+
29+ $ version_ua_phone = array (
30+ 'ASUS_T00F ' ,
31+ 'ASUS_T00J ' ,
32+ 'ASUS_T00Q ' ,
33+ 'ASUS_Z007 ' ,
34+ 'ASUS_Z00AD ' ,
35+ 'ASUS_X00HD '
36+ );
37+
38+ $ ua_phone = $ version_ua_phone [mt_rand (0 , sizeof ($ version_ua_phone ) - 1 )];
39+
40+ $ headers = array ();
41+ $ headers [] = 'User-Agent: Spotify/8.4.98 Android/25 ( ' . $ ua_phone . ') ' ;
42+ $ headers [] = 'Content-Type: application/x-www-form-urlencoded ' ;
43+ $ headers [] = 'Connection: Keep-Alive ' ;
44+
45+ $ 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= ' . $ pass . '&key=142b583129b2df829de3656f9eb484e6&birth_year=1998&email= ' . $ email . '&gender=male&app_version=849800892&birth_month=12&password_repeat= ' . $ pass , $ headers );
46+ $ hasil = json_decode ($ send [0 ]);
47+
48+ $ array = objectToArray ($ hasil );
49+ #var_dump($array);
50+ $ berhasil = $ array ['status ' ];
51+ $ gagal = $ array ['errors ' ];
52+
53+ if ($ berhasil == 1 ) {
54+ $ climate ->br ()->info ($ no . '. Success | Email : ' . $ email . ' | Username : ' . $ array ['username ' ] . ' | Password : ' . $ pass );
55+
56+ $ save = fopen ("result/ " . $ save_file , 'a ' );
57+ fwrite ($ save , $ email . " | " . $ pass . " | " . $ array ['username ' ] . "\n" );
58+ } else {
59+ $ climate ->br ()->error ($ no . '. Failed | Email : ' . $ email . ' | Username : ' . $ pass . ' | ' . $ gagal ['email ' ] . ' ' . $ gagal ['password ' ]);
60+ }
61+ }
62+
63+ function objectToArray ($ d )
64+ {
65+ if (is_object ($ d )) {
66+ // Wahyu Arif Purnomo - System Spotify - Array Object
67+ $ d = get_object_vars ($ d );
68+ }
69+
70+ if (is_array ($ d )) {
71+ /*
72+ * Wahyu Arif Purnomo - System Spotify - Array Function
73+ */
74+ return array_map (__FUNCTION__ , $ d );
75+ } else {
76+ // Wahyu Arif Purnomo - System Spotify - Return array
77+ return $ d ;
78+ }
79+ }
80+
81+ function curl ($ url , $ fields = null , $ headers = null )
82+ {
83+ $ ch = curl_init ();
84+ curl_setopt ($ ch , CURLOPT_URL , $ url );
85+ curl_setopt ($ ch , CURLOPT_RETURNTRANSFER , true );
86+ curl_setopt ($ ch , CURLOPT_FOLLOWLOCATION , true );
87+ curl_setopt ($ ch , CURLOPT_SSL_VERIFYPEER , false );
88+ if ($ fields !== null ) {
89+ curl_setopt ($ ch , CURLOPT_POST , 1 );
90+ curl_setopt ($ ch , CURLOPT_POSTFIELDS , $ fields );
91+ }
92+ if ($ headers !== null ) {
93+ curl_setopt ($ ch , CURLOPT_HTTPHEADER , $ headers );
94+ }
95+ $ result = curl_exec ($ ch );
96+ $ httpcode = curl_getinfo ($ ch , CURLINFO_HTTP_CODE );
97+ curl_close ($ ch );
98+
99+ return array (
100+ $ result ,
101+ $ httpcode
102+ );
103+ }
104+
105+ /**
106+ * Author : Wahyu Arif Purnomo
107+ * Update : 5 September 2019
108+ * Please don't edit, respect me, if you want to be appreciated.
109+ */
0 commit comments