Use only metadata in situational awareness tags functions

pull/34/head
Déborah Servili 2016-10-13 13:39:44 +02:00
parent 22956fbd81
commit 13dbb96111
3 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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))

View File

@ -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 = []