Upcase all the things

GSoC/Meterpreter_Web_Console
Erin Bleiweiss 2018-09-14 16:05:43 -05:00
parent e590b7c01f
commit 6fae6065d6
No known key found for this signature in database
GPG Key ID: F69B2138BD594660
1 changed files with 2 additions and 4 deletions

View File

@ -140,14 +140,12 @@ class Msf::Modules::External::Shim
end end
# #
# In case certain notes like AKA and NOCVE are not properly capitalized in the external module definition, # In case certain notes are not properly capitalized in the external module definition,
# ensure that they are properly capitalized before rendering. # ensure that they are properly capitalized before rendering.
# #
def self.transform_notes(notes) def self.transform_notes(notes)
upcase_keys = %w[aka nocve]
notes.reduce({}) do |acc, (key, val)| notes.reduce({}) do |acc, (key, val)|
key = (upcase_keys.include? key.downcase) ? key.upcase : key acc[key.upcase] = val
acc[key] = val
acc acc
end end
end end