Ir al contenido

Quick Reference Sheet: Lab Management

Summary of commands to start and stop the installed tools.

0views

Command summary to start and stop the installed tools.

DVWA runs on the standard web service. It normally starts automatically when the PC turns on, but if it fails:

Check status:

Ventana de terminal
sudo systemctl status apache2
sudo systemctl status mysql

Start services:

Ventana de terminal
sudo systemctl start mysql
sudo systemctl start apache2

Access: http://localhost/dvwa/ (or our IP) Login: admin / password

Juice Shop doesn't start automatically. We have to start it manually every time we want to use it.

Command to start:

Ventana de terminal
cd /var/www/html/juice-shop
sudo -u www-data npm start

(We won't close the terminal. If we close it, the web app shuts down).

Stop command: We will press Ctrl + C in the terminal.

Access: http://localhost:3000 (or our IP:3000)

It is fully managed through the VirtualBox graphical interface.

We will start: “Start” button in VirtualBox. We will stop: Shut down the virtual machine from its internal menu.

If we ever have "Access denied" issues, we will remember these commands to reset users.

To access: sudo mysql

Reset DVWA user:

GRANT ALL PRIVILEGES ON dvwa.* TO 'dvwa_user'@'localhost';
FLUSH PRIVILEGES;

Reset Platform user (Local and Remote):

GRANT ALL PRIVILEGES ON plataforma_videojocs.* TO 'plataforma_user'@'localhost';
GRANT ALL PRIVILEGES ON plataforma_videojocs.* TO 'plataforma_user'@'%';
FLUSH PRIVILEGES;