Often I find myself running the discovery phase and deciding I've found enough attack points. If I then try to ctrl-c the process to move on with the attack I get output to the console and then this error:
An exception was raised while trying to write to the output file: I/O operation on closed file
w3af>>> plugins
w3af/plugins>>> audit
Failed to get an instance of "dav". Original exception: "Failed to create shelve file.".Traceback for this error: Traceback (most recent call last):
File "/Users/sean/Tools/w3af/core/controllers/misc/factory.py", line 60, in factory
res = apply(aClass, args)
File "/Users/sean/Tools/w3af/plugins/audit/dav.py", line 55, in __init__
self._already_tested_dirs = disk_list()
File "/Users/sean/Tools/w3af/core/data/db/temp_persist.py", line 115, in __init__
self._temp_shelve = temp_shelve()
File "/Users/sean/Tools/w3af/core/data/db/temp_persist.py", line 74, in __init__
raise Exception('Failed to create shelve file.')
Exception: Failed to create shelve file.
At this point the audit/exploit menus are unusable so I can just exit
w3af/plugins>>> exit
w3af/plugins>>> An exception was raised while trying to write to the output file: I/O operation on closed file
I have it set out to output to a html file, which it does successfully.
I'm on OS X Leopard and using Python 2.5.1
I added some code to be able to debug this problem if it happens to you again.
Please "svn up" to get that code.
This bug was already fixed in a previous commit, please perform a "svn up" and try again.