W3AF Error Fix: HTTPResponse object has no attribute path

Hello,

I was using w3af for one audit and I faced the following error:

Failed to initialize the 404 detection, original exception was: “‘HTTPResponse’ object has no attribute ‘path'”.

While searching for a fix, I noticed it’s a little bit common on Kali users.
I found the fix by this patch provided from the contributors here:

https://github.com/andresriancho/w3af/commit/ea9e7bdc990e5912c0ffd89e7495c66af3bdfaab

So, open /usr/share/w3af/core/controllers/core_helpers/fingerprint_404.py
Delete line 184:
self._404_responses.append(j)
Add the following two lines instead:
four_oh_data = FourOhFourResponseFactory(j)
self._404_responses.append(four_oh_data)

3 thoughts on “W3AF Error Fix: HTTPResponse object has no attribute path”

  1. With every thing that seems to be building within this subject material, many of your opinions are actually quite stimulating. However, I appologize, but I can not subscribe to your entire theory, all be it exciting none the less. It appears to me that your comments are not totally validated and in simple fact you are generally yourself not even completely confident of your point. In any case I did take pleasure in reading through it.

  2. Very good site you have here but I was curious if you knew of any user discussion forums that cover the same topics discussed in this article? I’d really like to be a part of community where I can get advice from other experienced people that share the same interest. If you have any recommendations, please let me know. Appreciate it!

Leave a Reply

Your email address will not be published. Required fields are marked *