Sha256: bd8acd9bf960ed549d4e250a4a2377edd6a5076d9d91639568f73b6b75226561

Contents?: true

Size: 808 Bytes

Versions: 1

Compression:

Stored size: 808 Bytes

Contents

module Nmapr
  module Options
    module Ping
      def ping(type)
        case type
        when :disable
          add_argument("-PN")
        when false
          add_argument("-PN")
        when :only
          add_argument("-sn")
        when true
          add_argument("-sn")
        when :udp
          add_argument("-PU")
        when :tcp_syn
          add_argument("-PS")
        when :tcp_ack
          add_argument("-PA")
        when :sctp_init
          add_argument("-PY")
        when :icmp_echo
          add_argument("-PE")
        when :icmp_timestamp
          add_argument("-PP")
        when :icmp_address_mask
          add_argument("-PM")
        when :ip_protocol
          add_argument("-PO")
        when :arp
          add_argument("-PR")
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nmapr-1.0.0 lib/nmapr/options/ping.rb