Merge pull request #198 from DarkLighting/master

Update plugins/otx.py
This commit is contained in:
Somdev Sangwan
2023-11-14 19:01:03 +05:30
committed by GitHub

View File

@@ -4,7 +4,7 @@ from urllib.parse import urlparse
def otx(host, page): def otx(host, page):
these_params = set() 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: if 'url_list' not in data:
return (these_params, False, 'otx') return (these_params, False, 'otx')
for obj in data['url_list']: for obj in data['url_list']: