-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (82 loc) · 3.79 KB
/
index.html
File metadata and controls
103 lines (82 loc) · 3.79 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
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="css/cerulean.bootstrap.min.css"/>
<link rel="stylesheet" href="css/style.css">
<meta charset="UTF-8">
<title>JavaScript Network Reconnaissance Tool</title>
</head>
<body>
<img id="logo" src="img/defseclogo.png" />
<div class="container" id="main">
<a class="tab" id="tab1" href="javascript:select_tab(1)">Port Scanning</a>
<a class="tab" id="tab2" href="javascript:select_tab(2)">Network Scanning</a>
<a class="tab" id="tab3" href="javascript:select_tab(3)">Discover My Private IP</a>
<form name="port_scan" onsubmit="return false">
<label for="ip">IP Address: </label>
<input type="text" id="ip" size="15">
<label for="start_port">Start Port: </label>
<input type="text" id="start_port" size="5">
<label for="end_port">End Port: </label>
<input type="text" id="end_port" size="5">
<input type="submit" value="Scan" onclick="scan_ports()">
<br><br>
Protocol :
<label for="xhr1">Cross Origin Requests</label>
<input id="xhr1" type="radio" name="protocol" value="0">
<label for="webs1">WebSockets</label>
<input id="webs1" type="radio" name="protocol" value="1" checked>
<br><br>
<section>
<strong>Notes: </strong>
<br>
Works only on the versions of <strong>FireFox, Chrome(recommended) and Safari</strong> that support WebSockets.
</section>
</form>
<form name="network_scan" id="form_ns" onsubmit="return false">
<label for="start_ip">Start IP Address: </label>
<input type="text" id="start_ip" size="15" />
<label for="end_ip">End IP Address: </label>
<input type="text" id="end_ip" size="15" />
<label for="port">Port: </label>
<input type="text" id="port" size="5" />
<input type="submit" value="Scan" onclick="scan_network()" />
<br><br>
Protocol :
<label for="xhr2">Cross Origin Requests</label>
<input id="xhr2" type="radio" name="protocol" value="0">
<label for="webs2">WebSockets</label>
<input id="webs2" type="radio" name="protocol" value="1" checked>
<br><br>
<section>
<strong>Notes: </strong>
<br>
Works only on the versions of <strong>FireFox, Chrome(recommended) and Safari</strong> that support WebSockets.
</section>
</form>
<form name="private_ip" id="form_pi" onsubmit="return false">
<p>This will try to discover your private IP address only if it falls in the 192.168.X.X range.</p>
<section>
<strong>Note: </strong>
<br>
<strong>*</strong> Tuned to scan fast internal networks. Scanning public/slow networks would require retuning.
<br>
<strong>*</strong> Works only on the versions of <b>FireFox, Chrome(recommended) and Safari</b> that support CrossOriginRequests/WebSockets
<br>
<strong>*</strong> Currently works on WINDOWS ONLY.
</section>
<input type="submit" value="Start" onclick="find_private_ip()" />
</form>
<fieldset id="fs">
<legend>Scan Output</legend>
<div id="result"></div>
<!-- Where the messages are seen (just text) -->
<div id="log"></div>
</fieldset>
</div>
<div id="jsreconLink">
<a href="http://www.andlabs.org/tools/jsrecon.html" target="_blank">Check out JSRecon online!</a>
</div>
<script src="js/nmap.js"></script>
</body>
</html>