Class: Mihari::Analyzers::PassiveSSL

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

Constant Summary collapse

ANALYZERS =
[
  Mihari::Analyzers::CIRCL,
  Mihari::Analyzers::PassiveTotal
].freeze

Instance Attribute Summary collapse

Attributes inherited from Base

#ignore_old_artifacts, #ignore_threshold

Instance Method Summary collapse

Methods inherited from Base

inherited, #run, #run_emitter, #source

Methods included from Retriable

#retry_on_error

Methods included from Configurable

#config_keys, #configuration_values, #configured?

Constructor Details

#initialize(query, title: nil, description: nil, tags: []) ⇒ PassiveSSL

Returns a new instance of PassiveSSL.



15
16
17
18
19
20
21
22
23
24
# File 'lib/mihari/analyzers/passive_ssl.rb', line 15

def initialize(query, title: nil, description: nil, tags: [])
  super()

  @query = query
  @type = TypeChecker.detailed_type(query)

  @title = title || "PassiveSSL cross search"
  @description = description || "query = #{query}"
  @tags = tags
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



8
9
10
# File 'lib/mihari/analyzers/passive_ssl.rb', line 8

def description
  @description
end

#queryObject (readonly)

Returns the value of attribute query.



8
9
10
# File 'lib/mihari/analyzers/passive_ssl.rb', line 8

def query
  @query
end

#tagsObject (readonly)

Returns the value of attribute tags.



8
9
10
# File 'lib/mihari/analyzers/passive_ssl.rb', line 8

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title.



8
9
10
# File 'lib/mihari/analyzers/passive_ssl.rb', line 8

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/mihari/analyzers/passive_ssl.rb', line 8

def type
  @type
end

Instance Method Details

#artifactsObject



26
27
28
29
30
# File 'lib/mihari/analyzers/passive_ssl.rb', line 26

def artifacts
  Parallel.map(analyzers) do |analyzer|
    run_analyzer analyzer
  end.flatten
end