Class: Mihari::Analyzers::SSHFingerprint
- Defined in:
- lib/mihari/analyzers/ssh_fingerprint.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from Base
#ignore_old_artifacts, #ignore_threshold
Instance Method Summary collapse
- #artifacts ⇒ Object
-
#initialize(fingerprint, title: nil, description: nil, tags: []) ⇒ SSHFingerprint
constructor
A new instance of SSHFingerprint.
Methods inherited from Base
inherited, #run, #run_emitter, #source
Methods included from Retriable
Methods included from Configurable
#config_keys, #configuration_values, #configured?
Constructor Details
#initialize(fingerprint, title: nil, description: nil, tags: []) ⇒ SSHFingerprint
Returns a new instance of SSHFingerprint.
10 11 12 13 14 15 16 17 18 |
# File 'lib/mihari/analyzers/ssh_fingerprint.rb', line 10 def initialize(fingerprint, title: nil, description: nil, tags: []) super() @fingerprint = fingerprint @title = title || "SSH fingerprint cross search" @description = description || "fingerprint = #{fingerprint}" @tags = end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
8 9 10 |
# File 'lib/mihari/analyzers/ssh_fingerprint.rb', line 8 def description @description end |
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
8 9 10 |
# File 'lib/mihari/analyzers/ssh_fingerprint.rb', line 8 def fingerprint @fingerprint end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
8 9 10 |
# File 'lib/mihari/analyzers/ssh_fingerprint.rb', line 8 def @tags end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
8 9 10 |
# File 'lib/mihari/analyzers/ssh_fingerprint.rb', line 8 def title @title end |
Instance Method Details
#artifacts ⇒ Object
20 21 22 23 24 |
# File 'lib/mihari/analyzers/ssh_fingerprint.rb', line 20 def artifacts Parallel.map(analyzers) do |analyzer| run_analyzer analyzer end.flatten end |