mirror of
https://github.com/valitydev/Cortex-Analyzers.git
synced 2024-11-06 00:55:17 +00:00
#506 upgrade to v 1.2. Use HEAD instead of GET request
This commit is contained in:
parent
9600eed011
commit
59966589d6
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "UnshortenLink",
|
||||
"version": "1.1",
|
||||
"version": "1.2",
|
||||
"author": "Remi Pointel, CERT-BDF",
|
||||
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
|
||||
"license": "AGPL-V3",
|
||||
|
@ -67,7 +67,7 @@ class UnshortenlinkAnalyzer(Analyzer):
|
||||
|
||||
result = {'found': False, 'url': None}
|
||||
try:
|
||||
response = requests.get(url, proxies=proxies,
|
||||
response = requests.head(url, proxies=proxies,
|
||||
allow_redirects=False)
|
||||
|
||||
if (response.status_code == 301) or (response.status_code == 302):
|
||||
|
Loading…
Reference in New Issue
Block a user