Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo Output/Baseline_It Script starting
- mkdir Output
- #find /home -type f -size +0c -exec md5sum {} \; > Output/Baseline_HOME_FileHashes.txt
- find /bin -type f -size +0c -exec md5sum {} \; > Output/Baseline_BIN_FileHashes.txt
- find /boot -type f -size +0c -exec md5sum {} \; > Output/Baseline_BOOT_FileHashes.txt
- find /etc -type f -size +0c -exec md5sum {} \; > Output/Baseline_ETC_FileHashes.txt
- find /lib -type f -size +0c -exec md5sum {} \; > Output/Baseline_LIB_FileHashes.txt
- find /sbin -type f -size +0c -exec md5sum {} \; > Output/Baseline_SBIN_FileHashes.txt
- #find /root -type f -size +0c -exec md5sum {} \; > Output/Baseline_ROOT_FileHashes.txt
- #find /opt -type f -size +0c -exec md5sum {} \; > Output/Baseline_OPT_FileHashes.txt
- find /srv -type f -size +0c -exec md5sum {} \; > Output/Baseline_SRV_FileHashes.txt
- find /usr -type f -size +0c -exec md5sum {} \; > Output/Baseline_USR_FileHashes.txt
- echo "cat /proc/modules > Output/Baseline_Modules.txt"
- cat /proc/modules > Output/Baseline_Modules.txt
- echo "cat /etc/passwd > Output/Baseline_Users.txt"
- cat /etc/passwd > Output/Baseline_Users.txt
- echo "cat /etc/group > Output/Baseline_Groups.txt"
- cat /etc/group > Output/Baseline_Groups.txt
- echo "ps -ef > Output/Baseline_ActiveProcs.txt"
- ps -ef > Output/Baseline_ActiveProcs.txt
- echo "lsof -n -P -l > Output/Baseline_ProcResources.txt"
- lsof -n -P -l > Output/Baseline_ProcResources.txt
- echo "ifconfig -a > Output/Baseline_Ifconfig.txt"
- ifconfig -a > Output/Baseline_Ifconfig.txt
- echo "netstat -nap > Output/Baseline_Ports.txt"
- netstat -nap > Output/Baseline_Ports.txt
- echo "find / -perm 4755 -print > Output/Baseline_SUIDs.txt"
- find / -perm 4755 -print > Output/Baseline_SUIDs.txt
- echo "ls -l /etc/cron.* > Output/Baseline_Crons.txt"
- ls -l /etc/cron.* > Output/Baseline_Crons.txt
- echo "find / -size +1000000k -print > Output/Baseline_LargeFiles.txt"
- find / -size +1000000k -print > Output/Baseline_LargeFiles.txt
- echo "find / -regex '.+[ ]' > Output/Baseline_Hidden.txt"
- find / -regex '.+[ ]' > Output/Baseline_Hidden.txt
- echo "find / -type f -print > Output/Baseline_Filenames.txt"
- find / -type f -print > Output/Baseline_Filenames.txt
- echo Baselining Complete!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement