add as number with onyphe

pull/193/head
Sebdraven 2018-06-11 10:41:05 +02:00
parent 04032d110c
commit 735e626058
1 changed files with 2 additions and 2 deletions

View File

@ -63,9 +63,9 @@ def handle_expansion(api, ip, misperrors):
if r['@type'] == 'pastebin':
urls_pasties.append('https://pastebin.com/raw/%s' % r['key'])
elif r['@category'] == 'synscan':
ans_list = r['asn']
asn_list.append(r['asn'])
result_filtered['results'].append({'types': ['url'], 'values': urls_pasties})
result_filtered['results'].append({'types': ['AS'], 'values': asn_list})
result_filtered['results'].append({'types': ['AS'], 'values': list(set(asn_list))})
return result_filtered