Created
February 6, 2018 21:15
-
-
Save nix2intel/2ec6307a38ec60131d6adcb5ea794b2b to your computer and use it in GitHub Desktop.
Linux Information Gathering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir=~/.collections | |
mkdir $dir | |
sort –nk3 –t: /etc/passwd >> $dir/psswdUsers.art | |
egrep ':0+:' /etc/passwd >> $dir/psswdPrivUsers.art | |
find / -nouser -print >> $dir/orphanedFiles.art | |
ps –aux >> $dir/processList.art | |
crontab –u root –l >> $dir/rootCrontab.art | |
cat /etc/crontab >> $dir/globalCrontab.art | |
ls /etc/cron.* >> $dir/globalCronListing.art | |
tar cvfz $dir/extraview.tar.gz /var/log | |
/usr/bin/find / -ctime -1 -print >> $dir/recentFiles.art | |
ps -ef >> $dir/processListWCLI.art | |
rpm –Va | sort >> $dir/modifiedBins.art | |
Lsof -i >> $dir/proccesesWithPorts.art | |
arp -a >> $dir/arpTable.art | |
tar -zcvf artDir.tar.gz $dir ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment