1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Implemented all missing views and fixed minor issues. Also fixed platform icons stuff. Replaced payload generation with a textarea (so windows won't get messed up on generation).

git-svn-id: file:///home/svn/framework3/trunk@4012 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
lmh 2006-10-07 06:33:29 +00:00
parent dea617c67a
commit 56633daefd
6 changed files with 160 additions and 10 deletions

View File

@ -1,2 +1,57 @@
<h1>Auxiliaries#view</h1>
<p>Find me in app/views/auxiliaries/view.rhtml</p>
<table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo">
<tr>
<p class="moduleName">
<span class="moduleIcons">
<%= module_platform_icons(@tmod.platform) %>
</span>
<%= html_escape(@tmod.name) %>
</p>
</tr>
<tr>
<blockquote>
<p class="moduleDesc">
<%= html_escape(@tmod.description) %>
</p>
</blockquote>
</tr>
<tr>
<blockquote>
<p class="moduleDesc">
This module was provided by <%= @tmod.author.join(' and ') %>.
</p>
</blockquote>
</tr>
<tr>
<td>Version:</td>
<td><%= @tmod.version %></td>
</tr>
<tr>
<td>License:</td>
<td><%= @tmod.license %></td>
</tr>
<% if @tmod.references.size > 0 %>
<tr>
<blockquote>
<p class="moduleDesc">
External references:
<ul>
<% @tmod.references.each { |ref| %>
<% if (ref.kind_of?(Msf::Module::SiteReference)) %>
<li><a href="<%= ref.site %>" target="_blank">
<%= html_escape(ref.to_s) %></a></li>
<% else %>
<li><%= html_escape(ref.to_s) %></li>
<% end %>
<% } %>
</p>
</blockquote>
</tr>
<% end %>
</table>

View File

@ -1,2 +1,40 @@
<h1>Encoders#view</h1>
<p>Find me in app/views/encoders/view.rhtml</p>
<table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo">
<tr>
<p class="moduleName">
<%= html_escape(@tmod.name) %>
</p>
</tr>
<tr>
<blockquote>
<p class="moduleDesc">
<%= html_escape(@tmod.description) %>
</p>
</blockquote>
</tr>
<tr>
<blockquote>
<p class="moduleDesc">
This module was provided by <%= @tmod.author.join(' and ') %>.
</p>
</blockquote>
</tr>
<tr>
<td>Version:</td>
<td><%= @tmod.version %></td>
</tr>
<tr>
<td>License:</td>
<td><%= @tmod.license %></td>
</tr>
<tr>
<td>Architecture:</td>
<td><%= @tmod.arch %></td>
</tr>
</table>

View File

@ -23,6 +23,16 @@
</blockquote>
</tr>
<tr>
<td>Version:</td>
<td><%= @tmod.version %></td>
</tr>
<tr>
<td>License:</td>
<td><%= @tmod.license %></td>
</tr>
<tr width="100%" align="center">
<blockquote>
<p class="moduleDesc">
@ -30,7 +40,7 @@
<ul>
<% @tmod.references.each { |ref| %>
<% if (ref.kind_of?(Msf::Module::SiteReference)) %>
<li><a href="<%= ref.site %>">
<li><a href="<%= ref.site %>" target="_blank">
<%= html_escape(ref.to_s) %></a></li>
<% else %>
<li><%= html_escape(ref.to_s) %></li>

View File

@ -1,5 +1,5 @@
<% if @results and @results.size > 0 %>
<table>
<table width="100%">
<thead>
<tr>
<th colspan="2">Modules</th>
@ -12,8 +12,10 @@
<a onClick="window.parent.openModuleWindow('<%= @module_type %>', '<%= m.refname.gsub('/', ':') %>', '<%= m.name.gsub('"','').gsub("'","") %>')" href="#"><%= h(m.name) %></a>
</td>
<td>
<% if m.platform %>
<% if m.platform and @module_type =~ /(payloads|exploits)/ %>
<%= module_platform_icons(m.platform) %>
<% else %>
<%= m.arch.join(' ') %>
<% end %>
</td>
</tr>

View File

@ -1,2 +1,40 @@
<h1>Nops#view</h1>
<p>Find me in app/views/nops/view.rhtml</p>
<table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo">
<tr>
<p class="moduleName">
<%= html_escape(@tmod.name) %>
</p>
</tr>
<tr>
<blockquote>
<p class="moduleDesc">
<%= html_escape(@tmod.description) %>
</p>
</blockquote>
</tr>
<tr>
<blockquote>
<p class="moduleDesc">
This module was provided by <%= @tmod.author.join(' and ') %>.
</p>
</blockquote>
</tr>
<tr>
<td>Version:</td>
<td><%= @tmod.version %></td>
</tr>
<tr>
<td>License:</td>
<td><%= @tmod.license %></td>
</tr>
<tr>
<td>Architecture:</td>
<td><%= @tmod.arch %></td>
</tr>
</table>

View File

@ -30,6 +30,11 @@
<td><%= @tmod.version %></td>
</tr>
<tr>
<td>License:</td>
<td><%= @tmod.license %></td>
</tr>
<tr>
<td>Size:</td>
<td><%= @tmod.generate.length %></td>
@ -123,7 +128,9 @@
</tr>
<tr>
<td><pre><%=@generation%></pre></td>
<td colspan="2">
<textarea cols="64" rows="10"><%=@generation%></textarea>
</td>
</tr>
<% end %>
</table>