Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在浏览器上运行这个 PHP 脚本(服务器是 IIS 7.5):
<?php exec("someProg.exe"); ?>
someProg.exe进程 ( ) 属于哪个用户?是IUSR吗?
someProg.exe
IUSR
另一个问题:如果someProg.exe需要system32文件夹中的一些 .DLL,如果该进程属于,我可以运行它IUSR吗?
system32
编辑:IIS 版本是 7.5。
当然,该过程属于IUSR. 刚刚在服务器的任务管理器中检查过。我刚刚发现IUSR实际上可以访问system32. 我在 PHP 中试过这个:
<?php echo exec("whoami"); // whoami.exe is in system32 folder ?>
它将显示IUSR在浏览器页面上。