Hi James,
I'm on a shared server so I doubt whether they would allow me to have shell
access.
Re: passthru("some linux command");
You've lost me on this one :-)
I'll have to read up on this, when I get more time.
Bob.
----- Original Message -----
From: "James Keeline" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 01, 2006 3:10 PM
Subject: Re: [php-list] Re: Code injection
> --- Bob <[EMAIL PROTECTED]> wrote:
>
>> Hi Mike,
>> Sorry to me so naive. How do I know if I have shell access.
>> Do you mean using telnet?
>> Bob.
>
> If your host is wise, they won't allow telnet because it offers no encryption
> for either the login
> or the data transfer (port 23). Secure shell (ssh) is considerably safer
> because it uses 2-key
> encryption and provides a similar interface (port 22). Either would provide
> you with access to
> the operating system (often Linux) shell.
>
> Most hosts don't allow users shell access however. There are some things you
> can often do with
> PHP functions like exec() or passthru() to achieve the effect of running a
> command as the
> webserver user (often apache or nobody).
>
> <pre>
> <?php
>
> passthru("some linux command");
>
> ?>
> </pre>
>
> Of course, many hosts disable these commands because they are somewhat risky
> since you don't know
> how a client will use them and they provide a little too much access to the
> system, even though
> the commands run as the webserver user.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/