Class: Mihari::Analyzers::Crtsh

Inherits:
Base
  • Object
show all
Defined in:
lib/mihari/analyzers/crtsh.rb

Constant Summary

Constants included from Mixins::Retriable

Mixins::Retriable::DEFAULT_ON

Instance Attribute Summary

Attributes inherited from Base

#rule

Instance Method Summary collapse

Methods inherited from Base

inherited, #initialize, #normalized_artifacts, #run, #run_emitter, #source

Methods included from Mixins::Retriable

#retry_on_error

Methods included from Mixins::Configurable

#configuration_keys, #configuration_values, #configured?

Methods included from Mixins::AutonomousSystem

#normalize_asn

Constructor Details

This class inherits a constructor from Mihari::Analyzers::Base

Instance Method Details

#artifactsObject



12
13
14
15
16
17
18
19
20
# File 'lib/mihari/analyzers/crtsh.rb', line 12

def artifacts
  results = search
  results.map do |result|
    values = result["name_value"].to_s.lines.map(&:chomp)
    values.map do |value|
      Artifact.new(data: value, source: source, metadata: result)
    end
  end.flatten
end