Module: ARPScan::ARPScanner
- Defined in:
- lib/arp_scan/arp_scanner.rb
Overview
This module manages finding the arp-scan binary and running the scan. It delegates the parsing of the scan results to the ScanResultProcessor module.
Class Method Summary collapse
-
.scan(argument_string = nil) ⇒ Object
This method runs the actual scan by passing the arguments to the arp-scan binary.
Class Method Details
.scan(argument_string = nil) ⇒ Object
This method runs the actual scan by passing the arguments to the arp-scan binary. The results are passed to the ScanResultProcessor and a ScanReport is returned.
39 40 41 42 |
# File 'lib/arp_scan/arp_scanner.rb', line 39 def self.scan(argument_string = nil) result_string = `#{which 'arp-scan'} #{argument_string}` ScanResultProcessor.process(result_string, argument_string) end |