Coder Social home page Coder Social logo

marciopocebon / mass-nessus-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from orange-cyberdefense/mass-nessus-docker

0.0 0.0 0.0 24 KB

Deploy multiple instances of Nessus in docker containers easily

License: GNU General Public License v3.0

Shell 91.82% Dockerfile 8.18%

mass-nessus-docker's Introduction

Nessus-Docker

This project has been created prior Tenable published their version of dockerised Nessus.

As the new version of Nessus does not manage multiple users on the same instance, I created this project to deploy multiple instances of Nessus easily, each instance having its own user and its own licence.

1. Generate the template

$ ./1-build_image.sh

Depends on:

  • Dockerfile
  • get_latest_release.sh
  • startup.sh
  • create_nessus_user.sh
  • nessus_clean_old_scans.sh

2. Populate container_details.csv

$ nano ./container_details.csv

After the line login;password;port;licence, add a new one on the same model.

No space, don't delete the first line, don't use ";" in the login/passwords.

For example : user1;G00dPassword;8834;AA-BB-CC-DD.

Add as many lines as containers needed.

Optionnal: Delete results every X days

In my use case, I needed to be sure every result stored on the Nessus instances was deleted every two weeks.

To do so, edit the Dockerfile and uncomment the lines 16 to 21. The cron will be executed every day at 1am.

To change the data retention period, edit the line 18 in nessus_clean_old_scans.sh.

3. Build the container

$ ./2-build_all_containers.sh

The program will first compile plugins, then run through Nessus setup.

Wait for the [+] Nessus is available on (...) line to appear, it can take several minutes.

Once done, the containers are running.

Depends on:

  • build_container.sh
  • container_details.csv

4. Running the containers

You should have the built containers available using $ docker ps -a | grep nessus.

To run the containers, execute $ docker start nessus_docker_container_[name] for each container.

To check if the containers are running, execute $ docker ps | grep nessus. The status and ports are displayed.

5. Troubleshoots

docker: Error response from daemon: --storage-opt is supported only for overlay over xfs with 'pquota' mount option.

The storage-opt option is used to create bigger volumes.

If its usage presents troubles, there are 2 solutions:

The 2-build_all_containers.sh command does never terminate

Be patient. Try again.

The product stays inactivated

Enter it in the web ui or go trough console via $ docker exec -it [container ID] /bin/bash.

Then $ /opt/nessus/sbin/nessuscli fetch --register <serial>

The plugins are taking time compiling

Let them compile. Take a coffee break.

mass-nessus-docker's People

Contributors

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