def __init__(self, isThread=1):
     TaskTool.__init__(self, isThread)
     # DEBUG
     self.logger = initLog('/root/log/baozhang/logs/sniffertask.log', 1,
                           False, 'sniffertask')
     self.sqlTool = Sqldatatask.getObject()  # 设置线程数
     # 获取nmap的参数
     self.sniffer = sniffertool.SniffrtTool(logger=self.logger)
     self.config = config.Config
Exemple #2
0
    def __init__(self,isThread=1):
        TaskTool.__init__(self,isThread)
        self.logger = initLog('logs/sniffertask.log', 2, True,'sniffertask')

        self.sniffer= sniffertool.SniffrtTool(logger=self.logger)
Exemple #3
0
 def __init__(self, isThread=1):
     TaskTool.__init__(self, isThread)
     self.logger = initLog('logs/sniffertask.log', 2, True, 'sniffertask')
     self.sqlTool = Sqldatatask.getObject()
     self.sniffer = sniffertool.SniffrtTool(logger=self.logger)
     self.config = config.Config
Exemple #4
0
 def __init__(self, isThread=1):
     TaskTool.__init__(self, isThread)
     self.sniffer = sniffertool.SniffrtTool()