Hey Carlos,

On Wed, Jul 6, 2011 at 2:01 PM, Carlos Pantelides <
[email protected]> wrote:

> Hello:
>
> I need to mock an http response in order to apply a plugin/grep. Please
> tell me which plugin is doing that.
>

Which (grep?) plugin is doing what exactly?


>
> More details: I want to craft an http response with some cookies and html
> and test a plugin against it, without actually making any http call.
> Wireshark told me that the current set of tests actually connects to
> www.w3af.com and w3af.sourceforge.net, and I don't want to do that neither
> connect to any other site.
>

For mocking objects in w3af we use a python library called pymock[0], a port
of Java's EasyMock. You may look in the code some examples of how we use it
if you are not familiar with pymock. It'd probably help you on coding your
unit test and mocking the response object.

Javier

[0] http://theblobshop.com/pymock/


>
> Thank you
>
> Carlos Pantelides
>
> -----------------
>
> http://seguridad-agile.blogspot.com/
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> W3af-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/w3af-users
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
W3af-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/w3af-users

Reply via email to