Esempio n. 1
0
    def __init__(self, isThread=1, deamon=True):
        TaskTool.__init__(self, isThread, deamon=deamon)

        self.set_deal_num(1)
        self.getlocationtool = getLocationTool.getObject()
        self.config = config.Config
        self.sqlTool = Sqldatatask.getObject()
Esempio n. 2
0
    def __init__(self,isThread=1,deamon=True):
        TaskTool.__init__(self,isThread,deamon=deamon)
        
        self.sqlTool=Sqldatatask.getObject()

        self.config=config.Config
        self.set_deal_num(1)
Esempio n. 3
0
 def __init__(self,isThread=1,deamon=True):
     TaskTool.__init__(self,isThread,deamon=deamon)
     
     self.sqlTool=Sqldatatask.getObject()
     self.connectpool=connectpool.getObject()
     self.portscan=portscantool.Portscantool()
     self.config=config.Config
     self.set_deal_num(5)
Esempio n. 4
0
 def __init__(self, isThread=1, deamon=True):
     TaskTool.__init__(self, isThread, deamon=deamon)
     import Sqldatatask
     self.sqlTool = Sqldatatask.getObject()
     self.connectpool = connectpool.getObject()
     self.portscan = portscantool.Portscantool()
     self.config = config.Config
     self.set_deal_num(5)
Esempio n. 5
0
 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
 def __init__(self,isThread=1,deamon=True):
     TaskTool.__init__(self,isThread,deamon=deamon)
     import Sqldatatask
     self.logger = initLog('logs/portScantask.log', 2, True,'portscantask')
     self.sqlTool=Sqldatatask.getObject()
     self.connectpool=connectpool.getObject()
     self.portscan=portscantool.Portscantool()
     self.config=config.Config
     self.set_deal_num(15)
Esempio n. 7
0
 def __init__(self,isThread=1,deamon=True,islocalwork=config.Config.islocalwork):
     TaskTool.__init__(self,isThread,deamon=deamon)
     
     self.sqlTool=Sqldatatask.getObject()
     
     self.config=config.Config
     self.set_deal_num(1)
     self.islocalwork=islocalwork
     self.uploadwork=uploadtask.getObject()
     self.webconfig=webconfig.WebConfig
Esempio n. 8
0
 def __init__(self, isThread=1, deamon=False):
     TaskTool.__init__(self,isThread,deamon=deamon)
     import Sqldatatask
     self.logger = initLog('/root/log/baozhang/logs/portScantask.log', 2, False,'portscantask')
     self.sqlTool = Sqldatatask.getObject()  #init DBmanager
     #init ConnetcPool's parameters, eg: proxy_address, proxy_name...在webconfig.py中设定 
     self.connectpool = connectpool.getObject()
     # timeout:8, config:xxx, socketclient:None
     self.portscan = portscantool.Portscantool()
     self.config = config.Config
     self.set_deal_num(30)
Esempio n. 9
0
 def __init__(self,isThread=1,deamon=False,islocalwork=config.Config.islocalwork):
     TaskTool.__init__(self,isThread,deamon=deamon)
     
     self.sqlTool=Sqldatatask.getObject()
     self.connectpool=connectpool.getObject()
     self.portscan=portscantool.Portscantool()
     self.config=config.Config
     self.set_deal_num(5)
     self.islocalwork=islocalwork
     from worker import uploadtask
     self.uploadwork=uploadtask.getObject()
     self.webconfig=webconfig.WebConfig
Esempio n. 10
0
    def __init__(self,
                 isThread=1,
                 deamon=True,
                 islocalwork=config.Config.islocalwork):
        TaskTool.__init__(self, isThread, deamon=deamon)

        self.sqlTool = Sqldatatask.getObject()

        self.config = config.Config
        self.set_deal_num(1)
        self.islocalwork = islocalwork
        self.uploadwork = uploadtask.getObject()
        self.webconfig = webconfig.WebConfig
Esempio n. 11
0
 def __init__(self):
     TaskTool.__init__(self)
     HTMLParser.HTMLParser.__init__(self)
     self.connectpool=connectpool.ConnectPool()
Esempio n. 12
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
Esempio n. 13
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)
Esempio n. 14
0
 def __init__(self, isThread=1):
     TaskTool.__init__(self, isThread)
     self.sqlhelp = SQLTool.getObject()
     self.sqlhelp.connectdb()
Esempio n. 15
0
 def __init__(self, isThread=1):
     TaskTool.__init__(self, isThread)
     self.sniffer = SniffrtTool()
Esempio n. 16
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
Esempio n. 17
0
 def __init__(self, isThread=1, deamon=True):
     TaskTool.__init__(self, isThread, deamon=deamon)
     self.sqlTool = Sqldatatask.getObject()  #init DBmanager
     self.config = config.Config
     self.set_deal_num(1)
Esempio n. 18
0
 def __init__(self, isThread=1):
     TaskTool.__init__(self, isThread)
     self.set_deal_num(1)
     self.add_work(['sniffer'])
Esempio n. 19
0
 def __init__(self,isThread=1):
     TaskTool.__init__(self,isThread)
     self.set_deal_num(1)
     self.add_work(['sniffer'])
Esempio n. 20
0
    def __init__(self,isThread=1,deamon=True):
        TaskTool.__init__(self,isThread,deamon=deamon)
        
#         self.portscan=portscantool.Portscantool()
        self.set_deal_num(1)
        self.getlocationtool=getLocationTool.getObject()
Esempio n. 21
0
    def __init__(self,isThread=1,deamon=True):
        TaskTool.__init__(self,isThread,deamon=deamon)
        
#         self.portscan=portscantool.Portscantool()
        self.set_deal_num(1)
        self.getlocationtool=getLocationTool.getObject()
Esempio n. 22
0
	def __init__(self,isThread=1):
		TaskTool.__init__(self,isThread)
		self.sqlhelp=SQLTool.getObject()
		self.sqlhelp.connectdb()
Esempio n. 23
0
	def __init__(self,isThread=0):
		TaskTool.__init__(self,isThread)
		self.connectpool=connectpool.ConnectPool()
Esempio n. 24
0
	def __init__(self,isThread=0):
		TaskTool.__init__(self,isThread)

		self.connectpool=connectpool.ConnectPool()
Esempio n. 25
0
    def __init__(self, isThread=1):
        TaskTool.__init__(self, isThread, deamon=False)

        self.__sqltool = Sqldatatask.getObject()
Esempio n. 26
0
 def __init__(self,isThread=1):
     TaskTool.__init__(self,isThread)
     self.sniffer= SniffrtTool()
Esempio n. 27
0
 def __init__(self):
     TaskTool.__init__(self)
     HTMLParser.HTMLParser.__init__(self)
     self.connectpool = connectpool.ConnectPool()