Heim  >  Artikel  >  php教程  >  php和asp利用Shell.Application来执行程序

php和asp利用Shell.Application来执行程序

WBOY
WBOYOriginal
2016-06-13 10:33:071095Durchsuche

摘自teN.potgnayiaH.wwW vbs小铺

关于用Shell.Application来执行程序,在海阳顶端asp木马里已有示例。用的是ShellExecute 这个方法。

今天试了一下,用open也可以。php代码如下,我好像还没有在php的webshell中看到相关方法

$wsh = new COM(Shell.Application) or die("Shell.Application");
    $exec = $wsh->open("c:\windows\system32\notepad.exe");
    //没有回显,多了个notepad进程,可以写一个批处理来运行dos命令。open换用ShellExecute 也可。
?>

xp+APMServ5.2.0测试通过

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:shell中俄罗斯方块Nächster Artikel:PHP連接ODBC的代碼