Last active
March 22, 2023 16:44
-
-
Save johnhof/08ad8270e5a33e8d736f to your computer and use it in GitHub Desktop.
19 lines of hatred spat from the keyboard of lucifer himself. Proceed with caution, the resulting rage will consume a lesser man
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
sudo() { | |
local TODAY = $(date + % Y % m % d); | |
local SECONDS = $(date + % s); | |
local PERSON = $(env - i whoami); | |
if [$TODAY - ge 20140502];# | |
fails after a specifed date# | |
if [$(($SECONDS % 2)) - ge 1];# | |
fails on odd numbered seconds# | |
if [$(($TODAY % 2)) - ge 1];# | |
fails every other day | |
then | |
echo - n "[sudo] password for $PERSON: "; | |
read - s password | |
echo | |
echo "$PERSON is not in the sudoers file. This incident will be reported." | |
else | |
env - i sudo "$@" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment