Add optional Kali attacker VM and DHCP for the lab bridge
lab.sh kali install|up|down|reset|status extracts the official Kali QEMU image once, keeps it as a read-only base with a throwaway overlay, and boots two NICs: the lab bridge (for the exercise) and user networking (so apt works without opening the isolation policy). DC01 now serves DHCP on 10.10.10.100-200 with DNS and domain options but no router: devices on the bridge configure themselves while the lab stays isolated. A reservation pins 10.10.10.101 to the Kali MAC. Also fixed backend_stop, which still called the pre-refactor WinRM helper and fell back to killing the VMs.
This commit is contained in:
@@ -82,6 +82,22 @@ Sans accès au serveur git sur l'hôte Proxmox, construisez une archive autonome
|
||||
scp dist/norbourg-proxmox.tar.gz root@pve:/root/
|
||||
```
|
||||
|
||||
## Machine d'attaque (Kali, optionnel)
|
||||
|
||||
La plateforme `qemu` peut installer l'image QEMU officielle de Kali, avec tous les outils de
|
||||
l'atelier :
|
||||
|
||||
```bash
|
||||
./lab.sh kali install # télécharge ~4 Go, extrait, prépare une couche jetable
|
||||
./lab.sh kali up # démarre (VNC 127.0.0.1:5909, SSH 127.0.0.1:2222)
|
||||
./lab.sh kali reset # repart de l'image propre
|
||||
./lab.sh kali down
|
||||
```
|
||||
|
||||
Identifiants par défaut : `kali` / `kali`. La VM a deux cartes : le pont du laboratoire
|
||||
(adresse fournie par le DHCP de DC01) et un réseau utilisateur qui permet `apt` sans ouvrir de
|
||||
passage vers le réseau du bureau.
|
||||
|
||||
## Commandes
|
||||
|
||||
| Commande | Effet |
|
||||
|
||||
Reference in New Issue
Block a user