当前位置: 首页>>代码示例>>Python>>正文


Python Detector.Detector类代码示例

本文整理汇总了Python中Detector.Detector的典型用法代码示例。如果您正苦于以下问题:Python Detector类的具体用法?Python Detector怎么用?Python Detector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Detector类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self):
     Detector.__init__(self)
     self.STATE_COMPONENT_TRAIN = "COMPONENT_TRAIN"
     self.tag = "keras-"
     self.exampleBuilder = KerasExampleBuilder
     self.matrices = None
     self.arrays = None
开发者ID:jbjorne,项目名称:TEES,代码行数:7,代码来源:KerasDetector.py

示例2: __init__

 def __init__(self, conf, plugin, conn):
     self._conf = conf
     self._plugin = plugin
     self.rules = []
     self.conn = conn
     self.sIdFile = '/etc/ossim/agent/sdee_sid.data'
     Detector.__init__(self, conf, plugin, conn)
开发者ID:cterron,项目名称:OSSIM,代码行数:7,代码来源:ParserSDEE.py

示例3: __init__

 def __init__(self, conf, plugin, conn,idm=False):
     self._conf = conf
     self._plugin = plugin
     self.rules = []      # list of RuleMatch objects
     self.conn = conn
     Detector.__init__(self, conf, plugin, conn)
     self.__myDataBaseCursor = None
     self.__objDBConn = None        
     self.__tries = 0
     self.stop_processing = False
     self._databasetype = self._plugin.get("config", "source_type")
     self._canrun = True
     self.__idm = idm
     if self._databasetype == "db2" and db2notloaded:
         logger.info("You need python ibm_db module installed. This is not an error if you aren't using an IBM plugin")
         self._canrun = False
     elif self._databasetype == "mysql" and mysqlnotloaded:
         logger.info("You need python mysqldb module installed")
         self._canrun = False
         self.stop()
     elif self._databasetype == "oracle" and oraclenotloaded:
         logger.info("You need python cx_Oracle module installed. This is not an error if you aren't using an Oracle plugin")
         self._canrun = False
     elif self._databasetype == "mssql" and mssqlnotloaded:
         logger.info("You need python pymssql module installed")
         self._canrun = False
开发者ID:DuVale,项目名称:phpzdl,代码行数:26,代码来源:ParserDatabase.py

示例4: __init__

    def __init__(self, conf, plugin, conn,idm=False):
        Detector.__init__(self, conf, plugin, conn)
        self._conf = conf
        self._plugin = plugin
        self.rules = [] # list of RuleMatch objects
        self.conn = conn
        self.__myDataBaseCursor = None
        self.__objDBConn = None        
        self.__tries = 0
        self.stop_processing = False
        self._databasetype = self._plugin.get("config", "source_type")
        self._canrun = True
        self.__idm = True if self._plugin.get("config", "idm") == "true" else False
        self.loginfo(Lazyformat("IDM is {}", "enabled" if self.__idm else "disabled"))

        if self._databasetype == "db2" and db2notloaded:
            self.loginfo("You need python ibm_db module installed")
            self._canrun = False
        elif self._databasetype == "mysql" and mysqlnotloaded:
            self.loginfo("You need python mysqldb module installed")
            self._canrun = False
            self.stop()
        elif self._databasetype == "oracle" and oraclenotloaded:
            self.loginfo("You need python cx_Oracle module installed")
            self._canrun = False
        elif self._databasetype == "mssql" and mssqlnotloaded:
            self.loginfo("You need python pymssql module installed")
            self._canrun = False
开发者ID:jpalanco,项目名称:alienvault-ossim,代码行数:28,代码来源:ParserDatabase.py

示例5: __init__

 def __init__(self, conf, plugin, conn, hostname, username, password):
     self.__conf = conf
     self.__plugin = plugin
     self.__rules = []          # list of RuleMatch objects
     self.__conn = conn
     self.__hostname = hostname
     self.__username = username
     self.__password = password.strip()
     self.__section = self.__plugin.get("config", "section")
     self.__last_record_time = ""
     if self.__section == "":
         #search into the command to find the section
         rules = self.__plugin.rules()
         cmd_str = rules['cmd']['cmd']
         for sec in ParserWMI.VALID_SECTIONS:
             if cmd_str.find(sec)>=0:
                 self.__section = sec
                 logger.warning("section doesn't found in [config].Section deduced: %s " % self.__section)
                 break
         if self.__section == "":
             self.__section = "Security"
             logger.warning("section doesn't found in [config].It can't be deduced: Setting it to default value: %s" % self.__section)
         
     self.__pluginID = self.__plugin.get("DEFAULT", "plugin_id")
     self.__stop_processing = False
     self.__sectionExists = False
     Detector.__init__(self, conf, plugin, conn)
开发者ID:DuVale,项目名称:phpzdl,代码行数:27,代码来源:ParserWMI.py

示例6: __init__

 def __init__(self, conf, plugin, conn):
     Detector.__init__(self, conf, plugin, conn)
     self.__conf = conf
     self.__plugin_id = plugin.get("DEFAULT", "plugin_id")
     self.__shutdown_event = threading.Event()
     self.__location = self._plugin.get("config", "location")
     self.__plugin_configuration = plugin
开发者ID:jackpf,项目名称:ossim-arc,代码行数:7,代码来源:ParserJson.py

示例7: __init__

 def __init__(self, conf, plugin, conn):
     self._conf = conf        # config.cfg info
     self._plugin = plugin    # plugins/X.cfg info
     self.rules = []          # list of RuleMatch objects
     self.conn = conn
     self.stop_processing = False
     Detector.__init__(self, conf, plugin, conn)
开发者ID:jpalanco,项目名称:alienvault-ossim,代码行数:7,代码来源:ParserFtp.py

示例8: __init__

    def __init__(self, conf, plugin, conn):

        self._conf = conf       # main agent config file
        self._plugin = plugin   # plugin config file
        self.conn = conn
        self._prefix = ""

        Detector.__init__(self, conf, plugin, self.conn)
开发者ID:CyberTaoFlow,项目名称:alienvault-ossim,代码行数:8,代码来源:ParserUnifiedSnort.py

示例9: __init__

 def __init__(self, conf, plugin,queue = None):
     self._conf = conf        # config.cfg info
     self._plugin = plugin    # plugins/X.cfg info
     self.rules = []          # list of RuleMatch objects
     self.stop_processing = False
     self.queue = queue
     self.idmConnected = False
     Detector.__init__(self, conf, plugin)
开发者ID:alisle,项目名称:AV-Misc,代码行数:8,代码来源:ParserFtp.py

示例10: __init__

 def __init__(self):
     Detector.__init__(self)
     # Settings
     self.STATE_TOOLCHAIN = "PROCESS"
     self.steps = []
     self.intermediateFilesAtSource = False
     self.compressIntermediateFiles = False
     self.intermediateFileTag = "temp"
开发者ID:jbjorne,项目名称:Tdevel,代码行数:8,代码来源:ToolChain.py

示例11: process

 def process(self,root):
     se = StructureExtractor()
     se.drawFeature(root)
     self.extractor = Extractor(root)
     self.extractor.process()
     #self.crossP = self.extractor.string2sparse(self.htmlnode.attrib['crossP'],self.extractor.totalheight+1)
     Config.init()
     detector = Detector()#Config.nbTLstr)
     detector.detect(root)
     self.toolbox.setDetector(detector)
开发者ID:cheungzq,项目名称:WebParser,代码行数:10,代码来源:visualizer.py

示例12: performAnalyse

 def performAnalyse(self, htmlnode):
     se = StructureExtractor()
     se.drawFeature(htmlnode)
     extractor = Extractor(htmlnode)
     extractor.process()
     detector = Detector()
     detector.detect(htmlnode)
     (tp, fp, fn) = self.calcAccTitleLine(htmlnode)
     cerr = self.calcAccColumn(htmlnode)
     return (tp, fp, fn, cerr)
开发者ID:cheungzq,项目名称:WebParser,代码行数:10,代码来源:Analyser.py

示例13: __init__

 def __init__(self):
     Detector.__init__(self)
     # Settings
     self.STATE_TOOLCHAIN = "PROCESS"
     self.steps = []
     for step in self.getDefaultSteps():
         self.addStep(*step)
     self.intermediateFilesAtSource = False
     self.compressIntermediateFiles = True
     self.intermediateFileTag = "temp"
     self.modelParameterStringName = None
开发者ID:DUT-LiuYang,项目名称:TEES,代码行数:11,代码来源:ToolChain.py

示例14: __init__

 def __init__(self):
     Detector.__init__(self)
     self.triggerDetector = EntityDetector()
     self.edgeDetector = EdgeDetector()
     self.unmergingDetector = UnmergingDetector()
     self.doUnmergingSelfTraining = True #False
     self.modifierDetector = ModifierDetector()
     #self.stEvaluator = Evaluators.BioNLP11GeniaTools
     #self.stWriteScores = False
     self.STATE_COMPONENT_TRAIN = "COMPONENT_TRAIN"
     self.tag = "event-"
开发者ID:ayoshiaki,项目名称:TEES,代码行数:11,代码来源:EventDetector.py

示例15: __init__

 def __init__(self, conf, plugin, conn, hostname=None, username=None, password=None):
     self._conf = conf
     self._plugin = plugin
     self.rules = []
     self.conn = conn
     self.__hostname = hostname
     self.__username = username
     self.__password = password
     if hostname:
         self.sIdFile = '/etc/ossim/agent/sdee_sid_%s.data' % hostname
     else:
         self.sIdFile = '/etc/ossim/agent/sdee_sid.data'
     Detector.__init__(self, conf, plugin, conn)
开发者ID:DuVale,项目名称:phpzdl,代码行数:13,代码来源:ParserSDEE.py


注:本文中的Detector.Detector类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。