Quick Reference Sheet: Lab Management
Summary of commands to start and stop the installed tools.
Command summary to start and stop the installed tools.
1. DVWA (Apache + MySQL)
Sección titulada «1. DVWA (Apache + MySQL)»DVWA runs on the standard web service. It normally starts automatically when the PC turns on, but if it fails:
Check status:
sudo systemctl status apache2sudo systemctl status mysqlStart services:
sudo systemctl start mysqlsudo systemctl start apache2Access: http://localhost/dvwa/ (or our IP)
Login: admin / password
2. OWASP Juice Shop (Node.js)
Sección titulada «2. OWASP Juice Shop (Node.js)»Juice Shop doesn't start automatically. We have to start it manually every time we want to use it.
Command to start:
cd /var/www/html/juice-shopsudo -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)
3. Bee-Box (Virtual Machine)
Sección titulada «3. Bee-Box (Virtual Machine)»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.
4. MySQL (User Management)
Sección titulada «4. MySQL (Gestión de Usuarios)»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;
