Open skyluke70 opened 4 years ago
without laboratory the book is nothing i'll write to amazon
I had the same error too, in fact python netifaces is not installed with the command apt-get install python-netifaces, it's installed with pip install python-netifaces. As you can see in this link ( https://howtoinstall.co/en/ubuntu/utopic/python-netifaces ) this command was supported in ubuntu 14.0.1 but now it isn't. I also saw this git hub repository was updated for the last time 4 years ago, I really don't know how a book that they are selling today can be based on a 4 year old repository wich has not been updated. I don't even imagine what a mess would be for me to update manually all these obsolete commands...
I was able to get the docker containers running and the UI running. I noticed that the w4sp_webapp.py is using python 2.x. I installed the latest distribution of kali linux which doesn't install python 2.x. I tried to install python 2.7 on the latest kali but could not. I looked at the book and page 34 says use version 2016.2 so i installed that.
Here are the steps i used to get the lab running:
I have attached a few screenshots of the UI
Hopefully there are no typos. Let me know if you have any questions Happy hacking Dockerfile.base.txt Dockerfile.victims.txt
@rickjd Great! This works. A slight change though: in the base and victims Dockerfiles you've attached, the debian repo links are missing a portion and that halts the setup. The correct links for the wget commands are: base/Dockerfile - http://ftp.br.debian.org/debian/pool/main/n/netifaces/python-netifaces_0.10.4-1+b1_amd64.deb victims/Dockerfile - http://ftp.br.debian.org/debian/pool/main/s/scapy/python-scapy_2.4.0-2_all.deb
Thanks.
@k-ekanem I am unable to download the correct wget commands. Can you attach them here? Thanks.
@rickjd These are the files with the links updated. Line 28 in Dockerfile.base.txt and line 5 in Dockerfile.victims.txt
Hi I'm trying to install w4sp-lab inside a virtual machine of Kali Linux 2016.2 x64 as the book recommends in 2022. I've noticed that /etc/apt/sources.list is empty other than the virtual cd medium used for installing:
w4sp-lab@w4sp-lab:/etc/apt$ cat sources.list
# deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free
#deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free
I'll try the hints on transitioning to Kali rolling from this blog post: https://www.kali.org/blog/kali-linux-2016-1-release/ but does anybody have an idea why sources.list is empty?
Thanks!
when i prove to install w4sp-lab with
sudo python w4sp-webap.py
I receive this error ~/Downloads/w4sp-lab-master$ sudo python w4sp_webapp.py Requirement already satisfied: netifaces in /usr/lib/python3/dist-packages (0.10.9) Reading package lists... Done Building dependency tree
import w4sp
File "/home/sharky/Downloads/w4sp-lab-master/w4sp.py", line 1, in
from w4sp_app import *
File "/home/sharky/Downloads/w4sp-lab-master/w4sp_app/init.py", line 1, in
from container import container,ns_root,c
File "/home/sharky/Downloads/w4sp-lab-master/w4sp_app/container.py", line 22, in
subprocess.check_call(['apt-get', 'install', 'python-netifaces'])
File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
and if i prove to install python netifaces
sudo apt install python-netifaces
Reading package lists... Done
Building dependency tree
Reading state information... Done E: Unable to locate package python-netifaces Traceback (most recent call last): File "w4sp_webapp.py", line 8, in
Reading state information... Done E: Unable to locate package python-netifaces
i can't install lab for esemple on the book can you help me? thx