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

Update to exploit list and exploit view

git-svn-id: file:///home/svn/framework3/trunk@4038 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2006-10-16 05:32:56 +00:00
parent dc0610d9a2
commit e7784d1dda
3 changed files with 40 additions and 22 deletions

View File

@ -3,15 +3,12 @@
<tr width="100%" align="center">
<p class="moduleName">
<%= h(@tmod.name) %> <br />
<span class="moduleVersion">
<%= h(@tmod.version) %>
</span>
</p>
</tr>
<tr width="100%" align="center">
<blockquote>
<p class="moduleDesc">
<p class="moduleDescription">
<%= h(@tmod.description) %>
</p>
</blockquote>
@ -20,18 +17,17 @@
<tr width="100%" align="center">
<blockquote>
<p class="moduleDesc">
This module was provided by <%= @tmod.author.join(' and ') %>, under the
<%= @tmod.license %> license.
<p class="moduleDescription">
This module (revision <%= h @tmod.version.gsub(/\$Revision:\s+|\s+\$/, '') %>) was provided by <%= h @tmod.author.map{ |a| a.to_s.gsub(/\<.*/, '') }.join(' and ').strip %>, under the <%= @tmod.license %>.
</p>
</blockquote>
</tr>
<tr width="100%" align="center">
<blockquote>
<p class="moduleDesc">
<p class="moduleDescription">
External references:
<ul>
<ul class="moduleReferences">
<% @tmod.references.each { |ref| %>
<% if (ref.kind_of?(Msf::Module::SiteReference)) %>
<li><a href="<%= ref.site %>" target="_blank">
@ -40,17 +36,18 @@
<li><%= h(ref.to_s) %></li>
<% end %>
<% } %>
</ul>
</p>
</blockquote>
</tr>
<tr width="100%" align="center">
<blockquote>
<p class="moduleDesc">
<p class="moduleDescription">
Available targets:
<ul>
<ul class="moduleTargets">
<% @tmod.targets.each_with_index { |tgt, idx| %>
<li><a href='#'><%= idx %> - <%= h(tgt.name) %></a></li>
<li><a href='#'><%= h(tgt.name) %></a></li>
<% } %>
</ul>

View File

@ -163,7 +163,7 @@ function create_window_ajax(target_url, wid, wtitle, wwidth, wheight) {
* Height and width are fixed, should be working values in all cases.
*/
function openModuleWindow(mtype, refname, wtitle) {
var mWin = create_window_ajax("/" + mtype + "/view/" + refname, mtype + "-view-" + obtainWindowId(), wtitle, 500, 300);
var mWin = create_window_ajax("/" + mtype + "/view/" + refname, mtype + "-view-" + obtainWindowId(), wtitle, 500, 500);
mWin.setDestroyOnClose();
mWin.showCenter();
}

View File

@ -40,6 +40,8 @@ table .itemTitle:hover {
color: #fff;
}
table .itemTitle a,
table .itemTitle a:hover {
color: #fff;
@ -66,12 +68,16 @@ table .moduleTitle {
color: black;
}
table .moduleTitle img {
float: right;
}
table .moduleTitle a {
color: #444444;
background-color: inherit;
text-decoration: none;
font-size: 16px;
font-weight: bold;
float: left;
}
table .moduleTitle a:hover {
@ -79,6 +85,7 @@ table .moduleTitle a:hover {
background-color: #faffab;
font-size: 16px;
font-weight: bold;
float: left;
}
table .moduleDescription {
@ -122,26 +129,40 @@ table.moduleInfo tr td {
}
p.moduleName {
padding: 6px;
color: #222222;
color: #444444;
background-color: inherit;
text-decoration: none;
font-size: 16px;
font-weight: bold;
text-align: center;
background: #eeeeee;
text-align: center;
}
p.moduleName .moduleVersion {
font-size: 9px;
}
p.moduleDescription {
background: #EDEDED;
color: #000;
padding: 5px;
border: 1px solid #ccc;
text-align: justify;
font-size: 12px;
}
.moduleReferences {
list-style: circle;
font-size: 9px;
}
.moduleTargets {
list-style: circle;
font-size: 9px;
}
.moduleIcons {
float: left;
}
p.moduleDesc {
color: #333333;
background: #fff;
text-align: justify;
}
th.moduleOptionsHeader {
background: #ddd;