Hi list,

I see that dir_bruter brute force the same folder more than once. This
redundancy increases if you add other plugins like webSpider.

Regards,


Possible patch:

Index: dir_bruter.py
===================================================================
--- dir_bruter.py       (revision 5824)
+++ dir_bruter.py       (working copy)
@@ -53,6 +53,7 @@
         # Internal variables
         self._fuzzable_requests = []
         self._tested_base_url = False
+        self._already_done = []

     def discover(self, fuzzableRequest ):
         '''
@@ -82,6 +83,9 @@
                 to_test.append( domain_path )

             for base_path in to_test:
+              # Check if the url is a folder and if the url already been
bruteforced
+              if base_path.url_string.endswith('/') and filter(lambda x:
x.url_string==base_path.url_string,self._already_done) == []:
+                self._already_done.append(base_path)
                 # Send the requests using threads:
                 self._run_async(
                             meth=self._bruteforce_directories,
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop

Reply via email to