Sha256: f1b3283d0b7f6503fa59abb2cb81d73cf0a0d80c305042b5cb09279fae21c816
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
module Nmapr module Options module Evasion def fragment add_argument("-f") end def interface(value) add_argument("-e " << value) end def mtu(value) add_argument("-mtu " << value.to_s) end def ttl(value) add_argument("-ttl " << value.to_s) end def decoy(value) add_argument("-D " << value) end def decoys(value) add_argument("-D " << value.join(",")) end def spoof(type, value) case type when :ip add_argument("-S " << value) when :mac add_argument("--spoof-mac " << value) end end def bad_sum add_argument("--badsum") end def adler32 add_argument("--adler32") end def proxy(value) add_argument("--proxies " << value) end def proxies(type) case type when String proxy(type) when Array add_argument("--proxies " << type.join(",")) end end def source_port(value) add_argument("--source-port " << value.to_s) end 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 def randomize add_argument("--randomize-hosts") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nmapr-1.0.0 | lib/nmapr/options/evasion.rb |