Autoenum – Nmap enumeration and script scan automation script.

Enumeration scan automation script:
+ Performs an initial Nmap scan to detect live hosts for enumeration and reduce subsequent scan times (more comprehensive than -sn)
+ Performs Nmap service enumeration scans on live hosts; outputs to HTML
+ Parses enumeration scan results and performs targeted Nmap script scans on open services
+ Exports scan results to html files by service
+ Generates target lists by port in text files for later use with other tools
— Specific web host list generated in Nikto format (
+ Optionally launches a Nikto scan on all detected web hosts and includes results in output directory

All scan parameters are pulled from config files so multiple configurations can be developed for internal vs. external networks or loud vs. quiet and specified with the -c flag. An example config file (default.example) is included and will be copied into the default path (default.cfg) upon initial launch.
Traditional Nmap target specifications using commas (e.g.,200,254) do not work properly due to the way the python-libnmap parses targets with commas as tuples (thus separate hosts delimited by commas)
Script tested on Kali Linux as well as OSX and should function on UNIX-based systems with required dependencies.

Python Module Dependencies:
python-libnmap (not installed on Kali Linux by default)

Binary Dependencies (all installed on Kali Linux by default):

+ Nmap
+ Nikto (optional)

– Move additional hard-coded stuff to config file
– Additional external service scan utilities like we have with Nikto
– Sessions
— Re-use of live host and enum scans for multiple groups / verbosities of script scans
– Optional detection and exclusion of fragile devices such as printers
– Windows – find / remove OS dependencies
– Nmap scan xml parsing via xsltproc (to Python)
– Catch keyboard interrupts and exit subprocesses without killing entire script
Download :  | Clone Url