Nmap omp2-enum-targets NSE Script
This page contains detailed information about how to use the omp2-enum-targets NSE script. For list of all NSE scripts, visit the Nmap NSE Library.
Script Overview
Script source code: https://github.com/nmap/nmap/tree/master/scripts/omp2-enum-targets.nse
Script categories: discovery, safe
Target service / protocol: openvas
Target network port(s): 9390
List of CVEs: -
Script Description
The omp2-enum-targets.nse script 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.
Omp2-enum-targets NSE Script Arguments
This is a full list of arguments supported by the omp2-enum-targets.nse script:
omp2.passwordThe password to use for authentication.
omp2.usernameThe username to use for authentication.
max-newtargetsSets the number of the maximum allowed new targets. If set to 0 or less then there is no limit. The default value is 0.
newtargetsIf specified, lets NSE scripts add new targets.
- - -
To use these script arguments, add them to the Nmap command line using the --script-args arg1=value,[arg2=value,..]
syntax. For example:
nmap --script=omp2-enum-targets --script-args omp2.password=value,omp2.username=value <target>
Omp2-enum-targets NSE Script Example Usage
Here's an example of how to use the omp2-enum-targets.nse script:
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>
Omp2-enum-targets NSE Script Example Output
Here's a sample output from the omp2-enum-targets.nse script:
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
Omp2-enum-targets NSE Script Example XML Output
There is no sample XML output for this module. However, by providing the -oX <file>
option, Nmap will produce a XML output and save it in the file.xml
file.
Author
- Henri Doreau
References
- https://nmap.org/nsedoc/scripts/omp2-enum-targets.html
- https://github.com/nmap/nmap/tree/master/scripts/omp2-enum-targets.nse
See Also
Related NSE scripts to the omp2-enum-targets.nse script:
Visit Nmap NSE Library for more scripts.
Version
This page has been created based on Nmap version 7.92.