Add constant for reverse check code lookup

GSoC/Meterpreter_Web_Console
Adam Cammack 2018-05-10 18:24:57 -05:00
parent 271a2344db
commit 147471fb79
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 8 additions and 0 deletions

View File

@ -107,6 +107,14 @@ class Exploit < Msf::Module
# The module does not support the check method. # The module does not support the check method.
# #
Unsupported = [ 'unsupported', "This module does not support check." ] Unsupported = [ 'unsupported', "This module does not support check." ]
#
# Hash for looking up codes by short name
#
Codes = [Unknown, Safe, Detected, Appears, Vulnerable, Unsupported].reduce({}) do |codes, code|
codes[code.first] = code
codes
end.freeze
end end
# #