Skip to content

Commit 9c59130

Browse files
authored
Merge pull request #536 from YuningMiao/master
bugfix for cybercrimetracker
2 parents b30b4e0 + 4cc52fc commit 9c59130

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

plugins/feeds/public/cybercrimetracker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def update(self):
2727

2828
pub_date = parser.parse(item['pubDate'])
2929
if self.last_run is not None:
30-
if since_last_run > pub_date:
30+
if since_last_run > pub_date.replace(tzinfo=None):
3131
continue
3232

3333
self.analyze(item, pub_date)

plugins/feeds/public/malwaremustdiecncs.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ def update(self):
2020

2121
for item in self.update_xml('item', ["title", "description"]):
2222
if self.last_run is not None:
23-
if datetime.strptime(item["description"], "%d/%b/%Y") < since_last_run:
24-
continue
25-
23+
try:
24+
if datetime.strptime(item["description"], "%d/%b/%Y") < since_last_run:
25+
continue
26+
except ValueError:
27+
pass
28+
try:
29+
if datetime.strptime(item["description"], "%d/%B/%Y") < since_last_run:
30+
continue
31+
except ValueError:
32+
raise ValueError("couldn't parse date")
2633
self.analyze(item["title"])
2734

2835
def analyze(self, cnc):

yeti.conf.sample

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@
8282
# token =
8383

8484
[otx]
85-
#otx_key = YourOTXKey
86-
#number_page = 1
85+
# otx_key = YourOTXKey
86+
# number_page = 1

0 commit comments

Comments
 (0)