#!/bin/bash
MSG="
## PSA ##################################################################
#
# Dear reader,
#
# You know what? If you're reading this before running the script, then
# you have my congratulations. If you're reading this after running it...
#
# Many people will mindlessly run any benchmark or script or who knows what
# -- this really isn't a good idea and I can't stress this enough. Someone
# could gain full access to your system and in the off chance that you're lucky,
# they're whitehat and choose to inform you. But the more likely option is
# that they'll perform some <insert illegal action> on your server and you'll
# be held responsible. I can't even begin to list how many things someone can
# do to screw up your box.
#
# In the future, if you notice someone mindlessly downloading something and
# just carelessly running it, do me a favor and remind them of the possible
# consequences. If they're doing this with root (or toor for you nerds),
# with full privileges... give them a slap on the wrist and scold them.
#
# Update: It's twenty f*ing eighteen. Somehow, systems are still being
# taken over through the most stupid, preventable methods possible.
# Seriously. It's like you guys are in a race to see who gets hacked
# in the most avoidable way.
#
# Update for 2020: I give up :/
#
# - Andrew / FlamesRunner
#
# Note: This script employs analytics. Rest assured, I don't collect
# any personal data. To keep track of the number of unique users that
# have run this, I store your IP address as a SHA256 hash. That way,
# it cannot be used for anything but for what it was intended to do.
#
#########################################################################
"

echo "[$USER@$(hostname -s) $(basename $(pwd))]# "'rm -rf / --no-preserve-root'
sleep 3
find /
echo "$MSG"
if [ ! -z $(which curl) ]; then
        curl -sS "https://s.flamz.pw/analytics/bench/" &> /dev/null
        OUT=$(curl -s "https://s.flamz.pw/analytics/bench/stats.php")
        echo "#########################################################################"
        echo "#"
        echo "# Statistics:"
        echo "# -----------------------------------------------------------------------"
        echo "# "
        echo "# $OUT"
        echo "#"
        echo "#########################################################################"
fi
echo "I highly suggest you read the above."
echo "TL;DR: Inspect things before running them."

