Coder Social home page Coder Social logo

nightvision_mail_reporter's Introduction

NightVision Mail Reporter

Description

NightVision Mail Reporter is a tool used to automate the process of importing security vulnerability findings from a NightVision scan results file into user-friendly PDF reports and share these reports via email (e.g., Gmail or Outlook).

Installation

  1. Clone the Repository:

    git clone https://github.com/jxbt/nightvision_mail_reporter.git
    cd nightvision_mail_reporter
  2. Install Dependencies:

    chmod +x install.sh && sudo ./install.sh
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install -r requirements.txt

Usage

To use the NightVision Mail Reporter, provide the path to your SARIF file along with your Email Settings:

source .venv/bin/activate
python3 main.py --sarif r.sarif --sender [email protected] --password "your_email_password" --receiver [email protected] --outlook

Flags:

Flag Description
-s, --sarif Path to the SARIF file containing the security analysis results.
-o, --out Path to the output PDF file.
--sender The sender's email address.
--password The sender's email password.
--receiver The receiver's email address.
--server The SMTP server address.
--port The SMTP server port.
--gmail Use Gmail's SMTP server (sets server to smtp.gmail.com and port to 587).
--outlook Use Outlook's SMTP server (sets server to smtp-mail.outlook.com and port to 587).

Note: For Gmail, you must create and use a Google App Password. This is because Google does not allow access to your Gmail account using just your Gmail password when accessing via third-party apps apps.

Examples

  1. To run the script and send an email using Gmail's SMTP server:
source .venv/bin/activate
python3 main.py --sarif r.sarif --sender [email protected] --password "your_email_password" --receiver [email protected] --gmail
  1. To run the script and send an email using Outlook's SMTP server:
source .venv/bin/activate
python3 main.py --sarif r.sarif --sender [email protected] --password "your_email_password" --receiver [email protected] --outlook
  1. To run the script and send an email using a custom SMTP server:
source .venv/bin/activate
python3 main.py --sarif r.sarif --sender [email protected] --password "your_email_password" --receiver [email protected] --server smtp.example.com --port 1337

nightvision_mail_reporter's People

Contributors

jxbt avatar

Watchers

 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.