fix: missing variable in threatfox parser

pull/17/head
Raphaël Vinot 2021-12-30 11:28:03 +01:00
parent a4a768da00
commit 19f1aa2a1a
1 changed files with 2 additions and 0 deletions

View File

@ -3,11 +3,13 @@
import json
from datetime import datetime
from io import BytesIO
from typing import List
def parse_raw_file(self, f: BytesIO) -> List[str]:
self.datetime = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)
to_return = []
for entry in json.loads(f.getvalue().decode()).values():
ip_port = entry[0]['ioc_value']