Carlos,

    Point to you my friend, after our conversations I started to use mock
much more frequently in the w3af code base. I haven't really used it yet in
the way you wanted me to (mock http responses) but maybe one day... :)

    After some questions @ pyar's mailing list, I chose to use the mock [0]
module, which is now a separate module but will be part of py3k. If you're
interested in seeing what I'm doing with it, just: "find . -name '*.py' |
xargs grep 'from mock'" in the threading2 branch. To be honest, I'm
starting to love this library: example code [1]

[0] http://www.voidspace.org.uk/python/mock/
[1]
https://sourceforge.net/apps/trac/w3af/browser/branches/threading2/plugins/tests/crawl/test_web_diff.py

Regards,

On Thu, Oct 25, 2012 at 8:41 PM, Carlos Pantelides <
carlos_panteli...@yahoo.com> wrote:

> luke:
>
> why do you need a "real" site? just build your own lab, don't be lazy. you
> can even replace a full fledged server with a few scripts that mimicks
> cors' behavior
>
> as a matter of fact, and continuing with an offline conversation with
> Andres, I didn't convince him yet, in order to test almost any module, you
> can mock the answers, without actually connecting to any real server
>
> take a look at plugins/grep/symfony.py, kind of nasty code, it was done
> before I started to defend this idea.
>
> Carlos Pantelides
>
> @dev4sec
>
> http://seguridad-agile.blogspot.com/
>
> --- On *Thu, 10/25/12, luke <lukesun...@gmail.com>* wrote:
>
>
> From: luke <lukesun...@gmail.com>
> Subject: [W3af-users] how did you test the module for CORS and Preflight
> To: w3af-users@lists.sourceforge.net
> Date: Thursday, October 25, 2012, 6:16 AM
>
>
> Hi guys
>  I am testing w3af module for detecting CORS and Preflight, but as far as
> I know , there is few website that support these new feature , can someone
> recommend some website that support these feature . your reply is really
> appericate.
>
> --
> FIT1-213
> Department of Computer Science
> Tsinghua University, Beijing, 100084
> http://about.me/anakin/bio
>
> -----Inline Attachment Follows-----
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> W3af-users mailing list
> W3af-users@lists.sourceforge.net<http://mc/compose?to=W3af-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/w3af-users
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> W3af-users mailing list
> W3af-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/w3af-users
>
>


-- 
Andrés Riancho
Project Leader at w3af - http://w3af.org/
Web Application Attack and Audit Framework
Twitter: @w3af
GPG: 0x93C344F3
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
W3af-users mailing list
W3af-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-users

Reply via email to