Files
metasploit-gs/data/msfweb/app/views/sessions/list.rhtml
T
HD Moore 10c61b495d The sessions page now opens up each session in a console, which fixes #11.
git-svn-id: file:///home/svn/framework3/trunk@4441 4d416f70-5f16-0410-b530-b9f4589650da
2007-02-18 23:26:30 +00:00

25 lines
612 B
Plaintext

<% if(@sessions.length > 0) %>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
<tr>
<th width="10">ID</th>
<th width="40">Target</th>
<th width="60">Payload</th>
<th width="60">Exploit</th>
</tr>
</thead>
<tbody>
<% @sessions.each_pair do |n,m| %>
<tr>
<td><%= n %></td>
<td><a onclick="window.parent.openConsoleWindowSession(<%= n %>);" href="#"><%= m.tunnel_peer %></a></td>
<td><%= m.via_payload %></td>
<td><%= m.via_exploit %></td>
<% end %>
</tbody>
</table>
<% else %>
There are no active sessions, go exploit something ;-)
<% end %>