def __init__(self, ffilter, queue_out): FuzzQueue.__init__(self, queue_out) Thread.__init__(self) self.setName('filter_thread') self.queue_out = queue_out if PYPARSING: element = oneOf("c l w h") digits = "XB0123456789" integer = Word( digits )#.setParseAction( self.__convertIntegers ) elementRef = Group(element + oneOf("= != < > >= <=") + integer) operator = oneOf("and or") definition = elementRef + ZeroOrMore( operator + elementRef) nestedformula = Group(Suppress(Optional(Literal("("))) + definition + Suppress(Optional(Literal(")")))) self.finalformula = nestedformula + ZeroOrMore( operator + nestedformula) elementRef.setParseAction(self.__compute_element) nestedformula.setParseAction(self.__compute_formula) self.finalformula.setParseAction(self.__myreduce) self.res = None self.hideparams = ffilter if "XXX" in self.hideparams['codes']: self.hideparams['codes'].append("0") self.baseline = None
def __init__(self, options, q_out): FuzzQueue.__init__(self, q_out, options.get("max_concurrent") * 5) self.options = options self.processed = 0 self.exit_job = False self.mutex_multi = Lock() self.mutex_stats = Lock() self.queue_out = q_out # Connection pool self.m = None self.freelist = Queue() self.create_pool(options.get("max_concurrent")) th2 = Thread(target=self.__read_multi_stack) th2.setName('__read_multi_stack') th2.start() self.pause = Event() self.pause.set() self._proxies = None if options.get("proxy_list"): self._proxies = self.__get_next_proxy(options.get("proxy_list"))
def __init__(self, routes, queue_out): FuzzQueue.__init__(self, queue_out) self.routes = routes
def __init__(self, genReq, delay, queue_out): FuzzQueue.__init__(self, queue_out) self.delay = delay self.genReq = genReq
def __init__(self, selected_plugins, cache, queue_out): FuzzQueue.__init__(self, queue_out) self.__walking_threads = Queue(20) self.selected_plugins = selected_plugins self.cache = cache
def __init__(self, max_rlevel, stats, queue_out): FuzzQueue.__init__(self, queue_out) self.stats = stats self.max_rlevel = max_rlevel