-
Notifications
You must be signed in to change notification settings - Fork 1
/
sc0hsphere.php
55 lines (49 loc) · 1.77 KB
/
sc0hsphere.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
<?php
error_reporting(E_ALL);
ini_set("display_errors", 0);
$title = "HSpere Scanner" ;
$dir = "<table border='1' style='border-collapse: collapse'>
<tr>
<td>ServerName</td>
<td>DocumentRoot</td>
<td>Vulnerable</td>
</tr>
";
$chsphere = "/hsphere/local/config/httpd/sites/";
$opendir = opendir($chsphere);
while (($file = readdir($opendir)) !== false) {
$path = $chsphere.$file;
$readfile = fopen($path,"r");
$content = fread($readfile,filesize($path));
fclose($readfile);
$DocumentRoot = explode('DocumentRoot', $content );
$DRoot = explode('ServerName', $DocumentRoot[1] );
$ServerName = explode('ServerName', $content );
$SName = explode('ServerAlias', $ServerName[1] );
$dir .= "<tr><td>".$SName[0]."</td><td>".$DRoot[0]."</td><td>unsecure</td></tr>"; //disini kamu bisa bikin link ke webshellnya.
}
closedir($opendir);
$dir .= "</table>";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="RaideRz" />
<title><?php echo $title ?> - Billgate</title>
<style type="text/css">
*{ color: #444;}
body { background: #111; }
#xcrew { width:800px auto ; background: #000; min-height: 200px; border: 1px outset #454545; margin: 50px; padding: 5px; }
#output {color: #333 ;}
</style>
</head>
<body>
<div id="./BillGate">
<p style="font-size: 24px; text-align: center; color: red;"><strong>..:: <?php echo $title ?> - Indonesia UnderGround Coder ::..</strong></p><br/>
<div id="output">
<?php echo $dir ?>
</div>
</div>
</body>
</html>