Metasploit mailing list archives

Re: msfcli and db_autopwn


From: "James Lay" <jlay () slave-tothe-box net>
Date: Wed, 10 Feb 2010 14:54:55 -0700

On 2/10/2010 3:35 PM, James Lay wrote:
I am wondering if msfcli has the functionality of db_autopwn.  I am
hoping
to automate and schedule an exploit run which I would normally do with
msfconsole.  Is this possible?  Thank you.

msfcli is limited in terms of what it can run; you would be better off
using a combination of msfconsole RC scripts with AutoRunScript and
meterpreter. For example:


$ cat 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


-HD


Just what I needed...thank you so much.

James

_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Current thread: