Guys, Just wanted to let you know that since a couple of weeks, w3af now uses objects to represent URLs. This doesn't sound like a big deal, but it actually is. In the past, we stored URLs in strings, and each time we needed something from the URL we performed something like this:
domain = urlParser.getDomain( url ) path = urlParser.getPath( url ) Which internally parsed the URL twice (it's actually a rather expensive procedure to be doing thousands of times for each URL). With the new object, it's now possible to do this: domain = url.getDomain() path = url.getPath() Which will query those values from attributes in the url_object, and the URL will only be parsed when the object is created. On top of that, we've worked some magic with @decorators and @staticmethods in order to avoid multiple urlunparse calls to the same object. I think you'll enjoy the code :) https://sourceforge.net/apps/trac/w3af/browser/trunk/core/data/parsers/urlParser.py If you have any comments, thoughts, improvements, etc. Please let me know! Regards, -- Andrés Riancho Director of Web Security at Rapid7 LLC Founder at Bonsai Information Security Project Leader at w3af ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ W3af-develop mailing list W3af-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-develop