Open slobodansimic opened 4 years ago
If you need to fix it, you can apply the following changes.
Stop all images
docker stop $(docker ps -a -q)
Stop docker
service docker stop
Update port mapping
cd /var/lib/docker/containers/
find . -type f -name hostconfig.json -exec sed -i 's/666/888/g' {} \;
find . -type f -name hostconfig.json -exec sed -i 's/9000/8888/g' {} \;
Start docker
service docker start
Start all images
docker start $(docker ps -a -q)
run containers.sh
~/containers.sh
Vuln App Container | Port |
---|---|
webgoat | 8881 |
juice-shop | 8882 |
dvwa | 8883 |
mutillidae_2 | 8884 |
bwapp2 | 8885 |
dvna | 8886 |
hackazon | 8887 |
hackme-rtov | 8888 |
IMAGE | PORTS | NAMES |
---|---|---|
santosomar/hackme-rtov | 0.0.0.0:8888->80/tcp | hackme-rtov |
santosomar/hackazon | 0.0.0.0:8887->80/tcp | hackazon |
santosomar/dvna | 0.0.0.0:8886->9090/tcp | dvna |
santosomar/bwapp | 3306/tcp, 0.0.0.0:8885->80/tcp | bwapp2 |
santosomar/mutillidae_2 | 3306/tcp, 0.0.0.0:8884->80/tcp | mutillidae_2 |
santosomar/dvwa | 0.0.0.0:8883->80/tcp | dvwa |
santosomar/juice-shop | 0.0.0.0:8882->3000/tcp | juice-shop |
santosomar/webgoat | 0.0.0.0:8881->8080/tcp | webgoat |
Hi,
There is a mismatch between the output of containers.sh and the actual containers' mapping ports.
The following are the WebSploit vulnerable containers and associated exposed ports.