parameters: (self, debug=False, test=False)
docstring: Initialize SQLi.
  
          Args:
              debug (bool): Log on terminal or not
  
          Raises:
              None
  
          Returns:
              None
docstring_summary: Initialize SQLi.
docstring_tokens: Initialize SQLi .
function: def __init__(self, debug=False, test=False):
          """
          Initialize SQLi.
  
          Args:
              debug (bool): Log on terminal or not
  
          Raises:
              None
  
          Returns:
              None
          """
          # Initialize logger
          self.logger = ServerLogger(
              __name__,
              debug=debug
          )
  
          if test:
              # Path of file containing sqli regex rules
              self.REGEX_FILE = "securetea/lib/log_monitor/server_log/rules/regex/sqli.txt"
              # Path of file containing sqli payloads
              self.PAYLOAD_FILE = "securetea/lib/log_monitor/server_log/rules/payloads/sqli.txt"
          else:
              # Path of file containing sqli payloads
              self.PAYLOAD_FILE = "/etc/securetea/log_monitor/server_log/payloads/sqli.txt"
              # Path of file containing sqli regex rules
              self.REGEX_FILE = "/etc/securetea/log_monitor/server_log/regex/sqli.txt"
  
          # Load sqli payloads
          self.payloads = utils.open_file(self.PAYLOAD_FILE)
          # Load sqli regex rules
          self.regex = utils.open_file(self.REGEX_FILE)
  
          # Logged IP list
          self.logged_IP = list()
  
          # Initialize OSINT object
          self.osint_obj = OSINT(debug=debug)
function_tokens: def __init__ ( self , debug = False , test = False ) : # Initialize logger self . logger = ServerLogger ( __name__ , debug = debug ) if test : # Path of file containing sqli regex rules self . REGEX_FILE = "securetea/lib/log_monitor/server_log/rules/regex/sqli.txt" # Path of file containing sqli payloads self . PAYLOAD_FILE = "securetea/lib/log_monitor/server_log/rules/payloads/sqli.txt" else : # Path of file containing sqli payloads self . PAYLOAD_FILE = "/etc/securetea/log_monitor/server_log/payloads/sqli.txt" # Path of file containing sqli regex rules self . REGEX_FILE = "/etc/securetea/log_monitor/server_log/regex/sqli.txt" # Load sqli payloads self . payloads = utils . open_file ( self . PAYLOAD_FILE ) # Load sqli regex rules self . regex = utils . open_file ( self . REGEX_FILE ) # Logged IP list self . logged_IP = list ( ) # Initialize OSINT object self . osint_obj = OSINT ( debug = debug )