Created
May 27, 2021 20:07
-
-
Save briantissue/d0243549e58f6cd01660128f1f955dc4 to your computer and use it in GitHub Desktop.
NMAP Scans For Firewalls Check
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 | |
# Written by Brian Tissue May 2021 | |
> nmapresults.txt | |
for HOST in `cat hosts_scan|grep -v ^#`; do echo ${HOST}; nmap -v ${HOST} | grep -i ${HOST} | grep -i open ; done >> /home/scanner/nmapresults.txt | |
/usr/sbin/sendmail [email protected] < /home/scanner/nmapresults.txt | |
/usr/sbin/sendmail [email protected] < /home/scanner/nmapresults.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment