Re: Help with windows 2003 iis6, exec() and permissions
| From: | Louis Solomon \[SteelBytes\] | Date: | Thu, 19 May 2005 11:08:11 +0000 |
| Subject: | Re: Help with windows 2003 iis6, exec() and permissions | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26034@lists.php.net to get a copy of this message | ||
> So is that just the case of adding IUSER_XXX to cmd.exe?
> What permissions do I give IUSER on cmd.exe?
remove the deny that is probably alreaDy there, and add iusr_server with
read&execute.
> Isn't that a big risk? Is there a way to exploit that? (apart from someone
> uploading php code etc), via a URL or something?
>
> Just wanting the "correct/safest" way to do this.
hmm ... last time I checked the source for PHP - all methods of calling
external progs (system(), exec(), passthru()) all used cmd.exe to execute
your command, even if your command was a command line .exe. you could maybe
check the newer proc_open() function - I'm not sure with that one.
--
Louis Solomon
www.SteelBytes.com