-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
138 lines (129 loc) · 5.36 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Online Nmap Viewer | Enhance your hack</title>
<meta name="Content-Type" content="UTF-8">
<meta name="Content-Language" content="en">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="Keywords" content="Nmap, nmap viewer, xml, nmap output, nmap xml output">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.0/css/foundation.min.css" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="main.css" />
</head>
<body>
<div class="top-bar">
<div class="top-bar-title">
<strong>Online Nmap Viewer</strong>
</div>
<div class="top-bar-left">
<!-- MENU -->
</div>
</div>
<div class="row">
<div class="small-4 large-4 columns">
<form>
<label>Your Nmap XML output:</label>
<textarea id="nmap-result" placeholder="Nmap output...">
</textarea>
<div id="menu-container"></div>
</form>
</div>
<div class="small-8 large-8 columns">
<table>
<thead>
<tr>
<th>Time</th>
<th>Command</th>
<th>Nmap version</th>
<th>Action</th>
</tr>
</thead>
<tbody id="nmap-list">
</tbody>
</table>
<hr>
<div id="nmap-item"></div>
</div>
</div>
<script type="text/template" id="menu-template">
<div class="row">
<div class="small-8 large-8 columns">
<button id="clear" type="button" class="button alert">Clear</button>
</div>
<div class="small-4 large-4 columns">
<button id="format" type="button" class="button primary">Format</button>
</div>
</div>
</script>
<script type="text/template" id="nmap-list-template">
<td class="time"><%= nmaprun._startstr %></td>
<td><code><%= nmaprun._args %></code></td>
<td><%= nmaprun._version %></td>
<td class="menu">
<li><button class="open-item button small"><i class="fa fa-eye" aria-hidden="true"></i></button></li>
<li><button class="close-item button alert small"><i class="fa fa-trash-o" aria-hidden="true"></i></i></button></li>
</td>
</script>
<script type="text/template" id="nmap-item-template">
<h4 class="subheader">Scan info</h4>
<p>Command: <code><%= nmaprun._args %></code></p>
<p>
Type: <span class="label secondary"><%= nmaprun.scaninfo._type %></span>
Protocol: <span class="label secondary"><%= nmaprun.scaninfo._protocol %></span>
Numservices: <span class="label primary"><%= nmaprun.scaninfo._numservices %></span>
</p>
<h4 class="subheader">Host info</h4>
<p>
State:
<% if (nmaprun.host.status._state !== "up") { %>
<span class="label alert"><%= nmaprun.host.status._state %></span>
<% } else {%>
<span class="label success"><%= nmaprun.host.status._state %></span>
<% } %>
Reason: <span class="label secondary"><%= nmaprun.host.status._reason %></span>
Reason TTL: <span class="label secondary"><%= nmaprun.host.status._reason_ttl %></span>
</p>
<h6 class="subheader">Adresses</h6>
<p>
<% _.each(nmaprun.host.address, function(address) { %>
<strong><%= address._addrtype %></strong> : <%= address._addr %>
<% }); %>
</p>
<table>
<thead>
<tr>
<th>State</th>
<th>Service</th>
<th>Protocol</th>
<th>Port</th>
</tr>
</thead>
<tbody>
<% _.each(nmaprun.host.ports.port, function(port) { %>
<tr>
<td>
<% if (port.state._state !== "open") { %>
<span class="close"><%= port.state._state %></span>
<% } else {%>
<span class="open"><%= port.state._state %></span>
<% } %>
<span class="label secondary"><%= port.state._reason%></span>
</td>
<td><%= port.service._name %></td>
<td><%= port._protocol %></td>
<td><%= port._portid %></td>
</tr>
<% }); %>
</tbody>
</table>
</script>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.0/js/foundation.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.3.3/backbone.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone-localstorage.js/1.1.16/backbone.localStorage-min.js"></script>
<script src="https://cdn.rawgit.com/abdmob/x2js/master/xml2json.js"></script>
<script src="./nmapwebapp.js"></script>
</body>
</html>