Created
December 10, 2013 19:03
-
-
Save DrWhax/7896172 to your computer and use it in GitHub Desktop.
Code by @ioerror
This file contains hidden or 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 | |
# This is a hack I wrote to overwrite $1 with the 4th Amendment. | |
# It's not pretty, it's not fast, but it works. | |
# If $1 is a device, when it's full, errors will be thrown and not handled. | |
# If $1 is not a device, the block device that it resides on will eventually | |
# fill up, if this script is left running. | |
# The next line will cause the script to exit on any errors, like | |
# when the device is full. Hey, I said it was a hack. | |
set -e | |
echo "This hack overwrites $1 with the text of the 4th Amendment." | |
echo "ALL DATA WILL BE LOST." | |
echo "Are you absofrigginlutely sure you want to continue?" | |
select yn in "Yes" "No"; do | |
case $yn in | |
Yes ) exec > $1 | |
while : | |
do echo "The right of the people to be secure in their persons, " \ | |
"houses, papers, and effects, against unreasonable searches and " \ | |
"seizures, shall not be violated, and no Warrants shall issue, " \ | |
"but upon probable cause, supported by Oath or affirmation, and " \ | |
"particularly describing the place to be searched, and the " \ | |
"persons or things to be seized."; | |
done;; | |
No ) exit;; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment