libnmap.objects.cpe

Using libnmap.objects.cpe module

TODO

CPE methods

class libnmap.objects.cpe.CPE(cpestring)[source]

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
cpedict

Accessor for _cpedict

cpestring

Accessor for the full CPE string.

get_edition()[source]

Returns the cpe edition

get_language()[source]

Returns the cpe language

get_part()[source]

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

get_product()[source]

Returns the product name

get_update()[source]

Returns the update version

get_vendor()[source]

Returns the vendor name

get_version()[source]

Returns the version of the cpe

is_application()[source]

Returns True if cpe describes an application

is_hardware()[source]

Returns True if cpe describes a hardware

is_operating_system()[source]

Returns True if cpe describes an operating system