Skip to content

Commit ed5a3c5

Browse files
committed
update nmap flags
1 parent b09feca commit ed5a3c5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

samples/nmap-scan.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ TODAY="$(date +%d.%m.%yT%H:%M:%S%Z)"
3535

3636
for net in "${NETWORKS[@]}"; do
3737
NETNAME=$(echo $net | tr -s '/' '-')
38-
#nmap "$net" -T4 -O -F --host-timeout 30s -oX nmap-"$NETNAME".xml
39-
nmap "$net" -T4 -sn --host-timeout 30s -oX nmap-"$NETNAME".xml
38+
39+
# requires sudo
40+
nmap "$net" -T4 -O -F --host-timeout 30s -oX nmap-"$NETNAME".xml
41+
42+
# does not require sudo
43+
#nmap "$net" -T4 -sn --host-timeout 30s -oX nmap-"$NETNAME".xml
4044
done
4145

4246
python3 netbox-scanner.py nmap

0 commit comments

Comments
 (0)