-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex2.html
51 lines (43 loc) · 2.06 KB
/
index2.html
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
<doctype html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<link href='../static/css/main.css' rel='stylesheet'>
<div class='header'> Web Vulnerablity Scanner Framework</div>
<div class='bodypart'>
<form method="POST" id="myform" action="">
<select class="option" data-trigger="" name="choices-single-defaul" id="attack" onchange=setAction();>
<option >What to Perform</option>
<option value="xss">XSS Test</option>
<option value="sql">SQL Injection check</option>
<option value="ports">Port Scan</option>
<option value="subdomain">Domain Scan</option>
<option value="discover">File path traversal</option>
<option value="fullscan">Complete scan</option>
</select>
<input id="search" class='entervalues' name="ipaddress" type="text" placeholder="Enter your IP or web-adress" />
<button type='submit'><i class="fa fa-search"></i></button>
</form>
</div>
<script>
function setAction() {
var attackType = document.getElementById('attack').value;
// alert(attackType);
var formAction = document.getElementById('myform');
formAction.action = attackType;
if (attackType == "xss") {
search = document.getElementById("search");
search.placeholder = "Please enter full url like abc.com";
} else if (attackType == "discover") {
search = document.getElementById("search");
search.placeholder = "Please enter pnly domain name e.g abc.com";
} else {
search = document.getElementById("search");
search.placeholder = "Please enter IP or URL";
}
}
</script>
</body>
</html>