cr0hn / info2cpe

Library to convert a information text (server banner, for example) into CPE v2.3 value
GNU General Public License v2.0
22 stars 14 forks source link

Incorrect output for test example on Windows python 2.7 #1

Open romikforest opened 5 years ago

romikforest commented 5 years ago

I'm trying to start a test example on Windows10x64 python 2.7, but have the strange output (the same incorrect output after installing python-Levenshtein, before and after updating database):

D:\wik\info2cpe-master>c:\Python27\python.exe info2cpe.py -t "Microsoft IIS httpd 7.5"
c:\Python27\lib\site-packages\fuzzywuzzy\fuzz.py:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
  warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
[*] Starting analysis...
[*] Analysis time: 0.69000005722
[*] Results:

   |----
   | CPE: cpe:/a:osirix-viewer:osirix:2.7.5
   | Name: OsiriX-Viewer OsiriX 2.7.5
   | Probability: 100%
   |____

   |----
   | CPE: cpe:/a:cloudera:cloudera_manager:3.7.5::enterprise
   | Name: Cloudera Cloudera Manager 3.7.5 Enterprise Edition
   | Probability: 100%
   |____

   |----
   | CPE: cpe:/a:hp:openview_network_node_manager:7.53:-:solaris
   | Name: HP OpenView Network Node Manager 7.53 Solaris
   | Probability: 100%
   |____

Why is it so?

romikforest commented 5 years ago

Possible the fuzz.partial_token_set_ratio should be changed to fuzz.token_set_ratio in api.py