GithubHelp home page GithubHelp logo

victims-db-builder's Introduction

victims-db-builder

Parses CVE files from github.com/victims/victims-cve-db Downloads artifacts, and submits them to victims web api

Development

This is a short guide on how to work with this codebase

Requirements

  • virtualenv
  • pip

Setup the development environment

Create a virtualenv using:

virtualenv dbuild

You should see the following output, and a new folder 'dbbuild' should be created.

New python executable in dbbuild/bin/python2.7
Also creating executable in dbbuild/bin/python
Installing setuptools, pip, wheel...done.

Activate the development environment

Activate the previously created environment using:

source dbuild/bin/activate

Once this is complete, you should see the name prepended to the command prompt eg: '(dbbuild)'

Install the required dependencies

Install dependencies using 'pip':

 pip install -r requirements.txt

Submit a single report:

 python processor.py ../tests/data/7501.yaml <username> <password>

Run the test suite

Install test dependencies using pip

  pip install -r test-requirements.txt

Use 'nose' to execute the test suite, found in the 'tests' directory using:

nosetests

Output will look like this for a successful run of the tests:

............
----------------------------------------------------------------------
Ran 12 tests in 16.545s

OK

Create a source distribution

Using distutil to create a '.tar' source distribution of the project:

python setup.py sdist

After running this, you should have a '.tar' file in 'dist/'

victims-db-builder's People

Contributors

jasinner avatar rh-hoomanb avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.