class documentation

CPE class offers an API for basic CPE objects. These objects could be found in NmapService or in <os> tag within NmapHost. :todo: interpret CPE string and provide appropriate API

Method __init__ Undocumented
Method __repr__ Undocumented
Method get_edition Returns the cpe edition
Method get_language Returns the cpe language
Method get_part Returns the cpe part (/o, /h, /a)
Method get_product Returns the product name
Method get_update Returns the update version
Method get_vendor Returns the vendor name
Method get_version Returns the version of the cpe
Method is_application Returns True if cpe describes an application
Method is_hardware Returns True if cpe describes a hardware
Method is_operating_system Returns True if cpe describes an operating system
Property cpedict Accessor for _cpedict
Property cpestring Accessor for the full CPE string.
Instance Variable _cpedict Undocumented
Instance Variable _cpestring Undocumented
def __init__(self, cpestring): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def get_edition(self): (source)

Returns the cpe edition

def get_language(self): (source)

Returns the cpe language

def get_part(self): (source)

Returns the cpe part (/o, /h, /a)

def get_product(self): (source)

Returns the product name

def get_update(self): (source)

Returns the update version

def get_vendor(self): (source)

Returns the vendor name

def get_version(self): (source)

Returns the version of the cpe

def is_application(self): (source)

Returns True if cpe describes an application

def is_hardware(self): (source)

Returns True if cpe describes a hardware

def is_operating_system(self): (source)

Returns True if cpe describes an operating system

Accessor for _cpedict

Accessor for the full CPE string.

_cpedict = (source)

Undocumented

_cpestring = (source)

Undocumented