Class: Mihari::Analyzers::PassiveTotal

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited, #run, #run_emitter

Methods included from Retriable

#retry_on_error

Methods included from Configurable

#configuration_status, #configured?

Constructor Details

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

Returns a new instance of PassiveTotal.



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

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

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

  @title = title || "PassiveTotal lookup"
  @description = description || "query = #{query}"
  @tags = tags
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



12
13
14
# File 'lib/mihari/analyzers/passivetotal.rb', line 12

def description
  @description
end

#queryObject (readonly)

Returns the value of attribute query.



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

def query
  @query
end

#tagsObject (readonly)

Returns the value of attribute tags.



13
14
15
# File 'lib/mihari/analyzers/passivetotal.rb', line 13

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title.



11
12
13
# File 'lib/mihari/analyzers/passivetotal.rb', line 11

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/mihari/analyzers/passivetotal.rb', line 9

def type
  @type
end

Instance Method Details

#artifactsObject



26
27
28
# File 'lib/mihari/analyzers/passivetotal.rb', line 26

def artifacts
  lookup || []
end