Monitoring the Environment: Nmap Diffing
td;lr
RAW Bash Script
nmap-diffing.sh
Setting up Cron
We can also set up a cron job and redirect logs to a file for our reference by adding cron job as below
crontab -e
This is a very basic script that runs nmap every day using default ports and then uses ndiff to compare the results. We can then take the output of this script and use it to notify our team of new ports discovered daily.
Last updated