Ejemplo n.º 1
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)
Ejemplo n.º 2
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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
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)
Ejemplo n.º 5
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