forked from TideSec/WDScanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscan.html
More file actions
235 lines (210 loc) · 7.22 KB
/
scan.html
File metadata and controls
235 lines (210 loc) · 7.22 KB
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="title" content="">
<meta name="description" content="">
<meta name="keywords" content="">
<title>扫描管理 - <?php echo soft_name?></title>
<!-- Le styles -->
<link href="css/bootstrap-combined.min.css" rel="stylesheet">
<link href="css/layoutit.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="img/favicon.png">
<script type="text/javascript" src="js/jquery-2.0.0.min.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<![endif]-->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript" src="js/jquery.htmlClean.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<script type="text/javascript" src="js/action.js"></script>
</head>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-target=".navbar-responsive-collapse" data-toggle="collapse"></a> <a class="brand" href="?m=index"><?php echo soft_name?></a>
<div class="nav-collapse collapse navbar-responsive-collapse">
<ul class="nav">
<li>
<a href="?m=manager">管理中心</a>
</li>
<li>
<a href="?m=customer">客户管理</a>
</li>
<li class="active">
<a href="?m=scan">扫描管理</a>
</li>
<li>
<a href="?m=info">信息搜集</a>
</li>
<li>
<a href="?m=spider">站点爬虫</a>
</li>
<!--
<li>
<a href="?m=pro">专项检测</a>
</li>
-->
<li>
<a href="?m=point">节点管理</a>
</li>
<li>
<a href="?m=set">系统管理</a>
</li>
<li>
<a href="?m=proxy">代理地址池</a>
</li>
</ul>
<ul class="nav pull-right">
<li class="active">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $_SESSION['username'];?></a>
<ul class="dropdown-menu">
<li>
<a id="modal-978241" href="#cpasswd-<?php echo $_SESSION['username']?>" data-toggle="modal">修改密码</a>
</li>
<li>
<a href="?m=logout">退出</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="tabbable" id="tabs-25550">
<ul class="nav nav-tabs">
<li class="active">
<a href="#panel-941070" data-toggle="tab">任务列表</a>
</li>
<li>
<a href="#panel-910581" data-toggle="tab">新建任务</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="panel-941070">
<table class="table" style="font-size:14px;">
<thead>
<tr>
<th style="text-align:center">
ID
</th>
<th style="text-align:center">
站点
</th>
<th style="text-align:center">
标题
</th>
<th style="text-align:center">
客户
</th>
<th style="text-align:center">
状态
</th>
<th style="text-align:center">
高危
</th>
<th style="text-align:center">
中危
</th>
<th style="text-align:center">
低危
</th>
<th style="text-align:center">
Banner
</th>
<th style="text-align:center">
OS
</th>
<th style="text-align:center">
扫描周期
</th>
<th style="text-align:center">
扫描时间
</th>
<th style="text-align:center">
操作
</th>
</tr>
</thead>
<tbody>
<?php echo $html_str;?>
</tbody>
</table>
</div>
<div class="tab-pane" id="panel-910581">
<form action="?m=scan&c=new" method="POST">
<fieldset>
<!--<label>URL</label><input type="text" style="width:500px" name="url"/>-->
<label>URL <font color="orange" size="2px">tag:添加多个URL时使用回车换行,每行一个URL地址</font></label><textarea rows="5" cols="200" style="width:500px" name="url"></textarea>
<label>所属客户</label>
<select name="customer">
<?php
global $db;
$sql = "SELECT * FROM customer order by convert(name using gbk) ASC";
$results = $db->query($sql);
while ($fs = $db->fetch_array($results)){
?>
<option value="<?php echo $fs['0'];?>"><?php echo $fs['1'];?></option>
<?php
} ?>
</select>
<label>扫描周期</label>
<select name="delay">
<option value="4">仅一次</option>
<option value="1">每月一次</option>
<option value ="2">每季度一次</option>
<option value ="3">每半年一次</option>
</select>
<label>账号</label><input type="text" name="user"/>
<label>密码</label><input type="text" name="pwd"/>
<label>COOKIE</label><textarea rows="5" cols="200" style="width:500px" name="cookie"></textarea>
<label>扫描策略</label>
<select name="rule">
<option value="4">Default</option>
<option value ="1">SQL</option>
<option value ="2">XSS</option>
<option value="3">CSRF</option>
</select>
<label class="checkbox"><input type="checkbox" name="auth" /> 认证扫描 </label>
<button type="submit" class="btn">提交扫描</button>
<button type="submit" class="btn">取消</button>
</fieldset>
</form>
</div>
<?php echo scan_display();?>
<div id="cpasswd-<?php echo $_SESSION['username']?>" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">
<?php echo $_SESSION['username']?>的密码修改
</h3>
</div>
<div class="modal-body">
<fieldset>
<label>旧 密 码</label><input type="text" value="" name="oldpasswd" id="oldpasswd"/>
<label>新 密 码</label><input type="text" value="" name="newpasswd" id="newpasswd"/>
<label>重新输入</label><input type="text" value="" name="repasswd" id="repasswd"/>
</fieldset>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button> <button class="btn btn-primary" onclick="cpasswd()">保存设置</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>