Skip to content

About

A security focused docker container with VNC to test the OWASP Juice Shop.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

dev-docker

A security focused docker container with VNC to test the OWASP Juice Shop.

Build

After changing into the dev-docker folder run:

docker build .

Run

Once the build is finished run:

docker compose up -d

Configure

By default there is no password for root or your user, in order to add a password you'll need to use docker exec -it. Once you have a password you need to add the user to the sudoers file.

  • root password: docker exec -it -u root pentest passwd root
  • pentester password: docker exec -it -u root pentest passwd pentester
  • Add user to sudoers file from root, this assumes the user is still pentester: adduser pentester sudo

The easiest way to verify VNC is working is to enter the docker container (pentest) as root, switch user into the specified Dockerfile user (pentester), then run the start-vnc.sh command.

Example:

  • docker exec -it -u root pentest bash
  • su pentester

Once inside the container as the user run 'start-vnc.sh' which has already been copied to /usr/local/bin so it can be ran without bash.

start-vnc.sh

image

Connect with Your VNC Viewer

From Windows the VNC server can be connected with your preferred VNC Viewer @ localhost:5901:

image

Enter the password you set when you configured the VNC server. image

Test!

Test to see if you can use sudo with your user in the VNC session, if you can't you may need to logout of the user and re-login. One way to do this is to exit from the VNC connection, then kill the VNC server session.

docker exec -it -u root pentest bash su pentester tightvncserver -kill :1

Then run start-vnc.sh again and test. start-vnc.sh

Open a terminal to see what your IP is: ip a

Run netdiscover to see what the Juice Shop IP is, change your IP accordingly: sudo netdiscover -i eth0 -r 172.23.0.0/16

Test to see if you can access Juice Shop: curl 172.23.0.2:3000

Juice Shop will be on port 3000. image

Have Fun!

About

A security focused docker container with VNC to test the OWASP Juice Shop.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages