proxmox: one turnkey Kali VM per participant

Deploy N attacker VMs alongside the domain lab and hand each colleague a
console URL, with nothing to install or configure on their side.

- import the Kali image once, keep it as a template, clone per seat
- deterministic MAC + DHCP reservation on DC01, so addresses are stable
- configure through the QEMU guest agent: hostname, wordlist from the
  tool ISO, sshd, then verify network and DNS
- add the `users` command: a PVEVMUser account scoped to one VM plus the
  noVNC URL and generated password
- check: 7z/pveum presence, address range, RAM budget for the clones
- destroy cleans up the clones and the template

The documented path no longer depends on bloodyAD: the password reset uses
impacket-changepasswd (already installed) and ACL inspection uses nxc's
daclread module, both verified against the live lab.
This commit is contained in:
2026-10-24 14:57:38 -04:00
parent dcb64ac65e
commit ef6fe18333
9 changed files with 573 additions and 56 deletions
+6 -2
View File
@@ -32,12 +32,15 @@ Commands:
status VM table
vnc open a console on a VM
doctor end-to-end health check
kali install / start / stop the optional Kali attacker VM
kali install / start / stop the attacker VM(s)
answers print the instructor walkthrough
destroy remove the VMs and generated artifacts
EOF
case $PLATFORM in
proxmox) printf ' peers generate WireGuard configs for participants\n' ;;
proxmox)
printf ' users create a Proxmox account + console URL per participant\n'
printf ' peers generate WireGuard configs for participants\n'
;;
esac
}
@@ -100,6 +103,7 @@ case $cmd in
reset) cmd_reset "$@" ;;
doctor) cmd_doctor "$@" ;;
kali) cmd_kali "$@" ;;
users) cmd_users "$@" ;;
answers) cmd_answers "$@" ;;
destroy) cmd_destroy "$@" ;;
peers) cmd_peers "$@" ;;