From 2611b51ef4e3d35dd6e6abad82fbf548a37fbb28 Mon Sep 17 00:00:00 2001 From: Ailton Caetano Date: Fri, 15 Sep 2023 22:18:14 -0300 Subject: [PATCH] Update otx.py otx had a small change in its syntax, the minimum page value is now 1 --- arjun/plugins/otx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arjun/plugins/otx.py b/arjun/plugins/otx.py index 8743d0d..b3ed2b7 100644 --- a/arjun/plugins/otx.py +++ b/arjun/plugins/otx.py @@ -4,7 +4,7 @@ from urllib.parse import urlparse def otx(host, page): these_params = set() - data = requests.get('https://otx.alienvault.com/api/v1/indicators/hostname/%s/url_list?limit=50&page=%d' % (host, page), verify=False).json() + data = requests.get('https://otx.alienvault.com/api/v1/indicators/hostname/%s/url_list?limit=50&page=%d' % (host, page+1), verify=False).json() if 'url_list' not in data: return (these_params, False, 'otx') for obj in data['url_list']: