Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install openvas.omplib

How to install openvas.omplib

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install openvas.omplib
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.0 Failed View build log
0.0.1dev-r7741 Failed View build log
Windows (64-bit)
0.1.0 Available View build log
0.0.1dev-r7741 Failed View build log
Mac OS X (10.5+)
0.1.0 Failed View build log
0.0.1dev-r7741 Failed View build log
Linux (32-bit)
0.1.0 Failed View build log
0.0.1dev-r7741 Failed View build log
Linux (64-bit)
0.1.0 Failed View build log
0.0.1dev-r7741 Failed View build log
 
License
GPL 3.0
Dependencies
Imports
Lastest release
version 0.1.0 on Jan 5th, 2011

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 for interacting with openvas-manager. For easy of usage, this tool uses sub-commands much like svn or openssl does.

Example:

System Message: WARNING/2 (<string>, line 37)

Literal block expected; none found.

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:

System Message: WARNING/2 (<string>, line 50)

Literal block expected; none found.

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

Examples for omp-cli usage:

System Message: WARNING/2 (<string>, line 55)

Literal block expected; none found.

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

System Message: WARNING/2 (<string>, line 64)

Explicit markup ends without a blank line; unexpected unindent.

For more information please refer to the manpage or visit the project homepage.

Requirements and Installation

openvas.omplib requires

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

System Message: WARNING/2 (<string>, line 74)

Bullet list ends without a blank line; unexpected unindent.

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

System Message: WARNING/2 (<string>, line 84)

Field list ends without a blank line; unexpected unindent.

find .msi and .exe-installers. Simply install them and continue with installing openvas.omplib.

Hints for installing on GNU/Linux:
 Most current GNU/Linux distributions

System Message: WARNING/2 (<string>, line 88)

Field list ends without a blank line; unexpected unindent.

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.

System Message: WARNING/2 (<string>, line 93)

Field list ends without a blank line; unexpected unindent.

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

System Message: ERROR/3 (<string>, line 107)

Inconsistent literal block quoting.

easy_install argparse

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

System Message: WARNING/2 (<string>, line 109); backlink

Inline emphasis start-string without end-string.
Installing openvas.omplib

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

System Message: WARNING/2 (<string>, line 120)

Literal block expected; none found.

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:

System Message: WARNING/2 (<string>, line 126)

Literal block expected; none found.

easy_install openvas.omplib

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

System Message: WARNING/2 (<string>, line 131)

Literal block expected; none found.

easy_install openvas.omplib-*.tar.gz

System Message: WARNING/2 (<string>, line 131); backlink

Inline emphasis start-string without end-string.
More Hints on Installing setuptools

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

  • network access, so the install script will automatically download

System Message: WARNING/2 (<string>, line 141)

Bullet list ends without a blank line; unexpected unindent.

and install setuptools if they are not already installed

or

  • the correct version of setuptools preinstalled using the

System Message: WARNING/2 (<string>, line 146)

Bullet list ends without a blank line; unexpected unindent.

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

System Message: ERROR/3 (<string>, line 161)

Inconsistent literal block quoting.

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 argparse (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.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.