TED] ~]$ php test.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
[EMAIL PROTECTED] ~]$ whoami
webuser
[EMAIL PROTECTED] ~]$ exit
"Jim Poserina" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The output is:
>
> OS Error: 127.
>
> I have a second serve
ually has /sbin/nologin as the shell.
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, March 21, 2005 8:20 pm, Jim Poserina said:
> > If I run this PHP script:
> > > echo '';
> > echo exec('whoami');
>
If I run this PHP script:
';
echo exec('whoami');
echo '';
?>
from the web, the output is
and from the command line running as the apache user(webuser),
the output is.
Content-type: text/html
X-Powered-By: PHP/4.3.9
But if I run from the command line as root, the output is:
Content-type: text/h
3 matches
Mail list logo