Sha256: 0b151eab737df783990dd973095a2c4da299be3dbe131fecf251028199f9b150

Contents?: true

Size: 885 Bytes

Versions: 6

Compression:

Stored size: 885 Bytes

Contents

module Mihari
  module Analyzers
    class Censys < Base
      attr_reader query: String

      attr_reader interval: ::Integer

      def artifacts: () -> (Array[String] | Array[Mihari::Artifact])

      private

      def search: () -> Array[String]

      #
      # Extract IPv4s from Censys search API response
      #
      # @param [Structs::Censys::Response] response
      #
      # @return [Array<String>]
      #
      def response_to_artifacts: (Mihari::Structs::Censys::Response response) -> Array[String]

      #
      # Build an artifact from a Shodan search API response
      #
      # @param [Structs::Censys::Hit] hit
      #
      # @return [Artifact]
      #
      def build_artifact: (Mihari::Structs::Censys::Hit hit) -> Mihari::Artifact

      def configuration_keys: () -> ::Array["censys_id" | "censys_secret"]

      def api: () -> untyped
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mihari-4.3.0 sig/lib/mihari/analyzers/censys.rbs
mihari-4.2.0 sig/lib/mihari/analyzers/censys.rbs
mihari-4.1.2 sig/lib/mihari/analyzers/censys.rbs
mihari-4.1.1 sig/lib/mihari/analyzers/censys.rbs
mihari-4.1.0 sig/lib/mihari/analyzers/censys.rbs
mihari-4.0.0 sig/lib/mihari/analyzers/censys.rbs