Tuesday, September 21, 2010

Ubuntu 10.10 Install Metasploit using the Postgres Database and AutoPwn

To install Metasploit using the Postgres Database for Ubuntu 10.10  just follow the simple instructions laid out HERE and HERE and you should have no problem.

AutoPwnNmap using Fasttrack's Python script: 

import getpass
user = getpass.getuser()
passwd = getpass.getpass('enter your password')
child1.sendline ('db_connect ' + user + ':' + passwd +'@localhost/metasploit')

AutoPwnNessus Same as above except:

 child1.sendline ('db_import ~/Nscan.nessus')

I did have to create a bash, and #comment out the commands that follow in the AutoPwn.py script, don't know why Metasploit didn't eat the commands, but anyway it works.

#!/bin/bash
dropdb metasploit
createdb metasploit
autopwnNMAP.py