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
unstable
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> <table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo">
<p>Find me in app/views/auxiliaries/view.rhtml</p>
<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> <table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo">
<p>Find me in app/views/encoders/view.rhtml</p>
<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> </blockquote>
</tr> </tr>
<tr>
<td>Version:</td>
<td><%= @tmod.version %></td>
</tr>
<tr>
<td>License:</td>
<td><%= @tmod.license %></td>
</tr>
<tr width="100%" align="center"> <tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDesc">
@ -30,7 +40,7 @@
<ul> <ul>
<% @tmod.references.each { |ref| %> <% @tmod.references.each { |ref| %>
<% if (ref.kind_of?(Msf::Module::SiteReference)) %> <% 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> <%= html_escape(ref.to_s) %></a></li>
<% else %> <% else %>
<li><%= html_escape(ref.to_s) %></li> <li><%= html_escape(ref.to_s) %></li>

View File

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

View File

@ -1,2 +1,40 @@
<h1>Nops#view</h1> <table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo">
<p>Find me in app/views/nops/view.rhtml</p>
<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> <td><%= @tmod.version %></td>
</tr> </tr>
<tr>
<td>License:</td>
<td><%= @tmod.license %></td>
</tr>
<tr> <tr>
<td>Size:</td> <td>Size:</td>
<td><%= @tmod.generate.length %></td> <td><%= @tmod.generate.length %></td>
@ -123,7 +128,9 @@
</tr> </tr>
<tr> <tr>
<td><pre><%=@generation%></pre></td> <td colspan="2">
<textarea cols="64" rows="10"><%=@generation%></textarea>
</td>
</tr> </tr>
<% end %> <% end %>
</table> </table>