Module: Gauntlt::Support::NmapHelper

Defined in:
lib/gauntlt/attack_adapters/support/nmap_helper.rb

Instance Method Summary collapse

Instance Method Details

#run_nmap_attack(host, opts) ⇒ Object


6
7
8
9
10
11
12
13
# File 'lib/gauntlt/attack_adapters/support/nmap_helper.rb', line 6

def run_nmap_attack(host, opts)
  args = opts.map{|k,v| "#{k} #{v}"}

  command = "nmap #{args.join(' ')} #{host}"

  # run is from aruba
  run command
end