mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
fix: [typosquatting] remove unused import
This commit is contained in:
parent
885f1196ee
commit
f29f33982f
1 changed files with 1 additions and 15 deletions
|
@ -12,7 +12,6 @@ The Tracker_Typo_Squatting Module
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import signal
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,17 +25,6 @@ from packages.Item import Item
|
||||||
from packages import Term
|
from packages import Term
|
||||||
from lib import Tracker
|
from lib import Tracker
|
||||||
|
|
||||||
class TimeoutException(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def timeout_handler(signum, frame):
|
|
||||||
raise TimeoutException
|
|
||||||
|
|
||||||
|
|
||||||
signal.signal(signal.SIGALRM, timeout_handler)
|
|
||||||
|
|
||||||
|
|
||||||
class Tracker_Typo_Squatting(AbstractModule):
|
class Tracker_Typo_Squatting(AbstractModule):
|
||||||
mail_body_template = "AIL Framework,\nNew occurrence for tracked Typo: {}\nitem id: {}\nurl: {}{}"
|
mail_body_template = "AIL Framework,\nNew occurrence for tracked Typo: {}\nitem id: {}\nurl: {}{}"
|
||||||
|
|
||||||
|
@ -49,11 +37,9 @@ class Tracker_Typo_Squatting(AbstractModule):
|
||||||
|
|
||||||
self.pending_seconds = 5
|
self.pending_seconds = 5
|
||||||
|
|
||||||
#self.max_execution_time = self.process.config.getint('Tracker_Typo_Squatting', "max_execution_time")
|
|
||||||
|
|
||||||
self.full_item_url = self.process.config.get("Notifications", "ail_domain") + "/object/item?id="
|
self.full_item_url = self.process.config.get("Notifications", "ail_domain") + "/object/item?id="
|
||||||
|
|
||||||
# loads tracked words
|
# loads typosquatting
|
||||||
self.typosquat_tracked_words_list = Tracker.get_typosquatting_tracked_words_list()
|
self.typosquat_tracked_words_list = Tracker.get_typosquatting_tracked_words_list()
|
||||||
self.last_refresh_typosquat = time.time()
|
self.last_refresh_typosquat = time.time()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue