41

GitHub - DanMcInerney/msf-autoshell: Feed the tool a .nessus file and it will au...

 5 years ago
source link: https://github.com/DanMcInerney/msf-autoshell
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

msf-autoshell

Give it a .nessus file and it'll get you Metasploit shells. I've included the early and incomplete programs to make it easier for people who want to learn how to use the python-libnessus and msfrpc libraries.

  • msf-autoshell-boilerplate.py was the first step; a simple boilerplate program with some boring stuff filled out.
  • msf-autoshell-parse-nessus.py was the next step and all it does is parse the .nessus file and grab some info off the parsed objects.
  • msf-autoshell-msfrpc-connect.py shows how to connect to the Metasploit RPC server and some examples of interacting with it.
  • Finally, msf-autoshell.py is the final script with all the Metasploit logic code for running modules in it.

Installation

This install is only tested on Kali.

git clone https://github.com/DanMcInerney/msf-autoshell
cd msf-autoshell
pipenv install --three
pipenv shell

In a new terminal: 
> msfconsole
msf > load msgrpc Pass=123

Usage

python msf-autoshell.py -n /path/to/nessus/file.nessus


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK