Beispiel #1
0
 def verify_module_tags(self,module):
     run_it = True
     if len(self.USER_MODULE_TAGS) > 0 or self._list_tags:
         run_it = False
         module_tags= module.get_tags()
         for mt in module_tags:
             if self._list_tags:
                 if mt not in self.AVAILABLE_TAGS: self.AVAILABLE_TAGS.append(mt)
             elif mt in  self.USER_MODULE_TAGS:
                 run_it = True
     return run_it
Beispiel #2
0
 def verify_module_tags(self, module):
     run_it = True
     if len(self.USER_MODULE_TAGS) > 0 or self._list_tags:
         run_it = False
         module_tags= module.get_tags()
         for mt in module_tags:
             if self._list_tags:
                 if mt not in self.AVAILABLE_TAGS: self.AVAILABLE_TAGS.append(mt)
             elif mt in  self.USER_MODULE_TAGS:
                 run_it = True
     return run_it
Beispiel #3
0
def verify_module_tags(module):
    run_it = True
    if len(USER_MODULE_TAGS) > 0 or _list_tags:
        run_it = False
        module_tags= module.get_tags()
        for mt in module_tags:
            if _list_tags:
                if mt not in AVAILABLE_TAGS: AVAILABLE_TAGS.append(mt)
            elif mt in  USER_MODULE_TAGS:
                run_it = True
    return run_it
Beispiel #4
0
def verify_module_tags(module):
    run_it = True
    if len(USER_MODULE_TAGS) > 0 or _list_tags:
        run_it = False
        module_tags = module.get_tags()
        for mt in module_tags:
            if _list_tags:
                if mt not in AVAILABLE_TAGS: AVAILABLE_TAGS.append(mt)
            elif mt in USER_MODULE_TAGS:
                run_it = True
    return run_it
Beispiel #5
0
 def verify_module_tags(self, module):
     run_it = True
     module_tags, metadata_tags = module.get_tags()
     if len(metadata_tags) > 0:
         logger().log("[*] Metadata tags: {}".format(metadata_tags))
     if len(self.USER_MODULE_TAGS) > 0 or self._list_tags:
         run_it = False
         for mt in module_tags:
             if self._list_tags:
                 if mt not in self.AVAILABLE_TAGS:
                     self.AVAILABLE_TAGS.append(mt)
             elif mt in self.USER_MODULE_TAGS:
                 run_it = True
     return run_it