lib/mihari/analyzers/censys.rb in mihari-4.5.0 vs lib/mihari/analyzers/censys.rb in mihari-4.5.1

- old
+ new

@@ -86,15 +86,20 @@ country: hit.location.country, country_code: hit.location.country_code ) end + ports = hit.services.map(&:port).map do |port| + Port.new(port: port) + end + Artifact.new( data: hit.ip, source: source, metadata: hit.metadata, autonomous_system: as, - geolocation: geolocation + geolocation: geolocation, + ports: ports ) end def configuration_keys %w[censys_id censys_secret]