fix: [modules] small fixs

This commit is contained in:
Terrtia 2023-04-04 14:12:23 +02:00
parent 83ab4a93cd
commit c7aeb0c646
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
8 changed files with 15 additions and 13 deletions

View file

@ -43,7 +43,7 @@ class Crawler(AbstractModule):
# LACUS # LACUS
self.lacus = crawlers.get_lacus() self.lacus = crawlers.get_lacus()
self.is_lacus_up = crawlers.get_lacus().is_up self.is_lacus_up = is_lacus_connected(delta_check=0)
# Capture # Capture
self.har = None self.har = None

View file

@ -57,11 +57,11 @@ class ZMQModuleImporter(AbstractModule):
config_loader = ConfigLoader() config_loader = ConfigLoader()
addresses = config_loader.get_config_str('ZMQ_Global', 'address') addresses = config_loader.get_config_str('ZMQ_Global', 'address')
addresses = addresses.split(',').strip() addresses = addresses.split(',')
channel = config_loader.get_config_str('ZMQ_Global', 'channel') channel = config_loader.get_config_str('ZMQ_Global', 'channel')
self.zmq_importer = ZMQImporters() self.zmq_importer = ZMQImporters()
for address in addresses: for address in addresses:
self.zmq_importer.add(address, channel) self.zmq_importer.add(address.strip(), channel)
# TODO MESSAGE SOURCE - UI # TODO MESSAGE SOURCE - UI
def get_message(self): def get_message(self):

View file

@ -69,5 +69,4 @@ class CveModule(AbstractModule):
if __name__ == '__main__': if __name__ == '__main__':
module = CveModule() module = CveModule()
# module.run() module.run()
module.compute('crawled/2022/09/15/circl.lu1e4f9721-06dc-404f-aabf-3c3bd0b533bd 9')

View file

@ -25,9 +25,9 @@ from lib.objects.Items import Item
from lib.objects.Decodeds import Decoded from lib.objects.Decodeds import Decoded
config_loader = ConfigLoader() config_loader = ConfigLoader()
hex_max_execution_time = config_loader.get_config_int("Hex", "max_execution_time") hex_max_execution_time = config_loader.get_config_int("Decoder", "max_execution_time_hexadecimal")
binary_max_execution_time = config_loader.get_config_int("Binary", "max_execution_time") binary_max_execution_time = config_loader.get_config_int("Decoder", "max_execution_time_binary")
base64_max_execution_time = config_loader.get_config_int("Base64", "max_execution_time") base64_max_execution_time = config_loader.get_config_int("Decoder", "max_execution_time_base64")
config_loader = None config_loader = None

View file

@ -10,7 +10,6 @@ Search tools outpout
import os import os
import sys import sys
import time
sys.path.append(os.environ['AIL_BIN']) sys.path.append(os.environ['AIL_BIN'])
################################## ##################################
@ -433,6 +432,5 @@ class Tools(AbstractModule):
if __name__ == '__main__': if __name__ == '__main__':
module = Tools() module = Tools()
# module.run() module.run()
module.compute('crawled/2022/09/15/circl.lu179c7903-5b21-452e-9f25-4b61d9934e2b')

View file

@ -48,7 +48,7 @@ class SubmitPaste(AbstractModule):
super(SubmitPaste, self).__init__(queue_name='submit_paste') super(SubmitPaste, self).__init__(queue_name='submit_paste')
# TODO KVROCKS # TODO KVROCKS
self.r_serv_db = ConfigLoader.ConfigLoader().get_redis_conn("Kvrocks_DB") self.r_serv_db = ConfigLoader.ConfigLoader().get_db_conn("Kvrocks_DB")
self.r_serv_log_submit = ConfigLoader.ConfigLoader().get_redis_conn("Redis_Log_submit") self.r_serv_log_submit = ConfigLoader.ConfigLoader().get_redis_conn("Redis_Log_submit")
self.pending_seconds = 3 self.pending_seconds = 3

View file

@ -16,7 +16,7 @@ sys.path.append(os.environ['AIL_BIN'])
from lib import ConfigLoader from lib import ConfigLoader
config_loader = ConfigLoader.ConfigLoader() config_loader = ConfigLoader.ConfigLoader()
dns_server = config_loader.get_config_str("Web", "dns") dns_server = config_loader.get_config_str("DomClassifier", "dns")
config_loader = None config_loader = None
def is_luhn_valid(card_number): def is_luhn_valid(card_number):

View file

@ -90,6 +90,11 @@ criticalNumberToAlert=8
#Will be considered as false positive if less that X matches from the top password list #Will be considered as false positive if less that X matches from the top password list
minTopPassList=5 minTopPassList=5
[Decoder]
max_execution_time_base64 = 60
max_execution_time_binary = 60
max_execution_time_hexadecimal = 60
[Onion] [Onion]
save_i2p = False save_i2p = False
max_execution_time = 180 max_execution_time = 180