Sha256: 73bc52e1067d559cb13cc85ce0a296e7a43546493a1be41ca4bdf2e38a5b885d
Contents?: true
Size: 949 Bytes
Versions: 2
Compression:
Stored size: 949 Bytes
Contents
# frozen_string_literal: true module Masscan # # Represents a banner record. # class Banner < Struct.new(:protocol,:port,:ttl,:ip,:timestamp,:app_protocol,:payload) # # Initializes the banner. # # @param [:icmp, :tcp, :udp, :sctp] protocol # The IP protocol. # # @param [Integer] port # The port number. # # @param [Integer, nil] ttl # The optional TTL. # # @param [IPAddr] ip # The IP address. # # @param [Time] timestamp # The record timestamp. # # @param [Symbol] app_protocol # The application protocol. # # @param [String] payload # The banner/capture payload. # # @api private # def initialize(protocol: , port: , ttl: nil, ip: , timestamp: , app_protocol: , payload: ) super(protocol,port,ttl,ip,timestamp,app_protocol,payload) end alias service app_protocol alias banner payload end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-masscan-0.3.0 | lib/masscan/banner.rb |
ruby-masscan-0.2.3 | lib/masscan/banner.rb |