add category

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

View File

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