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)
def TrafficLogging(self, table, timestamp, logging_options): ProxyDB = DBConnector(table) ProxyDB.Connect() if (table in {'dnsproxy'}): ProxyDB.StandardInput(timestamp, logging_options) if (self.syslog_enabled): self.AlertSyslog(logging_options) elif (table in {'infectedclients'}): ProxyDB.InfectedInput(timestamp, logging_options) ProxyDB.Disconnect()