Andres Riancho <andres.rian...@gmail.com> wrote: > > I've attached a patch which adds black- and whitelist functionality to > > w3af, to > > be able to restrict the scanning. This is a merge of my own code and Zach > > Jansen's code, which he posted to the list on July 7th and which I didn't > > see > > before I started coding... If you'd be so kind to review and test this, I > > would > > be glad. The tests I did seemed to work. > > I'll test it later tonight and I'll let you know if I commit it to the > trunk or not.
Ok, take your time. Please note also the things Zach wrote about the documentation, I think he's right. > > My code (hopefully) improves his by adding support for more than one regex > > and > > also the ability to switch to wildcard mode, which is easier to type but > > less > > powerful. The first improvement comes with a problem though: As Python > > interprets commas as list item separators, you currently can't use commas in > > your regex. Maybe someone has an idea on how to solve this elegantly. > > \, ? That's what I tried first of course, and IIRC it ended up double enquoted. But I have to check again to see where the problem is. > > There's still the problem remaining that this patch will "break" some of > > the passive discovery plugins as Zach alredy wrote, like the ones using > > Archive.org or Google. Before I go and implement it, I wanted to discuss > > what I > > have come up with. I can think of two options at the moment: > > > > 1. Add a static list to the whitelisting code with all the URLs we do not > > want > > to restrict. Not a good solution IMHO, as the users' decision gets > > overriden > > without their knowledge. Maybe they really want to restrict requests to > > Google. > > If that's the case, they shouldn't be enabling the "google" plugin, right? =) That was Zach's point too, and think you may be right. People using the Google etc. plugins should know what they're doing. > > 2. Add an "override whitelist" config item to all plugins affected. Allow > > the > > user to decide if this plugin should be allowed to bypass the whitelist. > > This > > would save the user the hassle to add a whitelisting to the config, as he > > only > > has to set a tick. > > And this should be a plugin level config or an HTTP level config? I'd do it as a plugin config. But if we agree on the users being smart enough to not use the passive discovery plugins if they don't want requests to go Google and the like, we might just as well mention the implications in the documentation of the global black- and whitelist, as Zach proposed. -- The Plague: You wanted to know who I am, Zero Cool? Well, let me explain the New World Order. Governments and corporations need people like you and me. We are Samurai... the Keyboard Cowboys... and all those other people who have no idea what's going on are the cattle... Moooo. (Hackers) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ W3af-develop mailing list W3af-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-develop