Skip to content

Instantly share code, notes, and snippets.

@notyoyoma
Created July 15, 2016 19:14
Show Gist options
  • Save notyoyoma/02d0a641de383d98d66848ed1af16832 to your computer and use it in GitHub Desktop.
Save notyoyoma/02d0a641de383d98d66848ed1af16832 to your computer and use it in GitHub Desktop.
# ssh => starwars
starwars(){
telnet towel.blinkenlights.nl
}
alias ssh=starwars
# rm => nope
nopelol(){
echo "Permission Denied"
}
alias rm=nopelol
# sudo => pw loop
sudoloop(){
echo -n "Password:"
read -s password
echo -e "\nSorry, try again."
echo -n "Password:"
read -s password
echo -e "\nSorry, try again."
echo -n "Password:"
read -s password
echo -e "\nSorry, try again."
echo "sudo: 3 incorrect password attempts"
}
alias sudo=sudoloop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment