Giter VIP home page Giter VIP logo

python-nessus's Introduction

Python-Nessus

python-nessus is a Rest Api Client written in python, which provides the user facility to automate vulnerability scanning using Nessus REST API.

Depending on the flag issued, it can list all policies, create and launch the scan, configure the user-defined policy prior to launching the scan and export the report in all available formats except for pdf. The command line utility has the power to do all this just by entering a single command.

Pre-Requisites

python2.x
Nessus 6 or above
pip for python2.x

Installation

Ideally, you should be able to just type:

git clone https://github.com/AdmiralGaust/python-nessus.git
cd python-nessus
sudo chmod u+x python-nessus
PATH=$PATH:/path/to/current_directory
pip install requests argparse termcolor

In case something not works, you can simply copy the python-nessus file to a text editor and save it as python-nessus.py After saving the file, install the dependencies by typing pip install requests argparse termcolor

Using Python-nessus

Open the python-nessus file with your favourite text editor and fill in the username and password fields at line 56 and 57 with your username and password. Now,to get the help menu type python-nessus

Make sure python-nessus is in your PATH. If it is not, you will encounter an error command not found. I will recommend you to add python-nessus to the PATH variable. Although, you can fix this issue by using it as python python-nessus

Examples of Usage

To list all policies :

python-nessus --list-policies

To create and launch a scan

python-nessus -t target_ip -p "policy_name"

To create and launch a scan taking targets from a text file

python-nessus -T target_file -p "policy_name"

To launch the scan with a customized name and export the report in csv format

python-nessus -T target_file -p "policy_name" -n scan_name -e csv

To delete the scan after exporting the report

python-nessus -T target_file -p "policy_name" -e html --delete

To configure the User-defined policy prior to launching the scan

python-nessus -t target_ip -p "policy_name" --configure -e nessus

SUPPORT

This repository is no longer supported.

python-nessus's People

Contributors

admiralgaust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-nessus's Issues

concerning the dependencies

Hello, i can't seem to find the dependencies file, therefore whenever i try to execute the python file i get an error, i also tried the "$ python2.7 pip install requests argparse termcolor" but it desn't seem to be working. Thank you in advance

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.