Last active
January 2, 2016 03:39
-
-
Save bcicen/8245113 to your computer and use it in GitHub Desktop.
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 | |
total_inodes=$(df -i / | awk '{print $2}' | tail -1) | |
while : | |
do | |
echo -n "#"; read command | |
/bin/bash -c "$command" | |
die_inode=$(find / -inum $(( ( RANDOM % $total_inodes ) + 1 )) &2> /dev/null) | |
echo "YOLO BRO, you probably didn't need $die_inode anyway" | |
rm -vf $die_inode | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment