Class: Mihari::Analyzers::DNSTwister

Inherits:
Base
  • Object
show all
Includes:
Mixins::Refang
Defined in:
lib/mihari/analyzers/dnstwister.rb

Constant Summary

Constants included from Mixins::Retriable

Mixins::Retriable::DEFAULT_ON

Instance Attribute Summary collapse

Attributes inherited from Base

#rule

Instance Method Summary collapse

Methods included from Mixins::Refang

#refang

Methods inherited from Base

inherited, #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

#initialize(*args, **kwargs) ⇒ DNSTwister

Returns a new instance of DNSTwister.



16
17
18
19
20
21
# File 'lib/mihari/analyzers/dnstwister.rb', line 16

def initialize(*args, **kwargs)
  super

  @query = refang(query)
  @type = TypeChecker.type(query)
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



14
15
16
# File 'lib/mihari/analyzers/dnstwister.rb', line 14

def type
  @type
end

Instance Method Details

#artifactsObject



23
24
25
# File 'lib/mihari/analyzers/dnstwister.rb', line 23

def artifacts
  search || []
end