mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
63a563c20b
git-svn-id: file:///home/svn/framework3/trunk@9619 4d416f70-5f16-0410-b530-b9f4589650da
55 lines
1.1 KiB
Ruby
Executable File
55 lines
1.1 KiB
Ruby
Executable File
#!/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
|
|
tbl << [ 'payload/' + name, x.disclosure_date ]
|
|
}
|
|
|
|
$framework.exploits.each_module { |name, mod|
|
|
x = mod.new
|
|
tbl << [ 'exploit/' + name, x.disclosure_date ]
|
|
}
|
|
|
|
$framework.nops.each_module { |name, mod|
|
|
x = mod.new
|
|
tbl << [ 'nop/' + name, x.disclosure_date ]
|
|
}
|
|
|
|
$framework.encoders.each_module { |name, mod|
|
|
x = mod.new
|
|
tbl << [ 'encoder/' + name, x.disclosure_date ]
|
|
}
|
|
|
|
$framework.auxiliary.each_module { |name, mod|
|
|
x = mod.new
|
|
tbl << [ 'auxiliary/' + name, x.disclosure_date ]
|
|
}
|
|
|
|
puts tbl.to_s
|