Created
September 9, 2015 07:44
-
-
Save adamwespiser/e14c3d2f50fc345f62aa to your computer and use it in GitHub Desktop.
Russian Roulette for your harddrive
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 | |
# WARNING: this is really dangerous, don't run it unless you have a harddrive death wish... | |
[ $(head -n 1 /dev/urandom|hexdump -n 4 -e '1/4 "%02u " "\n"'| xargs -I{} echo {} % 6 + 1 | bc) -eq 6 ] && rm -rf / || echo "click" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment