This file contains hidden or 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 | |
| NOTIFYEMAIL=receivingemailaccount@domain.com | |
| SENDEREMAIL=sendingemailaccount@domain.com | |
| SERVER=https://servertomonitor.domain.com | |
| PAUSE=300 # Checks this server every 5 minutes | |
| FAILED=0 | |
| DEBUG=0 | |
| while true | |
| do |
This file contains hidden or 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 | |
| NOTIFYEMAIL=receivingemailaccount@domain.com | |
| SENDEREMAIL=sendingemailaccount@domain.com | |
| SERVER=fqdnoripaddress | |
| PAUSE=300 | |
| FAILED=0 | |
| DEBUG=0 | |
| while true | |
| do |
This file contains hidden or 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 me@them.com < /home/scanner/nmapresults.txt | |
| /usr/sbin/sendmail you@them.com < /home/scanner/nmapresults.txt |
OlderNewer