module Nmapr::Options::Evasion

Public Instance Methods

adler32() click to toggle source
# File lib/nmapr/options/evasion.rb, line 42
def adler32
  add_argument("--adler32")
end
bad_sum() click to toggle source
# File lib/nmapr/options/evasion.rb, line 38
def bad_sum
  add_argument("--badsum")
end
data(type = :hex, value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 63
def data(type = :hex, value)
  case type
  when :hex
    add_argument("--data " << value)
  when :string
    add_argument("--data-string " << value.to_s)
  when :length
    add_argument("--data-length " << value.to_s)
  end
end
decoy(value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 21
def decoy(value)
  add_argument("-D " << value)
end
decoys(value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 25
def decoys(value)
  add_argument("-D " << value.join(","))
end
fragment() click to toggle source
# File lib/nmapr/options/evasion.rb, line 5
def fragment
  add_argument("-f")
end
interface(value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 9
def interface(value) 
  add_argument("-e " << value)
end
mtu(value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 13
def mtu(value) 
  add_argument("-mtu " << value.to_s)
end
proxies(type) click to toggle source
# File lib/nmapr/options/evasion.rb, line 50
def proxies(type)
  case type
  when String
    proxy(type)
  when Array
    add_argument("--proxies " << type.join(","))
  end
end
proxy(value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 46
def proxy(value)
  add_argument("--proxies " << value)
end
randomize() click to toggle source
# File lib/nmapr/options/evasion.rb, line 74
def randomize
  add_argument("--randomize-hosts")
end
source_port(value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 59
def source_port(value)
  add_argument("--source-port " << value.to_s)
end
spoof(type, value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 29
def spoof(type, value)
  case type
  when :ip
    add_argument("-S " << value)
  when :mac
    add_argument("--spoof-mac " << value)
  end
end
ttl(value) click to toggle source
# File lib/nmapr/options/evasion.rb, line 17
def ttl(value) 
  add_argument("-ttl " << value.to_s)
end