nilp0inter / cpe

CPE: Common Platform Enumeration for Python
GNU Lesser General Public License v3.0
92 stars 30 forks source link

cpe2.3 uri formatted string parsed more human #60

Open beruhan opened 7 months ago

beruhan commented 7 months ago
from cpe import CPE

a = CPE("cpe:2.3:a:microsoft_windows:internet_explorer:8.0.6001:beta:*:*:*:*:*:*")
print(a.get_vendor())
print(a.get_product())

currently result:

['microsoft_windows']
['internet_explorer']

need result:

['microsoft windows']
['internet explorer']

Which one meets the standard requirements? Common Platform Enumeration: Naming Specification:https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf image