From 2c9b953f230f638541dfaba86394a69b1d6908db Mon Sep 17 00:00:00 2001 From: Shivam Sandbhor Date: Mon, 20 Feb 2023 10:11:38 +0530 Subject: [PATCH 1/2] Set user agent of crowdsec misp module to crowdsec-misp/v1.0.0 Signed-off-by: Shivam Sandbhor --- misp_modules/modules/expansion/crowdsec.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misp_modules/modules/expansion/crowdsec.py b/misp_modules/modules/expansion/crowdsec.py index 597fc1f..4432c4e 100644 --- a/misp_modules/modules/expansion/crowdsec.py +++ b/misp_modules/modules/expansion/crowdsec.py @@ -41,7 +41,10 @@ def _handler_v2(request_data): crowdsec_cti = requests.get( f"https://cti.api.crowdsec.net/v2/smoke/{ip}", - headers={"x-api-key": request_data["config"]["api_key"]}, + headers={ + "x-api-key": request_data["config"]["api_key"], + "User-Agent": "crowdsec-misp/v1.0.0", + }, ) crowdsec_cti.raise_for_status() crowdsec_cti = crowdsec_cti.json() From 8579cbb260820aaa738ee13d18d11e7d0ed0e387 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 20 Feb 2023 10:16:34 +0100 Subject: [PATCH 2/2] chg: [REQUIREMENTS] remove specific version of psutil as mentioned in #593 --- REQUIREMENTS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/REQUIREMENTS b/REQUIREMENTS index 0904a16..0fc7218 100644 --- a/REQUIREMENTS +++ b/REQUIREMENTS @@ -95,7 +95,7 @@ pdftotext==2.2.2 pillow==9.2.0 pkgutil-resolve-name==1.3.10 ; python_version < '3.9' progressbar2==4.0.0 ; python_full_version >= '3.7.0' -psutil==5.9.2 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' +psutil publicsuffixlist==0.8.0 ; python_version >= '2.6' git+https://github.com/D4-project/BGP-Ranking.git/@68de39f6c5196f796055c1ac34504054d688aa59#egg=pybgpranking&subdirectory=client pycparser==2.21