nmapAutomator is a script that you can run in the background. The main goal for this script is to automate…