Sha256: 1b7c34f8a27e2f9bf5d24af30ed94e6f176bf98167d79349ebaa3451438c2acc
Contents?: true
Size: 909 Bytes
Versions: 5
Compression:
Stored size: 909 Bytes
Contents
module Mihari module Analyzers class Shodan < Base attr_reader query: String attr_reader interval: ::Integer 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
5 entries across 5 versions & 1 rubygems