Class: Nmap::Program
- Inherits:
-
RProgram::Program
- Object
- RProgram::Program
- Nmap::Program
- Defined in:
- lib/nmap/program.rb
Overview
Represents the nmap
program.
Class Method Summary collapse
-
.scan(options = {}, exec_options = {}) {|task| ... } ⇒ Boolean
Finds the
nmap
program and performs a scan.
Instance Method Summary collapse
-
#scan(options = {}, exec_options = {}) {|task| ... } ⇒ Boolean
Performs a scan.
Class Method Details
.scan(options = {}, exec_options = {}) {|task| ... } ⇒ Boolean
Finds the nmap
program and performs a scan.
48 49 50 |
# File 'lib/nmap/program.rb', line 48 def self.scan(={},={},&block) find.scan(,,&block) end |
Instance Method Details
#scan(options = {}, exec_options = {}) {|task| ... } ⇒ Boolean
Performs a scan.
74 75 76 |
# File 'lib/nmap/program.rb', line 74 def scan(={},={},&block) run_task(Task.new(,&block),) end |