NAME - Nmap::Scanner::Processor
This is the base class for output processors for Nmap::Scanner.
register_scan_complete_event()
Use this to tell the backend processor you want to be notified when the scan of a HOST is complete.
Pass in a reference to a function that will receive two arguments when called: A reference to the calling object and a reference to an Nmap::Scanner::Host instance.
register_scan_started_event()
Use this to tell the backend processor you want to be notified when the scan of a HOST has started.
Pass in a reference to a function that will receive two arguments when called: A reference to the calling object and a reference to an Nmap::Scanner::Host instance.
register_host_closed_event()
Use this to tell the backend processor you want to be notified when nmap has determined that the current host is not available (up).
Pass in a reference to a function that will receive two arguments when called: A reference to the calling object and a reference to an Nmap::Scanner::Host instance.
register_port_found_event()
Use this to tell the backend processor you want to be notified when an open port has been found on the current host being scanned.
Pass in a reference to a function that will receive three arguments when called: A reference to the calling object, a reference to an Nmap::Scanner::Host instance, and a reference to an Nmap::Scanner::Port containing information on the port.
register_no_ports_open_event()
Use this to tell the backend processor you want to be notified when the scan of a HOST has yielded NO open ports.
Pass in a reference to a function that will receive three arguments when called: A reference to the calling object, a reference to an Nmap::Scanner::Host instance, and a reference to an Nmap::Scanner::ExtraPorts instance with some information on the states of the non-open ports.
results()
Return the Nmap::Scanner::Results instance created by the scan.
process()
This method is called on the sub-classed processor to tell it to start processing output. It is passed the command line arguments to be used with nmap.
notify_scan_started()
Notify the listener that a scan started event has occurred. Caller is passed a reference to the callers self reference (object instance) and an Nmap::Scanner::Host instance.
notify_scan_started()
Notify the listener that a scan complete event has occurred. Caller is passed a reference to the callers self reference (object instance) and an Nmap::Scanner::Host instance.
notify_scan_started()
Notify the listener that a port found event has occurred. Caller is passed a reference to the callers self reference (object instance), an Nmap::Scanner::Host instance, and an Nmap::Scanner::Port instance.
notify_no_ports_open()
Notify the listener that a scan started event has occurred. Caller is passed a reference to the callers self reference (object instance), an Nmap::Scanner::Host instance, and an Nmap::Scanner::ExtraPorts instance.