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:
So, open /usr/share/w3af/core/controllers/core_helpers/fingerprint_404.py
Delete line 184:
Add the following two lines instead:
four_oh_data = FourOhFourResponseFactory(j)
**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.
1- Download VMware Player latest version from:
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:
4- When done, run VMWare from applications menu it should say some libraries are missing and it needs to install them.
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.