Skip to content

Commit

Permalink
Merge branch 'main' of github.com:MISP/misp-modules into new_module
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisr3d committed Feb 20, 2023
2 parents 2e7ab05 + 8579cbb commit 81f94d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REQUIREMENTS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion misp_modules/modules/expansion/crowdsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 81f94d9

Please sign in to comment.