nmap script that automates scanning as well as for vulns. Helpful for scanning on HTB and OSCP practice machines.
Fixing errors with checking CVEs as well as goBuster when used with hosts that redirect. Working on adding more features... (dirb and other fun things)
- Quick: Shows all open ports quickly (~15 seconds)
- Basic: Runs Quick Scan, then a runs more thorough scan on found ports (~5 minutes)
- UDP: Runs "Basic" on UDP ports (~5 minutes)
- Full: Runs a full range port scan, then runs a thorough scan on new ports (~5-10 minutes)
- Vulns: Runs CVE scan and nmap Vulns scan on all found ports (~5-15 minutes)
- Recon: Runs "Basic" scan "if not yet run", then suggests recon commands "i.e. gobuster, nikto, smbmap" based on the found ports, then prompts to automatically run them
- All: Runs all the scans consecutively (~20-30 minutes)
Required: Gobuster v3.0 or higher, as it is not backward compatible.
You can update gobuster on kali using:
apt-get update
apt-get install gobuster --only-upgrade
Recommended: nmap vulners scrip "for CVE scan"
https://github.com/vulnersCom/nmap-vulners
./nmap.sh
./nmap.sh 10.1.1.1 All
./nmap.sh 10.1.1.1 Basic
./nmap.sh 10.1.1.1 Recon
If you want to use it anywhere on the system, create a shortcut using:
ln -s /PATH-TO-FOLDER/nmapAutomator.sh /usr/local/bin/
Disclaimer: Thanks to (21y4d) for the original script.