Sha256: ccaa6f68c0dc5917e4daa2820b23c881399c40a73bbbacd27040cfa4d620192c
Contents?: true
Size: 945 Bytes
Versions: 18
Compression:
Stored size: 945 Bytes
Contents
module Mihari module Analyzers class Shodan < Base attr_reader query: String attr_reader interval: ::Integer attr_reader api_key: String? def artifacts: () -> (Array[String] | Array[Mihari::Artifact]) private PAGE_SIZE: ::Integer def configuration_keys: () -> ::Array["shodan_api_key"] def api: () -> untyped def search_with_page: (String query, ?page: ::Integer page) -> Hash[(String | Symbol), untyped] def search: () -> Array[Hash[(String | Symbol), untyped]] def collect_metadata_by_ip: (Array[Mihari::Structs::Shodan::Match] matches, ip: String) -> Array[Hash[(String | Symbol), untyped]] # # Build an artifact from a Shodan search API response # # @param [Structs::Shodan::Match] match # # @return [Artifact] # def build_artifact: (Mihari::Structs::Shodan::Match match) -> Mihari::Artifact end end end
Version data entries
18 entries across 18 versions & 1 rubygems