Class: Mihari::Analyzers::PassiveDNS
- Defined in:
- lib/mihari/analyzers/passive_dns.rb
Constant Summary collapse
- ANALYZERS =
[ Mihari::Analyzers::CIRCL, Mihari::Analyzers::PassiveTotal, Mihari::Analyzers::SecurityTrails, Mihari::Analyzers::VirusTotal, ].freeze
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: []) ⇒ PassiveDNS
constructor
A new instance of PassiveDNS.
Methods inherited from Base
Methods included from Retriable
Methods included from Configurable
#config_keys, #configuration_status, #configured?
Constructor Details
#initialize(query, title: nil, description: nil, tags: []) ⇒ PassiveDNS
Returns a new instance of PassiveDNS.
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/mihari/analyzers/passive_dns.rb', line 22 def initialize(query, title: nil, description: nil, tags: []) super() @query = query @type = TypeChecker.type(query) @title = title || "PassiveDNS cross search" @description = description || "query = #{query}" @tags = end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
12 13 14 |
# File 'lib/mihari/analyzers/passive_dns.rb', line 12 def description @description end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
8 9 10 |
# File 'lib/mihari/analyzers/passive_dns.rb', line 8 def query @query end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
13 14 15 |
# File 'lib/mihari/analyzers/passive_dns.rb', line 13 def @tags end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
11 12 13 |
# File 'lib/mihari/analyzers/passive_dns.rb', line 11 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/mihari/analyzers/passive_dns.rb', line 9 def type @type end |
Instance Method Details
#artifacts ⇒ Object
33 34 35 36 37 |
# File 'lib/mihari/analyzers/passive_dns.rb', line 33 def artifacts Parallel.map(analyzers) do |analyzer| run_analyzer analyzer end.flatten end |