Skip to main content

Provides access to the vulndb information

Project description

Python SDK to access the vulnerability database

Build Status

Installation

git clone https://github.com/vulndb/python-sdk.git
python setup.py install

Usage

>>> from vulndb import DBVuln
>>> dbv = DBVuln.from_id(42)
>>> dbv.get_title()
'SQL Injection'
>>> dbv.get_severity()
'High'
>>> r = dbv.get_references()[0]
>>> r.get_url()
'http://example.com/sqli-description.html'
>>> r.get_title()
'SQL injection cheat-sheet'

More methods and helpers available in the source code.

Contributing

Send your pull requests with improvements and bug fixes, making sure that all tests PASS:

$ nosetests vulndb/
..........
----------------------------------------------------------------------
Ran 10 tests in 0.355s

OK

Install the test dependencies by running pip install -r vulndb/requirements-dev.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vulndb-0.0.2.tar.gz (9.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page