-
Notifications
You must be signed in to change notification settings - Fork 0
/
tes.php
151 lines (129 loc) · 4.26 KB
/
tes.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
<?php
// DONT CHANGE THIS
/* ================[INFO]================
* AUTHOR : ZLAXTERT
* SCRIPT : CARRIER
* GITHUB : https://github.com/ZLAXTERT
* IG : https://instagram.com/zlaxtert
* VERSION : 1.1 (CLI)
* ======================================
*/
//SETTING
ini_set("memory_limit", '-1');
date_default_timezone_set("Asia/Jakarta");
define("OS", strtolower(PHP_OS));
//============> CREATE FOLDER RESULT
$DirRess = "result/";
if(is_dir($DirRess)){
$DirRess2 = "result/die/";
if(is_dir($DirRess2)){
// TRUE
}else{
mkdir($DirRess2);
}
}else{
mkdir($DirRess);
$DirRess2 = "result/die/";
if(is_dir($DirRess2)){
// TRUE
}else{
mkdir($DirRess2);
}
}
$date = date("l, d-m-Y");
//BANNER
system("cls");
echo banner();
//INPUT LIST
enterlist:
echo "\n[+] Enter your list (eg: list.txt) >> ";
$listname = trim(fgets(STDIN));
if(empty($listname) || !file_exists($listname)) {
echo " [!] Your Fucking list not found [!]".PHP_EOL;
goto enterlist;
}
$lists = array_unique(explode("\n",str_replace("\r","",file_get_contents($listname))));
$apikey = file_get_contents("apikey.app");
//COUNT
$l = 0;
$d = 0;
$e = 0;
$u = 0;
$no = 0;
$total = count($lists);
echo "\n[+] TOTAL $total lists [+]\n\n";
//LOOPING
foreach ($lists as $list) {
$no++;
//GET PROXIES
$proxy = GetProxy("proxy.txt");
//API
$url = "http://darkxcode.com/validator/carrier/tes.php?&apikey=$apikey&proxy=$proxy&phone=$list";
//CURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$res = curl_exec($ch);
curl_close($ch);
$js = json_decode($res, TRUE);
$carrierName = $js['data']['info']['carrier'];
$abbrev = $js['data']['info']['abbrev'];
$carrierName = str_replace("\\","",$carrierName);
$carrierName = str_replace("/","",$carrierName);
if($carrierName == "Unknown"){
$carrierN = "\e[31;1m$carrierName\e[0m";
}else{
$carrierN = $carrierName;
}
//RESPONSE
if(strpos($res, '"carrier":"WRONG API KEY!"')){
$e++;
exit("\n\n[\e[31;1mX\e[0m] \e[33;1m!!!\e[31;1mWRONG API KEY\e[33;1m!!! \e[0m[\e[31;1mX\e[0m]\n\n\n");
}elseif(strpos($res, '"valid":"true"')){
$l++;
file_put_contents("result/$carrierName.txt", $list.PHP_EOL, FILE_APPEND);
echo "[$no/$total] \e[32;1mLIVE\e[0m | $list => \e[32;1m$carrierName\e[0m | \e[33;1m$abbrev\e[0m\n";
}elseif(strpos($res, '"valid":"false"')){
$d++;
file_put_contents("result/die/$carrierName.txt", $list.PHP_EOL, FILE_APPEND);
echo "[$no/$total] \e[31;1mDIE\e[0m | $list | => \e[34;1m$carrierN\e[0m \n";
}elseif(strpos($res, "The server is temporarily busy, try again later!")){
$e++;
file_put_contents("result/error.txt", $list.PHP_EOL, FILE_APPEND);
echo "[x] !!!SERVER BUSY!!! [x]\n";
}else{
$u++;
file_put_contents("result/unknown.txt", $list.PHP_EOL, FILE_APPEND);
echo "[$no/$total] \e[33;1mUNKNOWN\e[0m => $list \n";
}
}
//END
echo "
DATE : $date
==========[INFO]==========
TOTAL LIST : $total
LIVE : $l
DIE : $d
UNKNOWN : $u
ERROR : $e
==========================
THANKS FOR USING
";
function banner(){
$banner = "
╦ ╦┌─┐┬ ┬┌┬┐┌─┐┌┬┐┌─┐┬─┐ ╔═╗┌─┐┬─┐┬─┐┬┌─┐┬─┐
╚╗╔╝├─┤│ │ ││├─┤ │ │ │├┬┘ ║ ├─┤├┬┘├┬┘│├┤ ├┬┘
╚╝ ┴ ┴┴─┘┴─┴┘┴ ┴ ┴ └─┘┴└─ ╚═╝┴ ┴┴└─┴└─┴└─┘┴└─ V.1.0
https://blacknetid.com
[CODE BY ZLAXTERT]
================================================
";
return $banner;
}
function GetProxy($proxies){
$proxyLists = array_unique(explode("\n",str_replace("\r","",file_get_contents($proxies))));
$randProxies = array_rand($proxyLists);
$proxy = $randProxies[$proxyLists];
return $proxy;
}