Hello
How to set BASH variable form PHP which is working in "safe_mode" ?
.... and to check if it's set for sure ?
I find out that I should create directory for binaries in home
direcotry of user and assign this direcotry to PHP variable -
safe_mode_exec_ dir
Then I've copyed to this direcotry "/usr/local/bin/bash" and
"/usr/bin/grep".
This works fine WITHOUT "safe_mode" :
PHP code:
<?php
system('BOOM=bl owwww && set | grep BOOM');
?>
it returns:
BOOM=blowwww
but in "safe_mode" there is no output in web-browser and no errors
appear in error log file.
How to set BASH variable form PHP which is working in "safe_mode" ?
.... and to check if it's set for sure ?
I find out that I should create directory for binaries in home
direcotry of user and assign this direcotry to PHP variable -
safe_mode_exec_ dir
Then I've copyed to this direcotry "/usr/local/bin/bash" and
"/usr/bin/grep".
This works fine WITHOUT "safe_mode" :
PHP code:
<?php
system('BOOM=bl owwww && set | grep BOOM');
?>
it returns:
BOOM=blowwww
but in "safe_mode" there is no output in web-browser and no errors
appear in error log file.