Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

mornlee http://www.neokeen.com/mornlee

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

webshell dos html homepage

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>.com</title>
</head>
<style>
html { height:100%; }
body {
height:100%;
border:0px;
margin:0px;
background-color:#000000;
color:#CCCCCC;
font-family:FixedSys, Terminal, system, verdana, arial;
font-size:12px;
/*font-weight:bold;*/
}

a {
text-decoration:none;
color:#CCCCCC;
}

a:hover {
text-decoration:none;
color:#CCCCCC;
}

b {
font-weight:normal;
}

strong {
font-weight:normal;
}

.entryBox {
position:absolute;
bottom:0px;
left:-300px;
}
</style>


<script language="javascript" src="js/js.js"></script>

<body onLoad="setFocusToEntryBox();" onFocus="setFocusToEntryBox();">
<table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%">
<tr>
<td height="100%" width="100%" onClick="setFocusToEntryBox();" valign="top">
<div style="width:750px;">
<div id="outputContainer">Welcome to 20-GOTO-10.com
Type help to begin.

</div>
<div style="position:relative;">
<span id="commandPrompt"></span>&nbsp;<span id="commandContainer"></span><img src="images/cursor.gif" align="absbottom" />
<input type="text" id="entryBox" class="entryBox" onKeyDown="keyCode=(event.which)? event.which: event.keyCode;if(keyCode==55 && event.shiftKey){alert('Sorry the use of \'&\' is not allowed.');return false;}" onKeyUp="handleKeyPress((event.which)? event.which: event.keyCode, this);">
</div>
</div>
</td>
</tr>
</table>
</body>
</html>

<script language="javascript">
document.getElementById('commandPrompt').innerHTML = 'C:\\>';

//Preload the image to avoid the scroll thingy
var oImg = new Image();
oImg.src = '/dos3/images/Me.gif';
</script>

20-GOTO-10 webshell dos javascript

var arrCommandHistory = new Array();
var iCommandHistoryIndex = 0;
var isContactMode = false;
var contactPrompt = '';

function handleKeyPress(keyCode, obj) {
switch(keyCode)
{
case 13:
handleReturn(obj);
break;
case 38:
if(iCommandHistoryIndex > 0) {
iCommandHistoryIndex --;
document.getElementById('commandContainer').innerHTML = arrCommandHistory[iCommandHistoryIndex];
document.getElementById('entryBox').value = arrCommandHistory[iCommandHistoryIndex];
}
break;
case 40:
if(iCommandHistoryIndex < arrCommandHistory.length) {
if(iCommandHistoryIndex < arrCommandHistory.length-1) {
iCommandHistoryIndex ++;
}
document.getElementById('commandContainer').innerHTML = arrCommandHistory[iCommandHistoryIndex];
document.getElementById('entryBox').value = arrCommandHistory[iCommandHistoryIndex];
}
break;
default:
document.getElementById('commandContainer').innerHTML = obj.value.replace(/ /g, '&nbsp;');
}
}

function handleReturn(obj) {
arrCommandHistory[arrCommandHistory.length] = obj.value;
iCommandHistoryIndex = arrCommandHistory.length;
var head=document.getElementsByTagName('head').item(0);
var old=document.getElementById('lastScript');
if(old)head.removeChild(old);
script=document.createElement('script');
script.src='RPC-Executer.aspx?command='+obj.value+'&random='+(Math.round((Math.random()*1000)+1));
script.type='text/javascript'; script.defer=true;
script.id='lastScript';
void(head.appendChild(script));
}

function RPCCallback(sHTML) {
sHTML = sHTML.replace(/&lt;/g, '<');
var obj = document.getElementById('entryBox');
var sOutput = '';
if(!isContactMode) {
sOutput += '<div style="padding-bottom:15px;">C:\\> '+obj.value+'
';
setPromptToNormal();
} else {
sOutput += '<div style="padding-bottom:15px;">'+document.getElementById('commandPrompt').innerHTML+'&nbsp;'+obj.value+'
';
document.getElementById('commandPrompt').innerHTML = contactPrompt+': ';
}
sOutput += sHTML;sOutput += '</div>';
document.getElementById('outputContainer').innerHTML += sOutput;
obj.value = '';
document.getElementById('commandContainer').innerHTML = '';
window.scrollBy(0,10000);
}

function RPCCallbackClearScreen() {
document.getElementById('entryBox').value = '';
document.getElementById('outputContainer').innerHTML = '
';
document.getElementById('commandContainer').innerHTML = '';
window.scrollBy(0,-10000);
}

function setPromptToNormal() {
document.getElementById('commandPrompt').innerHTML = 'C:\\>';
}

function popUp(sURL) {
var oWin = window.open(sURL, '', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1');
if (oWin==null || typeof(oWin)=="undefined") {
alert("It seems that you have a popup blocker enabled. Please disable it and try again.");
}
}

function setFocusToEntryBox() {
var o = document.getElementById('entryBox');
o.focus();
o.value = o.value;
}
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS