--- /home/Kevin/Tools/w3af.orig/core/controllers/w3afCore.py	2008-09-20 04:59:17.000000000 +0200
+++ w3afCore.py	2008-12-09 16:20:02.000000000 +0100
@@ -399,6 +399,10 @@
                 
                 self._fuzzableRequestList = self._discoverAndBF()
                     
+                #Export all fuzzableRequests
+                if cf.cf.getData('exportFuzzableRequests') != '':
+                  self.exportFuzzableRequests()
+                    
                 if len( self._fuzzableRequestList ) == 0:
                     om.out.information('No URLs found by discovery.')
                 else:
@@ -1105,6 +1109,17 @@
         res += '\nAuthor: Andres Riancho and the w3af team.'
         return res
     
+    def exportFuzzableRequests( self ):
+      filename = cf.cf.getData('exportFuzzableRequests')
+      try:
+        file = open(filename, 'w')
+        file.write('HTTP-METHOD,URI,POSTDATA\n')
+        for fuzzRequest in self._fuzzableRequestList:
+          file.write(fuzzRequest.export() + '\n')
+        file.close()
+      except Exception, e:
+        print 'An exception was raised while trying to write to the output file:', e 
+
 # """"Singleton""""
 wCore = w3afCore()
 
