-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloud-env-scan.sh
More file actions
27 lines (21 loc) · 816 Bytes
/
cloud-env-scan.sh
File metadata and controls
27 lines (21 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
dire=$HOME/automation/IP-Scan/Cloud-Env
if [ -d $dire ]
then
echo "Ip scan directory available at $dire "
else
echo "Making directory for Ipscan $(mkdir $dire)"
fi
geting() {
wget https://raw.githubusercontent.com/lord-alfred/ipranges/main/all/ipv4_merged.txt -O $dire/ipv4-merged.txt
}
geting
#Download this repo.. form github (https://github.com/g0ldencybersec/CloudRecon)
reco() {
CloudRecon scrape -c 1000 -i $dire/ipv4-merged.txt > $dire/cloudrecon.txt
}
reco
echo "Time of ending cloudrecon: $date" | notify
#To grep subdomain form that use this oneliner
#grep -F '.twitch.tv' cloudrecon.txt | awk -F '[][]' '{print $2}' | sed 's# #\n#g' | grep ".twitch.tv" | sort -fu | cut -d ',' -f1 | sort -u
#To get all domain related to twitch just remove grep ".twitch.tv" between sed and sort