Module: Metasploit::Model::Reference
- Extended by:
- ActiveModel::Naming, ActiveSupport::Concern
- Includes:
- Translation
- Defined in:
- lib/metasploit/model/reference.rb
Overview
Code shared between Mdm::Reference
and Metasploit::Framework::Reference
.
Instance Attribute Summary collapse
-
#authority ⇒ Metasploit::Model::Authority?
The authority that assigned #designation.
-
#designation ⇒ String?
A designation (usually a string of numbers and dashes) assigned by #authority.
-
#module_instances ⇒ Array<Metasploit::Model::Module::Instance>
readonly
Modules that exploit this reference or describe a proof-of-concept (PoC) code that the module is based on.
-
#url ⇒ String?
URL to web page with information about referenced exploit.
Instance Method Summary collapse
-
#authority? ⇒ true, false
Returns whether #authority is not
nil
. -
#derived_url ⇒ String?
Derives #url based how #authority routes designations to a URL.
Instance Attribute Details
#authority ⇒ Metasploit::Model::Authority?
The authority that assigned #designation.
|
# File 'lib/metasploit/model/reference.rb', line 59
|
#designation ⇒ String?
A designation (usually a string of numbers and dashes) assigned by #authority.
|
# File 'lib/metasploit/model/reference.rb', line 74
|
#module_instances ⇒ Array<Metasploit::Model::Module::Instance> (readonly)
Modules that exploit this reference or describe a proof-of-concept (PoC) code that the module is based on.
|
# File 'lib/metasploit/model/reference.rb', line 64
|
#url ⇒ String?
URL to web page with information about referenced exploit.
|
# File 'lib/metasploit/model/reference.rb', line 79
|
Instance Method Details
#authority? ⇒ true, false
Returns whether #authority is not nil
.
92 93 94 |
# File 'lib/metasploit/model/reference.rb', line 92 def .present? end |
#derived_url ⇒ String?
Derives #url based how #authority routes designations to a URL.
99 100 101 102 103 104 105 106 107 |
# File 'lib/metasploit/model/reference.rb', line 99 def derived_url derived = nil if and designation.present? derived = .designation_url(designation) end derived end |