How to set BASH variable form PHP which is working in safe_mode ?

This is a discussion on How to set BASH variable form PHP which is working in safe_mode ? within the PHP Language forums, part of the PHP Programming Forums category; Hello How to set BASH variable form PHP which is working in "safe_mode" ? .... and to check if it'...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2005
bedek@o2.pl
 
Posts: n/a
Default How to set BASH variable form PHP which is working in safe_mode ?

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=blowwww && 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.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0