Last active
December 19, 2015 03:09
-
-
Save erran-r7/5888058 to your computer and use it in GitHub Desktop.
Metasploit Exploit Metadata A hacked together script from msfcli. Drop this in your metasploit root to list metadata on exploit modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib'))) | |
require 'msf/base' | |
framework = Msf::Simple::Framework.create(:module_types => ['exploit']) | |
@mods = [] | |
framework.exploits.each_module { |_name, mod| | |
@mods << mod.new | |
} | |
@ary = [] | |
@mods.each do |modul| | |
@ary << { name: modul.name, references: modul.references, architecture: modul.arch, target_names: modul.targets.map { |target| target.name } } | |
end | |
$stdout.puts @ary.to_json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage