Land #10283, SOUNDTRACK and LOGO refs

:'(
GSoC/Meterpreter_Web_Console
William Vu 2018-07-17 19:11:52 -05:00
commit 6a38b36a45
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
2 changed files with 14 additions and 3 deletions

View File

@ -497,16 +497,22 @@ class ReadableText
def self.dump_references(mod, indent = '')
output = ''
if (mod.respond_to?(:references) && mod.references && mod.references.length > 0)
output << "References:\n"
mod.references.each do |ref|
if Rex::Compat.getenv('FUEL_THE_HYPE_MACHINE') && %w[LOGO SOUNDTRACK].include?(ref.ctx_id)
Rex::Compat.open_browser(ref.ctx_val)
end
output << indent + ref.to_s + "\n"
end
cve_collection = mod.references.select { |r| r.ctx_id.match(/^cve$/i) }
if cve_collection.empty?
output << "#{indent}CVE: Not available\n"
end
mod.references.each { |ref|
mod.references.each do |ref|
case ref.ctx_id
when 'CVE', 'cve'
if !cve_collection.empty? && ref.ctx_val.blank?
@ -517,7 +523,8 @@ class ReadableText
else
output << indent + ref.to_s + "\n"
end
}
end
output << "\n"
end

View File

@ -115,6 +115,10 @@ class Msf::Module::SiteReference < Msf::Module::Reference
self.site = "https://packetstormsecurity.com/files/#{in_ctx_val}"
elsif in_ctx_id == 'URL'
self.site = in_ctx_val.to_s
elsif in_ctx_id == 'LOGO'
self.site = "Logo: #{in_ctx_val}"
elsif in_ctx_id == 'SOUNDTRACK'
self.site = "Soundtrack: #{in_ctx_val}"
elsif in_ctx_id == 'AKA'
self.site = "Also known as: #{in_ctx_val}"
else