PHP patch exec_dir

Progamming language PHP allows one to limit executing of external commands via configuration directive safe_mode. This directive should contain full path to a directory conatining programs which PHP script can run. If the script tries to execute a command not located in this directory, the command is not executed. This configuration directive is active only if safe mode is enabled, which means more and sometimes unwanted restrictions to users.

PHP has no known possibility to limit executing of external commands with disabled safe mode. Teherefore, here is a patch adding special directive exec_dir straightly into PHP. This directive is very similar to safe_mode_exec_dir, but safe mode has not to be enabled.

This patch limits executing commands via functions from the exec family, i. e. exec(), system() or popen().

Reviews

There are no comments available yet.

Here you can write a comment


Please enter at least 10 characters.
Loading... Please wait.
* Pflichtangabe
ANG GES G P
Das Programm ersetzt die Namen sämtlicher Konstanten, Klassen, Funktionen und Variablen durch ihren MD5 verschlüsselten Wert und die Werte von T ...
ANG GES G P
Passwortabfrage für geschutzen Homepage Bereich
ANG GES G P
SmE Block is a lite script to your block a ips to access your content , install is very easy simple add include("sme_block.php"); in your php pages
ANG GES G P
When developing web applications in PHP (or any other languages for that matter) there are several security aspects we should consider. In this ar ...
ANG GES G P
Portscan auf PHP Basis zum schnellen testen der Firewall
ANG GES G P
Mit diesem Online Scanner ist es möglich einen bestimmten Rechner im Internet oder Intranet nach offenen Ports zu durchsuchen. Sie können den Sc ...
ANG GES G P
Mit dem PHP Kundenlogin-Script erhalten Sie alle nötigen Dateien, um einen eigenen Kundenlogin auf Ihrem Webspace zu betreiben. Nutzen Sie die v ...
ANG GES G P
A platform-idependent, web-based, secure application for storing and retrieving usernames and passwords.
340 x viewed
0 x memorized
Details to the advertisement
ANG GES G P
Make a request

You are no longer logged in as a user. Please enter your name and your E-mail-adress!

Loading... Please wait.
Details to the seller