Advertisement
Guest User

Untitled

a guest
Sep 25th, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo "Checking for idrac vulnarability hack... "
  4.  
  5. am=0
  6.  
  7. if [ -f /etc/ld.so.preload ]
  8. then
  9. am=$((am+1))
  10. echo "/etc/ld.so.preload exists, points $am from 3"
  11. fi
  12.  
  13. if [ -f /lib64/libncom.so.4.0.1 ]
  14. then
  15. am=$((am+1))
  16. echo "/lib64/libncom.so.4.0.1 exists, points $am from 3"
  17. fi
  18.  
  19. rcl=`cat /etc/rc.local | egrep "pud|minerd" | wc -l`
  20.  
  21. if [ $rcl -gt 0 ]
  22. then
  23. am=$((am+1))
  24. echo "suspicious lines found in /etc/rc.local points $am from 3"
  25. fi
  26.  
  27. echo
  28. if [ $am -gt 0 ]
  29. then
  30. echo "WARNING. Most probably hacked."
  31. else
  32. echo "OK. Server clean. To be safe hide IPMI behind a firewall/VPN."
  33. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement