Class: Nmap::Parser::Session

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

new numservices scan_type_proto scan_types scanflags

### 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

new(root)

### Public Instance methods

numservices(type = "")

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")

scan_type_proto(type)

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

scan_types() {|scantype| ...}

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

scanflags(type)

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

[Validate]