Script omp2-enum-targets

Script types: portrule
Categories: discovery, safe

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

9390/tcp open  openvas
| omp2-enum-targets:
|  Targets for account admin:
|  TARGET              HOSTS
|  Sales network
|  Production network
|_ Firewall  



  • Henri Doreau

License: Same as Nmap--See