mirror of https://github.com/MISP/PyMISP
Use only metadata in situational awareness tags functions
parent
22956fbd81
commit
13dbb96111
|
@ -27,7 +27,7 @@ if __name__ == '__main__':
|
|||
|
||||
if args.days is None:
|
||||
args.days = 7
|
||||
result = misp.download_last('{}d'.format(args.days))
|
||||
result = misp.search(last='{}d'.format(args.days), metadata=True)
|
||||
|
||||
tools.checkDateConsistancy(args.begindate, args.enddate, tools.getLastdate(args.days))
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ if __name__ == '__main__':
|
|||
|
||||
if args.days is None:
|
||||
args.days = 7
|
||||
result = misp.download_last('{}d'.format(args.days))
|
||||
result = misp.search(last='{}d'.format(args.days), metadata=True)
|
||||
|
||||
tools.checkDateConsistancy(args.begindate, args.enddate, tools.getLastdate(args.days))
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ from pymisp import PyMISP
|
|||
from keys import misp_url, misp_key, misp_verifycert
|
||||
import argparse
|
||||
import tools
|
||||
|
||||
import timing
|
||||
|
||||
def formattingDataframe(dataframe, dates, NanValue):
|
||||
dataframe.reverse()
|
||||
|
@ -49,7 +49,7 @@ if __name__ == '__main__':
|
|||
last = '7d'
|
||||
title = 'Tags repartition over the last 7 days'
|
||||
|
||||
result = misp.download_last(last)
|
||||
result = misp.search(last=last, metadata=True)
|
||||
if 'response' in result:
|
||||
events = tools.eventsListBuildFromArray(result)
|
||||
result = []
|
||||
|
|
Loading…
Reference in New Issue