lib/mihari/analyzers/censys.rb in mihari-0.5.1 vs lib/mihari/analyzers/censys.rb in mihari-0.5.2

- old
+ new

@@ -12,18 +12,18 @@ attr_reader :tags CENSYS_ID_KEY = "CENSYS_ID" CENSYS_SECRET_KEY = "CENSYS_SECRET" - def initialize(query, tags: []) + def initialize(query, title: nil, description: nil, tags: []) super() raise ArgumentError, "#{CENSYS_ID_KEY} and #{CENSYS_SECRET_KEY} are required" unless valid? @api = ::Censys::API.new @query = query - @title = "Censys lookup" - @description = "query = #{query}" + @title = title || "Censys lookup" + @description = description || "query = #{query}" @tags = tags end def artifacts ipv4s = []