Home page logo
/

metasploit logo 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


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault