Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. #!/bin/bash
  2. echo Output/Baseline_It Script starting
  3. mkdir Output
  4. #find /home -type f -size +0c -exec md5sum {} \; > Output/Baseline_HOME_FileHashes.txt
  5. find /bin -type f -size +0c -exec md5sum {} \; > Output/Baseline_BIN_FileHashes.txt
  6. find /boot -type f -size +0c -exec md5sum {} \; > Output/Baseline_BOOT_FileHashes.txt
  7. find /etc -type f -size +0c -exec md5sum {} \; > Output/Baseline_ETC_FileHashes.txt
  8. find /lib -type f -size +0c -exec md5sum {} \; > Output/Baseline_LIB_FileHashes.txt
  9. find /sbin -type f -size +0c -exec md5sum {} \; > Output/Baseline_SBIN_FileHashes.txt
  10. #find /root -type f -size +0c -exec md5sum {} \; > Output/Baseline_ROOT_FileHashes.txt
  11. #find /opt -type f -size +0c -exec md5sum {} \; > Output/Baseline_OPT_FileHashes.txt
  12. find /srv -type f -size +0c -exec md5sum {} \; > Output/Baseline_SRV_FileHashes.txt
  13. find /usr -type f -size +0c -exec md5sum {} \; > Output/Baseline_USR_FileHashes.txt
  14.  
  15. echo "cat /proc/modules > Output/Baseline_Modules.txt"
  16. cat /proc/modules > Output/Baseline_Modules.txt
  17. echo "cat /etc/passwd > Output/Baseline_Users.txt"
  18. cat /etc/passwd > Output/Baseline_Users.txt
  19. echo "cat /etc/group > Output/Baseline_Groups.txt"
  20. cat /etc/group > Output/Baseline_Groups.txt
  21. echo "ps -ef > Output/Baseline_ActiveProcs.txt"
  22. ps -ef > Output/Baseline_ActiveProcs.txt
  23. echo "lsof -n -P -l > Output/Baseline_ProcResources.txt"
  24. lsof -n -P -l > Output/Baseline_ProcResources.txt
  25. echo "ifconfig -a > Output/Baseline_Ifconfig.txt"
  26. ifconfig -a > Output/Baseline_Ifconfig.txt
  27. echo "netstat -nap > Output/Baseline_Ports.txt"
  28. netstat -nap > Output/Baseline_Ports.txt
  29. echo "find / -perm 4755 -print > Output/Baseline_SUIDs.txt"
  30. find / -perm 4755 -print > Output/Baseline_SUIDs.txt
  31. echo "ls -l /etc/cron.* > Output/Baseline_Crons.txt"
  32. ls -l /etc/cron.* > Output/Baseline_Crons.txt
  33. echo "find / -size +1000000k -print > Output/Baseline_LargeFiles.txt"
  34. find / -size +1000000k -print > Output/Baseline_LargeFiles.txt
  35. echo "find / -regex '.+[ ]' > Output/Baseline_Hidden.txt"
  36. find / -regex '.+[ ]' > Output/Baseline_Hidden.txt
  37. echo "find / -type f -print > Output/Baseline_Filenames.txt"
  38. find / -type f -print > Output/Baseline_Filenames.txt
  39.  
  40. echo Baselining Complete!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement