fix: missing variable in threatfox parser
parent
a4a768da00
commit
19f1aa2a1a
|
@ -3,11 +3,13 @@
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
def parse_raw_file(self, f: BytesIO) -> List[str]:
|
def parse_raw_file(self, f: BytesIO) -> List[str]:
|
||||||
|
self.datetime = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)
|
||||||
to_return = []
|
to_return = []
|
||||||
for entry in json.loads(f.getvalue().decode()).values():
|
for entry in json.loads(f.getvalue().decode()).values():
|
||||||
ip_port = entry[0]['ioc_value']
|
ip_port = entry[0]['ioc_value']
|
||||||
|
|
Loading…
Reference in New Issue