Got tired of writing out Exploit-DB identifiers

There are 143 modules with exploit-db references, may as well make them
easier to write and find. This change introduces the EDB identifier.
unstable
Tod Beardsley 2012-03-20 08:01:08 -05:00
parent 31228ed65a
commit 75785a8b9f
3 changed files with 5 additions and 0 deletions

View File

@ -720,6 +720,8 @@ class Module
match = [t,w] if refs.any? { |ref| ref =~ /^bid\-/i and ref =~ r }
when 'osvdb'
match = [t,w] if refs.any? { |ref| ref =~ /^osvdb\-/i and ref =~ r }
when 'edb'
match = [t,w] if refs.any? { |ref| ref =~ /^edb\-/i and ref =~ r }
end
break if match
end

View File

@ -101,6 +101,8 @@ class Msf::Module::SiteReference < Msf::Module::Reference
self.site = 'http://www.microsoft.com/technet/security/bulletin/' + in_ctx_val.to_s + '.mspx'
elsif (in_ctx_id == 'MIL')
self.site = 'http://milw0rm.com/metasploit/' + in_ctx_val.to_s
elsif (in_ctx_id == 'EDB')
self.site = 'http://www.exploit-db.com/' + in_ctx_val.to_s
elsif (in_ctx_id == 'WVE')
self.site = 'http://www.wirelessve.org/entries/show/WVE-' + in_ctx_val.to_s
elsif (in_ctx_id == 'US-CERT-VU')

View File

@ -1304,6 +1304,7 @@ class Core
"cve" => "Modules with a matching CVE ID",
"bid" => "Modules with a matching Bugtraq ID",
"osvdb" => "Modules with a matching OSVDB ID"
"edb" => "Modules with a matching Exploit-DB ID"
}.each_pair do |keyword, description|
print_line " #{keyword.ljust 10}: #{description}"
end