Skip to content

Commit

Permalink
feat: nuclei - add "meta" items to extra_data (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocervell committed Apr 23, 2024
1 parent 3dbc9ad commit d986e01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions secator/tasks/nuclei.py
Expand Up @@ -85,8 +85,12 @@ def id_extractor(item):
def extra_data_extractor(item):
data = {}
data['data'] = item.get('extracted-results', [])
data['type'] = item.get('type', '')
data['template_id'] = item['template-id']
data['template_url'] = item.get('template-url', '')
for k, v in item.get('meta', {}).items():
data['data'].append(f'{k}: {v}')
data['metadata'] = item.get('metadata', {})
return data

@staticmethod
Expand Down

0 comments on commit d986e01

Please sign in to comment.