Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Author:

Hartmut Goebel <h.goebel@goebel-consult.de>

Version:
Version 0.0.1
Homepage:

http://www.openvas.org/

OpenVAS (Open Vulnerability Assessment System) is a network security scanner with associated tools. OpenVAS Version 3 introduces a new core component: The OpenVAS-Manager, a layer between OpenVAS-Scanner and various client applications such as OpenVAS-Client or Greenbone Security Assistant. Among other features, it adds server-side storage of scan results and it makes it unnecessary for a scan client to keep the connection open until the scan finishes.

OpenVAS Management Protocol (OMP) is the protocol based on XML to talk to the OpenVAS-Manager. openvas.omplib is a pure-Python implementation of OMP which allows easy access to the OpenVAS-Manager.

This package also includes a command line tool omp-cli which uses sub-commands like svn or openssl does. See examples below.

Example:

manager = openvas.omplib.OMPClient(host=sensor)
manager.open(username, password)
manager.create_target(job_name, targets, comment)
task_id = manager.create_task(job_name, comment, config=config_name,
                              target=job_name)
report_id = manager.start_task(task_id)
# ... later ...
report = manager.get_report(report_id)
print etree.tostring(report)

openvas.opmlib also supports a low-level interface where you can send OMP XML directly:

help_text = manager.xml('<help/>')

Examples for omp-cli usage:

omp-cli --help             # get help
omp-cli get-report --help  # get help on subcommand get-report
omp-cli get-status         # list tasks with stati and report-ids

                           # Retreive a report in PDF format
omp-cli get-report -fPDF 343435d6-91b0-11de-9478-ffd71f4c6f30 \
                   -o some-report.pdf

Requirements and Installation

openvas.omplib requires

  • Python 2.5 or higher with SSL support (which should be the

    default on most platforms) (NB: Python 3.x is not supported)

  • setuptools for installation (see below).

  • argparse (already included in Python starting with Python 2.7)

Hints for installing on Windows:

Following the links above you will find .msi and .exe-installers. Simply install them and continue with installing openvas.omplib.

Hints for installing on Linux:

Most current Linux distributions provide packages for the requirements. Look for packages names like python-setuptools and python-argparse. Simply install them and continue with installing openvas.omplib.

Hint for installing on other platforms:

Many vendors provide Python. Please check your vendors software repository. Otherwise please download Python 2.6 (or any higer version from the 2.x series) from http://www.python.org/download/ and follow the installation instructions there.

After installing Python, install setuptools. You may want to read More Hints on Installing setuptools first.

Using setuptools, compiling and installing the remaining requirements is a piece of cake:

# if the system has network access
easy_install argparse

# without network access download argparse
# from http://pypi.python.org/pypi/argparse and run
easy_install argparse-*.zip

Installing openvas.omplib

When you are reading this you most probably already downloaded and unpacked openvas.omplib. Thus installing is as easy as running:

python ./setup.py install

Otherwise you may install directly using setuptools/easy_install. If your system has network access installing openvas.omplib is a breeze:

easy_install openvas.omplib

Without network access download openvas.omplib from http://pypi.python.org/pypi/openvas.omplib and run:

easy_install openvas.omplib-*.tar.gz

More Hints on Installing setuptools

openvas.omplib uses setuptools for installation. Thus you need either

  • network access, so the install script will automatically download and install setuptools if they are not already installed

or

  • the correct version of setuptools preinstalled using the EasyInstall installation instructions. Those instructions also have tips for dealing with firewalls as well as how to manually download and install setuptools.

Custom Installation Locations

openvas.omplib is just a single script (aka Python program). So you can copy it where ever you want (maybe fixing the first line). But it’s easier to just use:

# install to /usr/local/bin
python ./setup.py install --prefix /usr/local

# install to your Home directory (~/bin)
python ./setup.py install --home ~

Please mind: This effects also the installation of pfPDf (and setuptools) if they are not already installed.

For more information about Custom Installation Locations please refer to the Custom Installation Locations Instructions before installing openvas.omplib.

Release files for openvas.omplib 0.0.1dev-r7741

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for openvas.omplib 0.0.1dev-r7741
File Size Uploaded
openvas.omplib-0.0.1dev-r7741.zip 51.2 kB Details
openvas.omplib-0.0.1dev-r7741.tar.bz2 35.9 kB Details

Release files / openvas.omplib-0.0.1dev-r7741.zip

Download URL openvas.omplib-0.0.1dev-r7741.zip
Size 51.2 kB
Tags Source
SHA-256 checksum
How to use checksums
31f356635d35fc5f7e94d4966eb696e416484560a2b292a67d2fdfffd73ad97a
BLAKE2b-256 checksum
How to use checksums
77074f3b2f526fff9a21db432eb6682f86d89a0b18afe9bea3280721fa885ad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / openvas.omplib-0.0.1dev-r7741.tar.bz2

Download URL openvas.omplib-0.0.1dev-r7741.tar.bz2
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
194194bf959851b877527d84a804fb17f61cff254872d462d238ee877f9754f4
BLAKE2b-256 checksum
How to use checksums
697889009bfe45b56bf7f549f4061a35bd2c3da2efd394f65d6fc3f4c66f2d81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.0

This release

0.0.1dev-r7741 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page