Script omp2-enum-targets
Script types:
portrule
Categories:
discovery, safe
Download: https://svn.nmap.org/nmap/scripts/omp2-enum-targets.nse
Script Summary
Attempts to retrieve the list of target systems and networks from an OpenVAS Manager server.
The script authenticates on the manager using provided or previously cracked credentials and gets the list of defined targets for each account.
These targets will be added to the scanning queue in case
newtargets
global variable is set.
Script Arguments
- max-newtargets, newtargets
See the documentation for the target library.
- omp2.password, omp2.username
See the documentation for the omp2 library.
Example Usage
nmap -p 9390 --script omp2-brute,omp2-enum-targets <target>
nmap -p 9390 --script omp2-enum-targets --script-args omp2.username=admin,omp2.password=secret <target>
Script Output
PORT STATE SERVICE 9390/tcp open openvas | omp2-enum-targets: | Targets for account admin: | TARGET HOSTS | Sales network 192.168.20.0/24 | Production network 192.168.30.0/24 |_ Firewall 192.168.1.254
Requires
Author:
License: Same as Nmap--See https://nmap.org/book/man-legal.html