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:
|
if args.days is None:
|
||||||
args.days = 7
|
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))
|
tools.checkDateConsistancy(args.begindate, args.enddate, tools.getLastdate(args.days))
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
if args.days is None:
|
if args.days is None:
|
||||||
args.days = 7
|
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))
|
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
|
from keys import misp_url, misp_key, misp_verifycert
|
||||||
import argparse
|
import argparse
|
||||||
import tools
|
import tools
|
||||||
|
import timing
|
||||||
|
|
||||||
def formattingDataframe(dataframe, dates, NanValue):
|
def formattingDataframe(dataframe, dates, NanValue):
|
||||||
dataframe.reverse()
|
dataframe.reverse()
|
||||||
|
@ -49,7 +49,7 @@ if __name__ == '__main__':
|
||||||
last = '7d'
|
last = '7d'
|
||||||
title = 'Tags repartition over the last 7 days'
|
title = 'Tags repartition over the last 7 days'
|
||||||
|
|
||||||
result = misp.download_last(last)
|
result = misp.search(last=last, metadata=True)
|
||||||
if 'response' in result:
|
if 'response' in result:
|
||||||
events = tools.eventsListBuildFromArray(result)
|
events = tools.eventsListBuildFromArray(result)
|
||||||
result = []
|
result = []
|
||||||
|
|
Loading…
Reference in New Issue