/
masscheckshell.php
58 lines (58 loc) · 1.71 KB
/
masscheckshell.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
<?php
function copyright()
{
/*
Zerobyte.id
Don't remove this copyright please !
*/
system('clear');
echo "
_ __ ___ _ _
| |/ / ___ _ _ __ _ _ _ __ _ / __|| |_ ___ __ | |__ ___ _ _
| ' < / -_)| '_|/ _` || ' \ / _` | | (__ | ' \ / -_)/ _|| / // -_)| '_|
|_|\_\\\___||_| \__,_||_||_|\__, | \___||_||_|\___|\__||_\_\\\___||_|
|___/ Zerobyte Webshell Mass Checker";
}
copyright();
$green = "\e[92m";
$red = "\e[91m";
$keyword = array(
"Webshell",
"0Byte",
"IndoXploit",
"Shell",
"shell",
"wso"
); // Edit Here
echo "\nEnter Your List : ";
$url = trim(fgets(STDIN));
$kontorus = file_get_contents($url);
$urls = explode("\n", $kontorus);
$i = 1;
foreach ($urls as $list) {
echo "[" . $i . " / " . count($urls) . "]";
$i++;
$shell = explode(PHP_EOL, $list);
foreach ($shell as $shellchk) {
$url = trim($shellchk);
$keyx = '/' . implode('|', $keyword) . '/i';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$shellcurl = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpcode == '200' OR preg_match("$keyx", $shellcurl)) {
echo $green . "[LIVE!] $url\n\033[0m";
$save = @fopen("live.txt", "a");
fwrite($save, $url . "\n");
fclose($save);
}else{
echo $red . "[DIE] $url\n\033[0m";
$save = @fopen("die.txt", "a");
fwrite($save, $url . "\n");
fclose($save);
}
}
}
?>