I know how we all have our own way of copy/paste from console windows but metasploit has just introduced a new feature as of r13028.

You can now save all of the output of metasploit (including meterpreter) to a file using the spool command:

1
2
3
spool /root/msf3_output.txt
[OWNAGE GOES HERE]
spool off

Or to ensure you always have a log of what you are doing add to the ~/.msf3/msfconsole.rc file (might not exist so create it)

1
spool /root/msf3_output.txt

It will always append so keep an eye on the file size (although raw text wont be too big unless you’re owning 24/7)

Leave a Reply