Class Nmap::Parser::Session
In: lib/nmap/parser.rb
Parent: Object

This holds session information, such as runtime, Nmap‘s arguments, and verbosity/debugging

Methods

External Aliases

verbose -> verbosity
debug -> debugging

Attributes

debug  [R]  Amount of debugging (-d) used while scanning
nmap_version  [R]  The Nmap version number used to scan
scan_args  [R]  Holds the command run to initiate the scan
scan_time  [R]  Total scan time in seconds (can differ from stop_time - start_time)
start_str  [R]  Starting time
start_time  [R]  Starting time
stop_str  [R]  Ending time
stop_time  [R]  Ending time
verbose  [R]  Amount of verbosity (-v) used while scanning
xml_version  [R]  XML version of Nmap‘s output

Public Class methods

Public Instance methods

Returns the total number of services that were scanned or, if an argument is given, returns the number of services scanned for type (e.g. "syn")

Returns the protocol associated with the specified scan type (e.g. "tcp" for type "syn")

Returns an array of all the scan types performed, and passes them each to a block if one if given

Returns the scanflags associated with the specified scan type (e.g. "PSHACK" for type "ack")

[Validate]