Ir al contenido

Snel overzicht: Labbeheer

Samenvatting van opdrachten om geïnstalleerde tools te starten en te stoppen.

0lecturas

Overzicht van commando's om de geïnstalleerde tools te starten en te stoppen.

DVWA draait op de standaard webservice. Normaal gesproken start het automatisch op wanneer de PC wordt aangezet, maar als het mislukt:

Status controleren:

Ventana de terminal
sudo systemctl status apache2
sudo systemctl status mysql

We starten de services op:

Ventana de terminal
sudo systemctl start mysql
sudo systemctl start apache2

Toegang: http://localhost/dvwa/ (of ons IP-adres) Inlog: admin / password

Juice Shop start niet automatisch op. We moeten het handmatig starten elke keer dat we het willen gebruiken.

Commando om te starten:

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

(We sluiten de terminal niet. Als we deze sluiten, gaat de website uit).

Opdracht om te stoppen: We drukken Ctrl + C in de terminal.

Toegang: http://localhost:3000 (of ons IP:3000)

Het wordt volledig beheerd via de grafische interface van VirtualBox.

We starten: “Start” knop in VirtualBox. We stoppen: We sluiten de virtuele machine af vanuit het interne menu.

Als we ooit problemen hebben met “Toegang geweigerd”, herinneren we ons deze commando's om gebruikers te resetten.

We gaan naar binnen: sudo mysql

DVWA-gebruiker resetten:

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

Platformgebruiker resetten (Lokaal en Remote):

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