GithubHelp home page GithubHelp logo

candidate2_vulnerability_scanner's Introduction

Vulnerability Scanner

Prerequisites:

  • Python - Required install
  • Trivy - Required install
  • Postman - Optional install
  • Homebrew - Optional install - MacOS
  • Understanding of Python - Required

How to run locally:

This project uses the following packages to run it locally:

Run the following command to install dependencies required to run the API locally in your terminal/command prompt:

pip install -r requirements.txt

Once the dependencies are installed, to start the API locally you need to run:

uvicorn main:app --reload

This will start the API running locally on: http://127.0.0.1:8000. uvicorn will direct you to another endpoint in your terminal/command prompt if something is currently using port 8000.

Congrats! The api is now running locally.

A good way to test it is working is to do a GET request using Postman on http://127.0.0.1:8000/container?name=node:18. You will get a message indicating that you have not scanned a container named node:18 yet.

Depending on your machine, to stop the API running locally use the command for your machine to stop a running process in your terminal/command prompt where you ran uvicorn main:app --reload.

Endpoints

To see the full API's functionality, and possible parameters and endpoints, just navigate to http://127.0.0.1:8000/docs in a web browser while the app is running. This will dynamically update as new endpoints and functionality is added.

candidate2_vulnerability_scanner's People

Contributors

jeffreyaslaven 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.