module Nmapr::Options::Detection
Public Instance Methods
detect(type, value = false)
click to toggle source
# File lib/nmapr/options/detection.rb, line 20 def detect(type, value = false) case type when :os add_argument("-O") case value when :promising add_argument("--osscan-limit") when :aggressive add_argument("--osscan-guess") end when :version add_argument("-sV") version_intensity(value) if value end end
version_intensity(type)
click to toggle source
# File lib/nmapr/options/detection.rb, line 5 def version_intensity(type) case type when Integer add_argument("--version-intensity " << type.to_s) when :light add_argument("--version-light") when :all add_argument("--version-all") end end
version_trace()
click to toggle source
# File lib/nmapr/options/detection.rb, line 16 def version_trace add_argument("--version-trace") end