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