コード例 #1
0
 def TrafficLogging(self, arg1, arg2, arg3, arg4, arg5, table):
     if (table in {'TLSProxy'}):
         ProxyDB = DBConnector(table)
         ProxyDB.Connect()
         ProxyDB.StandardInput(arg1, arg2, arg3, arg4, arg5)
     elif (table in {'PIHosts'}):
         ProxyDB = DBConnector(table)
         ProxyDB.Connect()
         ProxyDB.InfectedInput(arg1, arg2, arg3, arg4, arg5)
コード例 #2
0
ファイル: ip_proxy.py プロジェクト: naderrais/DNX-FWALL-CMD
    def TrafficLogging(self, table, timestamp, logging_options):
        ProxyDB = DBConnector(table)
        ProxyDB.Connect()
        if (table in {'ipproxy'}):
            ProxyDB.IPInput(timestamp, logging_options)

            if (self.syslog_enabled):
                self.AlertSyslog(logging_options)
        elif (table in {'infectedclients'}):
            ProxyDB.InfectedInput(timestamp, logging_options)

        ProxyDB.Disconnect()