NmapTestHost Class Reference

List of all members.


Detailed Description

Storage class for nmap scan results for one host.

Definition at line 33 of file NmapTest.py.


Public Member Functions

def __init__
 Init attributes.
def setAddress
 Set address of host.
def getAddress
 Return address of host.
def setOs
 Set operating system of host.
def getOs
 Return operating system of host.
def addPort
def getPorts
 Return results for all scanned ports of this host.
def __str__
 Return string representation of this host.

Private Attributes

 __operatingSystem
 __address
 __ports

Static Private Attributes

string __operatingSystem = ""
string __address = ""
list __ports = []

Member Function Documentation

def __init__ (   self  ) 

Init attributes.

Definition at line 48 of file NmapTest.py.

def setAddress (   self,
  address 
)

Set address of host.

Parameters:
address IP address or URL

Definition at line 60 of file NmapTest.py.

def getAddress (   self  ) 

Return address of host.

Returns:
IP address or URL

Definition at line 70 of file NmapTest.py.

def setOs (   self,
  operatingSystem 
)

Set operating system of host.

Parameters:
operatingSystem operating system name

Definition at line 80 of file NmapTest.py.

def getOs (   self  ) 

Return operating system of host.

Returns:
operating system name

Definition at line 90 of file NmapTest.py.

def addPort (   self,
  number,
  protocol,
  state,
  service 
)

Definition at line 103 of file NmapTest.py.

def getPorts (   self  ) 

Return results for all scanned ports of this host.

Returns:
list of tuple (number, protocol, state, service)

Definition at line 113 of file NmapTest.py.

def __str__ (   self  ) 

Return string representation of this host.

Definition at line 121 of file NmapTest.py.


Member Data Documentation

string __operatingSystem = "" [static, private]

Definition at line 35 of file NmapTest.py.

string __address = "" [static, private]

Definition at line 38 of file NmapTest.py.

list __ports = [] [static, private]

Definition at line 41 of file NmapTest.py.

__operatingSystem [private]

Definition at line 49 of file NmapTest.py.

__address [private]

Definition at line 50 of file NmapTest.py.

__ports [private]

Definition at line 51 of file NmapTest.py.


The documentation for this class was generated from the following file:

Generated on Mon Aug 11 17:28:34 2008 for TestEnv by  doxygen 1.5.5