Prerequise :
Use OpenVAS-OMP perl module from Winfried Neessen (cf http://search.cpan.org/dist/OpenVAS-OMP/)
Usage :
minimum arguments :
Usage: scan --workspace=<seccubus workspace> --scan=<seccubus scan>
--server=<OpenVAS server> [--port=<OpenVAS server port>
--user=<OpenVAS user> --password=<OpenVAS password>
--policy=<OpenVAS Scan Config name> [--target=<OpenVAS target>]
[--targetip=<IP(s) to scan>] [--portlist=<OpenVAS port listname>]
[--portrange=<Port range(s) to scan>] [--sleep=<sleeptime>]
[--maxchecks=<max checks>] [--maxhosts=<max hosts>]
[--timeout=<timeout>] [--nodelete] [--verbose] [--quiet] [--help]
Parameters description :
- --workspace (-ws) - Seccubus workspace the scan should be in
- --scan (-sc) - Seccubus scan the data should be saved in
- --server - IP address or hostname of OpenVAS scanner
- --port - TCP port the OpenVAS scanner is listening on (optional,
defaults=9390)
- --user - OpenVAS user name
- --password - OpenVAS password
- --policy - OpenVAS policy (aka Scan Config) to use for scanning
- --target - Name of the OpenVAS target to use when scanning (if the
target doesn't exist, it will be created using this name.
optional, default=<targetip>)
- --targetip - Definition of the IPs to scan. (optional if target is
specified and exists)
- --portlist - Name of the OpenVAS portlist to use when scanning (if
the portlist doesn't existm it will be created using this
name. optional, default=use the portlist from the target
copy the name from portrange)
- --portrange - OpenVAS port range to scan (optional if a target or portlist
is specified and it exists)
- --sleep - Seconds to sleep between polls of the API (optional,
default=10)
- --maxchecks - The number of plugins that will run against each host at the
same time (optional, default=4)
- --maxhosts - The maximum number of hosts to test at the same time
(optional, default=10)
- --timeout - # Seconds after which to abort a scan (optional,
default=14400 (4 hours))
- --nodelete - Don't erase temporary files
- --verbose (-v) - Be verbose during execution (repeat to increase verbosity)
- --quiet (-q) - Don't print output
- --help (-h) - Print this message