Metasploit mailing list archives

Re: How to save metasploit module outputs to text file?


From: Richard Miles <richard.k.miles () googlemail com>
Date: Thu, 6 Sep 2012 15:17:58 -0500

Hi todb and Joshua,

It's exactly what I was looking for, thanks a lot.

On Thu, Sep 6, 2012 at 2:44 PM, Joshua Smith <lazydj98 () gmail com> wrote:

Richard,
Yeah, you probably want spool.
You also might be interested in this (pulled this from an article I wrote):

"Spool:  Write console output into a file as well the screen"
and
"There are a few status/log related datastore settings you might find
useful.  You can see them most easily by running the 'back' command until
you are at the msfconsole main prompt again ("msf>") and then running 'show
options'.  Setting ConsoleLogging or SessionLogging will log all console
(or session) I/O and naturally setting LogLevel to a higher value increases
the detail you'll see in your logs at ~./msf4/logs (0 is the default value
and 5 is the max).   Setting VERBOSE to true will increase the verbosity of
msfconsole status messages."

On Sep 6, 2012, at 2:01 PM, Richard Miles wrote:

Hi,

I have a msf resource script with different checks that I executed, for
example telnet login checker, check for jboss, check for mysql auth bypass,
etc. However I waste a lot of time parsing the output by hand looking for
issues found. How can I save all metasploit output to a .txt file? With
this I will be able to easily grep the file and get just what I want.

Well, the history file created by metasploit only saves the commands
that I executed and not the output of the commands that is what I want.

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


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

Current thread: