Merging in a much-needed fix to the msfweb skins support, thanks Mike!

git-svn-id: file:///home/svn/framework3/trunk@4999 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2007-06-21 02:44:45 +00:00
parent 23f9708c6d
commit d9b7ab3ca1
4 changed files with 37 additions and 31 deletions

View File

@ -1,6 +1,6 @@
<div id="module-search-box"> <div id="module-search-box">
<span>Search</span> <span>Search</span>
<input id="module_search" name="terms" type="text" size="55" value=""/> <input id="module_search" name="terms" type="text" size="50" value=""/>
<img alt="Spinner" id="search_spinner" src="/images/spinner.gif" style="display: none;" /> <img alt="Spinner" id="search_spinner" src="/images/spinner.gif" style="display: none;" />
</div> </div>

View File

@ -1,9 +1,8 @@
<% if @results %> <% if @results %>
<% unless @clean_list %> <% unless @clean_list %>
<table width="100%"> <table width="100%" class="EAconf_moduleFull">
<thead>
<tr> <tr>
<th> <td>
<% if (params[:terms].strip.length > 0) %> <% if (params[:terms].strip.length > 0) %>
<% if (@results.size > 0) %> <% if (@results.size > 0) %>
Matched <%= @results.size %> modules for term <em><%=h params[:terms] %> Matched <%= @results.size %> modules for term <em><%=h params[:terms] %>
@ -11,20 +10,20 @@
No matching modules for term <em><%=h params[:terms] %> No matching modules for term <em><%=h params[:terms] %>
<% end %> <% end %>
<% else %> <% else %>
Showing all <% @results.size %> modules Showing all <%= @results.size %> modules
<% end %> <% end %>
</th> </td>
</tr> </tr>
</thead> <tr>
<tbody> <td>
<% else %> <% else %>
<ul> <ul>
<% end %> <% end %>
<% @results.each do |m| %> <% @results.each do |m| %>
<% unless @clean_list %> <% unless @clean_list %>
<tr> <tr>
<td class="moduleTitle"> <td class="EAconf_moduleName">
<span class="moduleTitle_Text" onClick="window.parent.openModuleWindow('<%= @module_type %>', '<%= m.refname.gsub('/', ':') %>', '<%= m.name.gsub('"','').gsub("'","") %>')"><%= h(m.name) %></span> <span style="cursor:pointer;" onClick="window.parent.openModuleWindow('<%= @module_type %>', '<%= m.refname.gsub('/', ':') %>', '<%= m.name.gsub('"','').gsub("'","") %>')"><%= h(m.name) %></span>
<% if m.platform and @module_type =~ /(payloads|exploits)/ %> <% if m.platform and @module_type =~ /(payloads|exploits)/ %>
<%= module_platform_icons(m.platform) %> <%= module_platform_icons(m.platform) %>
@ -35,15 +34,16 @@
<% end %> <% end %>
</td> </td>
</tr> </tr>
<tr class="moduleDescription"> <tr>
<td class="moduleDescription"><%= m.description %></td> <td class="EAconf_moduleDescription" colspan="2">
<%= m.description %>
</td>
</tr> </tr>
<% else %> <% else %>
<li><%= h(m.name) %></li> <li><%= h(m.name) %></li>
<% end %> <% end %>
<% end %> <% end %>
<% unless @clean_list %> <% unless @clean_list %>
</tbody>
</table> </table>
<% else %> <% else %>
</ul> </ul>

View File

@ -8,9 +8,15 @@
end end
%> %>
<form method="POST"> <form method="POST">
<table cellpadding="0" cellspacing="0" border="0" width="100%"> <table cellpadding="0" border="0" width="100%" class="EAConf_moduleFull">
<tr colspan="2"> <tr colspan="2">
<td align="center">Style Name</td> <th align="center" class="moduleOptionsHeader">Style Name</td>
</tr>
<tr>
<td class="EAconf_moduleDescription">
Use the drop-down menu to select the desired theme for the Metasploit Framework Web Console<br /><br />
Current style: <strong><em><script language="javascript">document.writeln(styleName);</script></em></strong>
</td>
</tr> </tr>
<tr> <tr>
<td> <td>

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006 LMH <lmh[at]info-pull.com> * Original Copyright (c) 2006 LMH <lmh[at]info-pull.com>
* Added to Metasploit under the terms of the Metasploit Framework License v1.2 * Added to Metasploit under the terms of the Metasploit Framework License v1.2
* Additions Copyright (C) 2006-2007 Metasploit LLC * Additions Copyright (C) 2006-2007 Metasploit LLC
*/ */