Package: ares
aresaresis an APACHE licensed library written in Python providing an easy to use wrapper aroundhttps://cve.circl.lu.
This library has been tested with Python 2.7.x and Python 3.6+.Installation:From source use$pythonsetup.pyinstallor install from PyPi$pipinstallaresDocumentation:GET /api/browseGET /api/browse/<vendor>DescriptionReturns a list of vendors or products of a specific vendor.
This API call can be used in two ways; With or without the vendor.
When the link is called without a vendor, it will return a list of possible vendors.
When the link is called with a vendor, it enumerates the products for said vendor.ArgumentDescriptionExamplevendorVendor namemicrosoft>>>fromaresimportCVESearch>>>cve=CVESearch()>>>cve.browse('microsoft')GET /api/capec/<cpe>DescriptionOutputs a list of CAPEC related to a CWE.
CAPEC (Common Attack Pattern Enumeration and Classification) are a list of attack types commonly used by attackers.ArgumentDescriptionExamplecweidCWE ID200>>>cve.capec('200')GET /api/cpe2.2/<cpe>DescriptionDISABLED ON cve.circl.luConverts a CPE code to the CPE2.2 standard, stripped of appendices.
CPE2.2 is the old standard, and is a lot less uniform than the CPE2.3 standard.ArgumentDescriptionExamplecpeCPE code in cpe2.2 or cpe2.3 formatcpe:2.3:o:microsoft:windows_vista:6.0:sp1:-:-:home_premium:-:-:x64:->>>cve.cpe22('cpe:2.3:a:microsoft:office:2011:-:mac')GET /api/cpe2.3/<cpe>DescriptionDISABLED ON cve.circl.luConverts a CPE code to the CPE2.3 standard, stripped of appendices.
CPE2.3 is the newer standard, and is a lot more uniform and easier to read than the CPE2.2 standard.ArgumentDescriptionExamplecpeCPE code in cpe2.2 or cpe2.3 formatcpe:/o:microsoft:windows_vista:6.0:sp1:~-~home_premium~-~x64~->>>cve.cpe23('cpe:/a:microsoft:office:2011::mac')GET /api/cve/<cveid>DescriptionOutputs all available information for the specified CVE (Common Vulnerability and Exposure), in JSON format.
This information includes basic CVE information like CVSS (Common Vulnerability Scoring System), related CPE (Common Product Enumeration),
CWE (Common Weakness Enumeration), ... as well as additional information (RedHat Advisories etc).ArgumentDescriptionExamplecveidCVE numberCVE-2014-0160>>>cve.id('CVE-2014-0160')GET /api/cvefor/<cpe>DescriptionDISABLED ON cve.circl.luOutputs a list of CVEs related to the product.ArgumentDescriptionExamplecpeCPE code in cpe2.2 or cpe2.3 formatcpe:/o:microsoft:windows_vista:6.0:sp1:~-~home_premium~-~x64~->>>cve.cvefor('cpe:/o:microsoft:windows_vista:6.0:sp1:~-~home_premium~-~x64~-')GET /api/cweDescriptionOutputs a list of all CWEs (Common Weakness Enumeration).>>>cve.cwe()GET /api/dbInfoDescriptionReturns the stats of the database. When the user authenticates, more information is returned. This information includes:Amount of whitelist and blacklist records
Some server settings like the database name
Some database information like disk usageUnauthenticated queries return only collection information.Note: as of April 2020, authentication is disabled on cve.circl.lu.>>>cve.dbinfo()GET /api/lastGET /api/last/<limit>DescriptionOutputs the lastnamount of vulnerabilities. If the limit is not specified, the default of 30 is used.ArgumentDescriptionExamplelimitThe amount of CVEs to display10>>>cve.last('10')GET /api/search/link/<key>/<value>DescriptionDISABLED ON cve.circl.luReturns all CVEs that are linked by a given key/value pair.ArgumentDescriptionExamplekeyThe key to link CVEs onrefmap.msvalueThe value for the given keyMS16-098>>>cve.link('refmap.ms/MS16-098')GET /api/search/<vendor>/<product>DescriptionDISABLED ON cve.circl.luWhen vendor and product are specified, this API call returns a list of CVEs related to the product. The output of the browse call can be used for this.ArgumentDescriptionExamplevendorVendor namemicrosoftproductProduct nameoffice>>>cve.search('microsoft/office')License:Copyright 2014-2020 Martin Simon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.Buy me a coffee?If you feel like buying me a coffee (or a beer?), donations are welcome:BTC : 1BNFXHPNRtg7LrLUmQWwPUwzoicUi3uP8Q
ETH : 0xd061B7dD794F6EB357bf132172ce06D1B0E5b97B
BCH : qpcmv8vstulfhgdf29fd8sf2g769sszscvaktty2rv