Exemplo n.º 1
0
    def Logging(self, timestamp, logging_options):
        ProxyDB = DBConnector(table='ips')
        ProxyDB.Connect()
        ProxyDB.IPSInput(timestamp, logging_options)
        ProxyDB.Disconnect()

        if (self.syslog_enabled):
            self.AlertSyslog(logging_options)
Exemplo n.º 2
0
 def Logging(self, src_ip, protocol, attack_type, action, timestamp):
     ProxyDB = DBConnector(table='IPS')
     ProxyDB.Connect()
     ProxyDB.IPSInput(src_ip, protocol, attack_type, action, timestamp)