vulnersCom / api

Vulners Python API wrapper
GNU General Public License v3.0
358 stars 60 forks source link

UserWarning: Nothing found for Burpsuite search request #5

Closed patsevanton closed 6 years ago

patsevanton commented 6 years ago
#!/usr/bin/env python3

import vulners
vulners_api = vulners.Vulners()
results = vulners_api.softwareVulnerabilities("httpd", "1.5")
# exploit_list = results.get('exploit')
# vulnerabilities_list = [results.get(key) for key in results if key not in ['info', 'blog', 'bugbounty']]
./check_version_vulners.py 
/home/apatsev/.local/lib/python3.6/site-packages/vulners/api.py:57: UserWarning: Nothing found for Burpsuite search request
  warnings.warn("%s" % results.get('error'))
python3 -V
Python 3.6.5
patsevanton commented 6 years ago

How fix it? Thank you

vulnersCom commented 6 years ago

Hi! Actually that's not a bug. Just a warning that request returned nothing. Everything looks working as expected.

patsevanton commented 6 years ago

How i Get vulnerabilities and exploits by software name and version ?

Documentation https://github.com/vulnersCom/api have this string:


import vulners

vulners_api = vulners.Vulners()

results = vulners_api.softwareVulnerabilities("httpd", "1.5")
exploit_list = results.get('exploit')
vulnerabilities_list = [results.get(key) for key in results if key not in ['info', 'blog', 'bugbounty']]
bbday commented 6 years ago

Same issue

vulnersCom commented 6 years ago

Fixed example. Just was a bad one :)