Added basic wm, metasploit window theme, etc.

git-svn-id: file:///home/svn/framework3/trunk@3964 4d416f70-5f16-0410-b530-b9f4589650da
unstable
lmh 2006-09-26 04:38:27 +00:00
parent 4c4f7ae301
commit 77fffbadcc
14 changed files with 172 additions and 26 deletions

View File

@ -11,19 +11,19 @@
<%= javascript_include_tag js %><% end %>
<%= stylesheet_link_tag "msfweb" %>
<%= stylesheet_link_tag "window-themes/default" %>
<%= stylesheet_link_tag "window-themes/mac_os_x" %>
<%= stylesheet_link_tag "window-themes/metasploit" %>
</head>
<body>
<div id="topmenu">
<ul>
<li><img src="/images/bug.png" alt="" />Exploits</li>
<li><img src="/images/bomb.png" alt="" />Payloads</li>
<li><img src="/images/encoder.png" alt="" />Encoders</li>
<li><img src="/images/lightbulb-off.png" alt="" />Nops</li>
<li><img src="/images/terminal.png" alt="" />Sessions</li>
<li><img src="/images/jobs.png" alt="" />Jobs</li>
<li><img src="/images/help.png" alt="" />Help</li>
<li onClick="openExploitWindow()"><img src="/images/bug.png" alt="" />Exploits</li>
<li onClick="openPayloadsWindow()"><img src="/images/bomb.png" alt="" />Payloads</li>
<li onClick=""><img src="/images/encoder.png" alt="" />Encoders</li>
<li onClick=""><img src="/images/lightbulb-off.png" alt="" />Nops</li>
<li onClick=""><img src="/images/terminal.png" alt="" />Sessions</li>
<li onClick=""><img src="/images/jobs.png" alt="" />Jobs</li>
<li onClick=""><img src="/images/help.png" alt="" />Help</li>
</ul>
</div>

View File

@ -3,27 +3,49 @@
* All Rights Reserved.
*/
/* http://alistapart.com/articles/dropdowns/ */
function initialize_topmenu() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("topmenu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
/*
* Dialogs
*/
function openAboutDialog() {
}
function openExploitWindow() {
var exploitList = create_window_ajax("/exploits/list", "exploits-list", "Available Exploits");
exploitList.setDestroyOnClose();
exploitList.showCenter();
}
function openAboutDialog() {}
function openPayloadsWindow() {
var payloadList = create_window_ajax("/payloads/list", "payloads-list", "Available Payloads");
payloadList.setDestroyOnClose();
payloadList.showCenter();
}
/*
* Task and helper functions
*/
function create_window_ajax(target_url, wid, wtitle) {
var new_mwindow = new Window(wid,
{ className: "metasploit",
title: wtitle,
top:70,
left:100,
width:300,
height:200,
resizable: true,
draggable: true,
url: target_url,
showEffectOptions:
{
duration:3
}
});
return new_mwindow;
}
function run_tasks() {
initialize_topmenu();
// ...
}

View File

@ -0,0 +1,124 @@
/*
* Theme ported by L.M.H. <lmh@info-pull.com>
*/
.overlay_metasploit {
background-color: #85BBEF;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
.metasploit_nw {
background: transparent url(metasploit/titlebar-left-shaded-focused.png) no-repeat 0 0;
width:10px;
height:23px;
}
.metasploit_n {
background: transparent url(metasploit/titlebar-mid-shaded-focused.png) repeat-x 0 0;
height:23px;
}
.metasploit_ne {
background: transparent url(metasploit/titlebar-right-shaded-focused.png) no-repeat 0 0;
width:10px;
height:23px;
}
.metasploit_w {
background: transparent url(metasploit/frame-left-focused.png) repeat-y top left;
width:5px;
}
.metasploit_e {
background: transparent url(metasploit/frame-right-focused.png) repeat-y top right;
width:5px;
}
.metasploit_sw {
background: transparent url(metasploit/frame-bottom-left-focused.png) no-repeat 0 0;
width:5px;
height:5px;
}
.metasploit_s {
background: transparent url(metasploit/frame-bottom-mid-focused.png) repeat-x 0 0;
height:5px;
}
.metasploit_se, .metasploit_sizer {
background: transparent url(metasploit/frame-bottom-right-focused.png) no-repeat 0 0;
width:5px;
height:5px;
}
.metasploit_sizer {
cursor:se-resize;
}
.metasploit_close {
width: 26px;
height: 23px;
background: transparent url(metasploit/button-close-focused.png) no-repeat 0 0;
position:absolute;
top:0px;
right:5px;
cursor:pointer;
z-index:1000;
}
.metasploit_minimize {
width: 26px;
height: 23px;
background: transparent url(metasploit/button-minimize-focused.png) no-repeat 0 0;
position:absolute;
top:0px;
right:26px;
cursor:pointer;
z-index:1000;
}
.metasploit_maximize {
width: 26px;
height: 23px;
background: transparent url(metasploit/button-maximize-focused.png) no-repeat 0 0;
position:absolute;
top:0px;
right:47px;
cursor:pointer;
z-index:1000;
}
.metasploit_title {
float:left;
height:14px;
font-size:12px;
text-align:center;
margin-top:2px;
width:100%;
color:#FFF;
}
.metasploit_content {
overflow:auto;
color: #444;
font-family: "MS Sans Serif", Arial, sans-serif;
font-size: 14px;
background:#ddd;
}
/* FOR IE */
* html .metasploit_minimize {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/metasploit/button-minimize-focused.png", sizingMethod="crop");
}
* html .metasploit_maximize {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/metasploit/button-maximize-focused.png", sizingMethod="scale");
}
* html .metasploit_close {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/metasploit/button-close-focused.png", sizingMethod="crop");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B