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
phpSecurePages is a PHP module to secure pages with a login name and password. It can handle multiple user groups (each with their own viewing rig ...
ANG GES G P
GETmCRYPT liefert alles was nötig ist, um den GET String zu ver- und entschlüsseln. Variablen mit ihrem Wert in die Funktion geben und schon lä ...
ANG GES G P
Serverüberwachungs-Script, überwachen Sie die Server Ihrer User bzw. bieten Sie Ihren Usern an, kostenlos die Server/Domains zu überwachen. ...
ANG GES G P
The PHP firewall generator is a simple PHP script that generates a firewall script for ipchains-based firewalls. The aim is to support an easily c ...
ANG GES G P
During module initialisation a shared memory segment is created and initialised with a randomly generated secret. This segment remains attached ac ...
ANG GES G P
Errechnung des ursprünglichen Passwortes eines MD5-Hashcodes. Diese Bruteforce-Tool entschlüsselt einen 32-stelligen MD5-Hash durch einfaches d ...
ANG GES G P
Mit diesem Script kann in sekundenschnelle ein sicherer Verzeichnisschutz vorgenommen werden. Das betreffende Verzeichnis kann serverseitig per ht ...
ANG GES G P
Ein neues nützliches Captcha Script, welches eine zufällige Uhrzeit auf einer analogen Uhr anzeigt und diese dann in einem Formular eingegeben w ...
659 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