forked from sophsec/namaste
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
450877c
commit c5ebd38
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<h2>Hosts:</h2> | ||
<% @hosts.each do |host| %> | ||
<p> | ||
<a href="/hosts/<%= host.id %>"><%= escape_html host.ip %></a> | ||
</p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<h2><%= escape_html @host.ip %></h2> | ||
|
||
<h3>Host names:</h3> | ||
<ul> | ||
<% @host.names.each do |host_name| %> | ||
<li><%= escape_html host_name.name %></li> | ||
<% end %> | ||
</ul> | ||
|
||
<h3>Scanned Ports:</h3> | ||
<table> | ||
<thead> | ||
<th>Protocol</th> | ||
<th>Status</th> | ||
<th>Port</th> | ||
<th>Service</th> | ||
</thead> | ||
|
||
<tbody> | ||
<% @host.scanned_ports.each do |scanned_port| %> | ||
<tr> | ||
<td><%= scanned_port.port.protocol %></td> | ||
<td><%= scanned_port.status %></td> | ||
<td><%= scanned_port.port.number %></td> | ||
<td><%= escape_html scanned_port.service.name %></td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> |