2010-06-15 07:14:05 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
# $Revision$
|
|
|
|
#
|
|
|
|
# This script lists each module by its disclosure date
|
|
|
|
#
|
|
|
|
|
|
|
|
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
|
|
|
$:.unshift(File.join(File.dirname(msfbase), '..', 'lib'))
|
|
|
|
|
|
|
|
require 'rex'
|
|
|
|
require 'msf/ui'
|
|
|
|
require 'msf/base'
|
|
|
|
|
|
|
|
Indent = ' '
|
|
|
|
|
|
|
|
# Initialize the simplified framework instance.
|
|
|
|
$framework = Msf::Simple::Framework.create
|
|
|
|
|
|
|
|
|
|
|
|
tbl = Rex::Ui::Text::Table.new(
|
|
|
|
'Header' => 'Module References',
|
|
|
|
'Indent' => Indent.length,
|
|
|
|
'Columns' => [ 'Module', 'Disclosure Date' ]
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
$framework.payloads.each_module { |name, mod|
|
|
|
|
x = mod.new
|
2010-06-25 04:21:23 +00:00
|
|
|
tbl << [ 'payload/' + name, x.disclosure_date ]
|
2010-06-15 07:14:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$framework.exploits.each_module { |name, mod|
|
|
|
|
x = mod.new
|
2010-06-25 04:21:23 +00:00
|
|
|
tbl << [ 'exploit/' + name, x.disclosure_date ]
|
2010-06-15 07:14:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$framework.nops.each_module { |name, mod|
|
|
|
|
x = mod.new
|
2010-06-25 04:21:23 +00:00
|
|
|
tbl << [ 'nop/' + name, x.disclosure_date ]
|
2010-06-15 07:14:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$framework.encoders.each_module { |name, mod|
|
|
|
|
x = mod.new
|
2010-06-25 04:21:23 +00:00
|
|
|
tbl << [ 'encoder/' + name, x.disclosure_date ]
|
2010-06-15 07:14:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$framework.auxiliary.each_module { |name, mod|
|
|
|
|
x = mod.new
|
2010-06-25 04:21:23 +00:00
|
|
|
tbl << [ 'auxiliary/' + name, x.disclosure_date ]
|
2010-06-15 07:14:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
puts tbl.to_s
|