mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 02:28:23 +00:00
fix: [tracker typo squatting] fix perf
This commit is contained in:
parent
7a5c7dc14e
commit
1b6a9febc8
1 changed files with 4 additions and 5 deletions
|
@ -54,13 +54,12 @@ class Tracker_Typo_Squatting(AbstractModule):
|
||||||
print('Tracked typosquatting refreshed')
|
print('Tracked typosquatting refreshed')
|
||||||
|
|
||||||
host, id = message.split()
|
host, id = message.split()
|
||||||
item = Item(id)
|
|
||||||
|
|
||||||
# Cast message as Item
|
# Cast message as Item
|
||||||
for key in self.typosquat_tracked_words_list:
|
for tracker in self.typosquat_tracked_words_list:
|
||||||
#print(key)
|
if host in self.typosquat_tracked_words_list[tracker]:
|
||||||
if host in self.typosquat_tracked_words_list[key]:
|
item = Item(id)
|
||||||
self.new_tracker_found(key, 'typosquatting', item)
|
self.new_tracker_found(tracker, 'typosquatting', item)
|
||||||
|
|
||||||
def new_tracker_found(self, tracker, tracker_type, item):
|
def new_tracker_found(self, tracker, tracker_type, item):
|
||||||
item_id = item.get_id()
|
item_id = item.get_id()
|
||||||
|
|
Loading…
Reference in a new issue