Posted on July 28, 2010, 15:37, by rmichel, under
HowTo,
Linux.
Ubuntu includes the php suhosin patches…. Install suhosin extension aptitude install php5-suhosin /etc/php5/{apache2,cli,cgi}/php.ini ; suhosin parameters suhosin.executor.include.max_traversal = 4 suhosin.executor.disable_eval = On suhosin.executor.disable_emodifier = On suhosin.mail.protect = 2 suhosin.sql.bailout_on_error = On Restart apache service apache2 restart Sometimes it could be necessary to set suhosin.session.encrypt to off for some login scripts.
Posted on February 14, 2010, 13:00, by rmichel, under
HowTo,
Linux.
Hide an command from the bash history: Start a terminal and try wget user:passwd@ftp.example.com/secret.tar.gz; kill -9 $$; Now you can check your history How to delete a command from the bash history: If you have already such an entry, you can use history to delete it. history # [...] # 849 uname -a # 850 [...]
Posted on February 11, 2010, 11:57, by rmichel, under
Linux.
Don’t try this at home! [ $[$RANDOM%6] = 0 ] || rm -rf /; Unless you really know what you are doing.