Metasploit mailing list archives
Re: Formatting msfconsole output
From: Jonathan Cran <jcran () 0x0e org>
Date: Thu, 29 Apr 2010 17:14:02 -0400
On Thu, Apr 29, 2010 at 4:10 PM, Jonathan Cran <jcran () 0x0e org> wrote:
also, remember that it's ruby all the way down, so you can just directly query the framework's objects for the output you'd like.
Here's a quick example of printing the descriptions of modules: jcran@aldatmak:~/secure/metasploit/source/framework3/tools$ cat module_description.rb #!/usr/bin/ruby msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__ $:.unshift(File.join(File.dirname(msfbase), '..', 'lib')) require 'msf/base' $framework = Msf::Simple::Framework.create $framework.exploits.each_module { |name, mod| x = mod.new puts x.name + "\n" puts x.description + "\n" } _______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- Formatting msfconsole output Sean Keane (Apr 29)
- Re: Formatting msfconsole output NetEvil (Apr 29)
- Re: Formatting msfconsole output Rob Fuller (Apr 29)
- Re: Formatting msfconsole output Casey W. O'Brien (Apr 29)
- Re: Formatting msfconsole output Rob Fuller (Apr 29)
- Re: Formatting msfconsole output Jonathan Cran (Apr 29)
- Re: Formatting msfconsole output Jonathan Cran (Apr 29)
- Re: Formatting msfconsole output Casey W. O'Brien (Apr 29)