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:
@@ -26,6 +26,11 @@ cmd_destroy() {
|
||||
info "kali stopped; base image kept ($(du -h "$(_kali_base)" | cut -f1))"
|
||||
fi
|
||||
|
||||
# Platforms that manage extra VMs (participant Kali clones) clean up here.
|
||||
if declare -F platform_destroy_extra >/dev/null; then
|
||||
platform_destroy_extra
|
||||
fi
|
||||
|
||||
step "generated artifacts"
|
||||
rm -rf "$LAB_ROOT/seeds" "$LAB_ROOT/run" "$LAB_ROOT/provision"
|
||||
ok "seed ISOs, runtime state and provisioning scratch removed"
|
||||
@@ -40,3 +45,6 @@ cmd_peers() { planned peers; }
|
||||
|
||||
# Overridden by the qemu platform, which ships the Kali image helper.
|
||||
cmd_kali() { planned kali; }
|
||||
|
||||
# Participant accounts are a Proxmox concern (console access per VM).
|
||||
cmd_users() { planned users; }
|
||||
|
||||
@@ -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 "$@" ;;
|
||||
|
||||
Reference in New Issue
Block a user