Class: Mihari::Analyzers::DNSTwister
- Defined in:
- lib/mihari/analyzers/dnstwister.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #artifacts ⇒ Object
-
#initialize(query, title: nil, description: nil, tags: []) ⇒ DNSTwister
constructor
A new instance of DNSTwister.
Methods inherited from Base
inherited, #run, #run_emitter, #source
Methods included from Retriable
Methods included from Configurable
#config_keys, #configuration_status, #configured?
Constructor Details
#initialize(query, title: nil, description: nil, tags: []) ⇒ DNSTwister
Returns a new instance of DNSTwister.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/mihari/analyzers/dnstwister.rb', line 17 def initialize(query, title: nil, description: nil, tags: []) super() @query = query @type = TypeChecker.type(query) @title = title || "dnstwister domain lookup" @description = description || "query = #{query}" @tags = end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
14 15 16 |
# File 'lib/mihari/analyzers/dnstwister.rb', line 14 def description @description end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
10 11 12 |
# File 'lib/mihari/analyzers/dnstwister.rb', line 10 def query @query end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
15 16 17 |
# File 'lib/mihari/analyzers/dnstwister.rb', line 15 def @tags end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
13 14 15 |
# File 'lib/mihari/analyzers/dnstwister.rb', line 13 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/mihari/analyzers/dnstwister.rb', line 11 def type @type end |
Instance Method Details
#artifacts ⇒ Object
28 29 30 |
# File 'lib/mihari/analyzers/dnstwister.rb', line 28 def artifacts lookup || [] end |