Home >Backend Development >PHP Tutorial >PHP and asp use Shell.Application to execute programs_PHP tutorial
Excerpted fromteN.potgnayiaH.wwW vbs shop
Regarding using Shell.Application to execute programs, there are examples in the Haiyang Top ASP Trojan. The method ShellExecute is used.
I tried it today and it works with open. The php code is as follows, I don’t seem to have seen the relevant method in the php webshell
$wsh = new COM(Shell.Application) or die("Shell.Application");
$exec = $wsh->open("c:windowssystem32notepad.exe" );
//There is no echo. With an additional notepad process, you can write a batch process to run the dos command. You can also use ShellExecute instead.
?>
xp+APMServ5.2.0 test passed