Class: Nmap::Parser::Host::OS

Class | Nmap::Parser::Host::OS
In: | lib/nmap/parser.rb
Parent: | Object

This holds the OS information from OS Detection

### Methods

all_names class_accuracy class_count name name_accuracy name_count names new osclasses osfamily osgen osmatches ostype osvendor tcpport_closed tcpport_open udpport_closed

### Classes and Modules

Class Nmap::Parser::Host::OS::OSClass
Class Nmap::Parser::Host::OS::OSMatch

### Attributes

fingerprint | [R] | OS fingerprint

### Public Class methods

new(os)

### Public Instance methods

all_names() {|name| ...}

Returns an array of names from all OS records, and passes them each to a block if one is given

class_accuracy(index = 0)

Returns OS class accuracy of the first OS class record, or Nth record as specified by `index`

class_count()

Returns the number of OS class records

name(index = 0)

Returns name of first OS match record, or Nth record as specified by `index`

name_accuracy(index = 0)

Returns OS name accuracy of the first OS match record, or Nth record as specified by `index`

name_count()

Returns the number of OS match records

names()

Alias for all_names

osclasses() {|osclass| ...}

Returns an array of OSClass objects, and passes them each to a block if one is given

osfamily(index = 0)

Returns OS family information of first OS class record, or Nth record as specified by `index`

osgen(index = 0)

Returns OS generation information of first OS class record, or Nth record as specified by `index`

osmatches() {|osmatch| ...}

Returns an array of OSMatch objects, and passes them each to a block if one is given

ostype(index = 0)

Returns OS type information of the first OS class record, or Nth record as specified by `index`

osvendor(index = 0)

Returns OS vendor information of the first OS class record, or Nth record as specified by `index`

tcpport_closed()

Returns the closed TCP port used for this OS Detection run

tcpport_open()

Returns the open TCP port used for this OS Detection run

udpport_closed()

Returns the closed UDP port used for this OS Detection run

[Validate]