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)

Install VMware Workstation Player Pro on Kali 2016 (Rolling)

**Update**: You can find an updated list of patches here: https://aur.archlinux.org/packages/vmware-patch/

VMware Player Workstation Player is free for non-commercial use only.

Steps:
1- Download VMware Player latest version from: https://www.vmware.com/products/player/playerpro-evaluation.html

2- Make the downloaded file as executable by:

chmod +x VMware-Player-12.1.1-3770994.x86_64.bundle

3- Run the installation and continue clicking:

./VMware-Player-12.1.1-3770994.x86_64.bundle

4- When done, run VMWare from applications menu it should say some libraries are missing and it needs to install them.

Vmware Player

Click Install.

5- Finally, in case you faced issue, you can fix by patching the source-code of the library that cause problem. Mainly you can try the following patch for kernel: 4.6.0-kali1-amd64 (Latest kali at the moment of writing this article)[Credit: Here]:

1- Extract /usr/lib/vmware/modules/source/vmmon.tar
2- Modify /vmmon-only/linux/hostif.c
3- Replace “get_user_pages” to “get_user_pages_remote”
4- tar and replace original
5- Extract /usr/lib/vmware/modules/source/vmnet.tar
6- Modify ./vmnet-only/userif.c
7- Replace “get_user_pages” to “get_user_pages_remote”
8- tar and replace original
Now you should be able to compile the modules successfully.
Tested on Kali Linux 2016 with kernel 4.6.