Re: [W3af-develop] [SPAM] celery issues

2015-04-22 Thread Andres Riancho
https://github.com/andresriancho/w3af/blob/master/w3af/core/data/kb/kb_observer.py https://github.com/andresriancho/w3af/blob/master/w3af/core/data/kb/knowledge_base.py#L513 On Wed, Apr 22, 2015 at 1:08 PM, Electric Mind wrote: > Hi, Andres! > > Check the knowledge base hooks, I would rather use

Re: [W3af-develop] [SPAM] celery issues

2015-04-03 Thread Andres Riancho
Well, yeah, that might be a problem. I recommend: * You should use different processes (prefork/processes should be ok) * Make sure ALL your w3af imports are done INSIDE the celery task. So, this won't work: from w3af import something class Scan(Task): def run(...): something() Bu

Re: [W3af-develop] [SPAM] celery issues

2015-03-25 Thread Andres Riancho
Electric Mind, Please read inline, On Wed, Mar 25, 2015 at 3:49 PM, Electric Mind wrote: > Hello everyone! > > I’d like to start my w3af instances inside of the celery. > Code example is below. What is the best practice for doing that ? First I would recommend you configure celery to: * Pr

[W3af-develop] [SPAM] celery issues

2015-03-25 Thread Electric Mind
Hello everyone! I’d like to start my w3af instances inside of the celery. Code example is below. What is the best practice for doing that ? Regards! scanner.py - # -*- coding: utf-8 -*- # !/usr/bin/env python from __future__ import absolute_import from multiprocessing import cpu_count fro