Evil Things to do to a `.bashrc` file...
Evil things to do to a .bashrc
The .bashrc
is an important file in the linux BASH environments found on most linux computers.
However, when left unattended, it is vulnerable to a number of obscene abuses, which I will list here (NB this list will be growing over time, so check back :P )
- Evil Aliases
alias ls='echo "Segmentation Fault"'
alias cd='exit'
alias sort='sort -R'
– This kept a colleague occupied for hours!alias ls='ls | sort -R | sed 1,2d | sort'
- a fabulous variation by Graham B.!
- Malicious Functions
- fork-bomb intruder:
cd(){ cd|cd &};
WARNING - this will lose you friends
- fork-bomb intruder:
Suggestions? Tweet to @LargeCardinal