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.
我在 Windows Server 2012 R2 和 IIS 8.5 上运行我的网站,但遇到了问题。
exec('whoami')
nt authority\iusr
proc_open('whoami', $desc, $pipes)
iis apppool\mysite
为什么会这样?
这太有趣了。它必须与 proc_open 的性质有关。不知何故,它进入了共享 iis 池,该池具有与 IIS 上使用的标准用户不同的权限。proc_open 你可能已经知道请求更高级别的控制,而 windows 下的 php 可能需要额外的权限才能获得它。