Skip to main content

Provides access to the vulndb information

Project description

Python SDK to access the vulnerability database

Build Status

Installation

It’s possible to install the latest stable release from pypi:

pip install vulndb

Or if you’re interested in the latest version from our repository:

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

Usage

>>> from vulndb import DBVuln
>>> dbv = DBVuln.from_id(42)
>>> dbv.title
'SQL Injection'
>>> dbv.description
'A long and actionable description for SQL injection ...'
>>> dbv.fix_guidance
'Explains the developer how to fix SQL injections, usually a couple of <p> long ...'
>>> dbv.severity
'high'
>>> r = dbv.references[0]
>>> r.url
'http://example.com/sqli-description.html'
>>> r.title
'SQL injection cheat-sheet'

More attributes, methods and helpers are well documented and available in the source code.

Contributing

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

$ cd python-sdk
$ virtualenv venv
$ . venv/bin/activate
$ pip install -r vulndb/requirements-dev.txt
$ nosetests vulndb/
..........
----------------------------------------------------------------------
Ran 10 tests in 0.355s

OK

Updating the database

This package embeds the vulnerability database in the vulndb/db/ directory. To update the database with new information follow these steps:

# Update the database
tools/update-db.sh

After updating the database it’s a good idea to publish the latest at pypi using:

python setup.py sdist upload

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.1.2.tar.gz (51.2 kB view details)

Uploaded Source

Built Distribution

vulndb-0.1.2-py2-none-any.whl (110.5 kB view details)

Uploaded Python 2

File details

Details for the file vulndb-0.1.2.tar.gz.

File metadata

  • Download URL: vulndb-0.1.2.tar.gz
  • Upload date:
  • Size: 51.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for vulndb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7455fb87747c41b10351d1efde90ca7e4df9aa1360a8607c9d9f91761985e34c
MD5 d0dedd8fc585db6369464bd77e64a2f8
BLAKE2b-256 15c38e4a6f4f865cec7529028d4bb70e25d0e399d1e7336b73544629db596d51

See more details on using hashes here.

File details

Details for the file vulndb-0.1.2-py2-none-any.whl.

File metadata

  • Download URL: vulndb-0.1.2-py2-none-any.whl
  • Upload date:
  • Size: 110.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.15+

File hashes

Hashes for vulndb-0.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 e4cd16c40c6161288c3204653c76b0a5ecd02d7ed42a6441029d39ea968100bc
MD5 c2992989625abef8c5a5f410d37bfd9b
BLAKE2b-256 12c314704ef1a49eed356eb036688ce6e1ddd3ba7781edf25e6fba8e63b6fcae

See more details on using hashes here.

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