{"id":131,"date":"2011-06-28T15:04:21","date_gmt":"2011-06-28T14:04:21","guid":{"rendered":"https:\/\/www.phillips321.co.uk\/?p=131"},"modified":"2011-07-14T11:25:48","modified_gmt":"2011-07-14T10:25:48","slug":"capture-all-metasploit-inputoutput","status":"publish","type":"post","link":"https:\/\/www.phillips321.co.uk\/2011\/06\/28\/capture-all-metasploit-inputoutput\/","title":{"rendered":"Capture all metasploit input\/output"},"content":{"rendered":"<p>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 <a href=\"http:\/\/community.rapid7.com\/community\/metasploit\/blog\/2011\/06\/25\/metasploit-framework-console-output-spooling\" target=_blank>r13028<\/a>.<\/p>\n<p>You can now save all of the output of metasploit (including meterpreter) to a file using the spool command:<\/p>\n<div class=\"codecolorer-container bash vibrant\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"bash codecolorer\">spool <span class=\"sy0\">\/<\/span>root<span class=\"sy0\">\/<\/span>msf3_output.txt<br \/>\n<span class=\"br0\">&#91;<\/span>OWNAGE GOES HERE<span class=\"br0\">&#93;<\/span><br \/>\nspool off<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>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)<\/p>\n<div class=\"codecolorer-container bash vibrant\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"bash codecolorer\">spool <span class=\"sy0\">\/<\/span>root<span class=\"sy0\">\/<\/span>msf3_output.txt<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>It will always append so keep an eye on the file size (although raw text wont be too big unless you\u2019re owning 24\/7)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: 123spool \/root\/msf3_output.txt &#91;OWNAGE GOES HERE&#93; spool off Or to ensure you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[92,91,456,32,90],"_links":{"self":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/131"}],"collection":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":4,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/131\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}