Re: [PHP] Prevent execution bad commands

2008-09-27 Thread Stut
On 27 Sep 2008, at 10:15, Manoj Singh wrote: I am developing a web page where i have to display the files list based on some search criteria and of certain duration. My web server is on linux operating system. The command i am using for this peropse is: find /home/test -mtime -$duration | so

RE: [PHP] Prevent execution bad commands

2008-09-27 Thread Richard Lynch
I am developing a web page where i have to display the files list based on some search criteria and of certain duration. My web server is on linux operating system. The command i am using for this peropse is: find /home/test -mtime -$duration | sort | xargs

Re: [PHP] Prevent execution bad commands

2008-09-27 Thread Daniel Brown
On Sat, Sep 27, 2008 at 5:15 AM, Manoj Singh <[EMAIL PROTECTED]> wrote: > Hi All, > I am developing a web page where i have to display the files list based on > some search criteria and of certain duration. My web server is on linux > operating system. The command i am using for this peropse is: >

Re: [PHP] Prevent execution bad commands

2008-09-27 Thread Lupus Michaelis
Ashley Sheridan a écrit : find /home/test -mtime -$duration | sort | xargs grep -l "$search_criteria" It's likely yes, unless you validate the search criteria in any way, you're just asking for trouble. I just add an exemple that delete evérything on your server : $searh_criteria = "`rm

Re: [PHP] Prevent execution bad commands

2008-09-27 Thread Ashley Sheridan
On Sat, 2008-09-27 at 14:45 +0530, Manoj Singh wrote: > Hi All, > I am developing a web page where i have to display the files list based on > some search criteria and of certain duration. My web server is on linux > operating system. The command i am using for this peropse is: > > find /home/test

[PHP] Prevent execution bad commands

2008-09-27 Thread Manoj Singh
Hi All, I am developing a web page where i have to display the files list based on some search criteria and of certain duration. My web server is on linux operating system. The command i am using for this peropse is: find /home/test -mtime -$duration | sort | xargs grep -l "$search_criteria" Is a