Commit Graph
7 Commits
Author SHA1 Message Date
quoije bb8a6a6eb0 Run role scripts as a scheduled task; add workshop docs
A Start-Process child dies with the WinRM shell, so the promotion never
completed. Role scripts now run under the Task Scheduler as SYSTEM, which
survives the disconnect and the reboot. Uploads retry on transient auth
errors while a guest is busy installing features.

Docs: participant guide, instructor runbook, blue-team debrief, and an
instructor wordlist sized for a two-minute crack.
2026-10-21 19:45:38 -04:00
quoije 279f4cc547 Phase 5: AD role scripts, WinRM provisioning and lab wordlist
dc01 promotes the forest then runs a startup-scheduled post stage for OUs,
users, groups, the SPN on svc_backup, pre-auth disabled on j.contractor,
GenericAll over t.smith, the www A record, flags and advanced audit policy.
fs01 installs IIS, shares the web root's public/ as \\FS01\Public and joins.
ws01 joins, then adds WS Admins to local Administrators.

provision uploads over WinRM, starts scripts detached, waits on a .done
marker and survives the promotion reboot.
2026-10-21 19:29:51 -04:00
quoije a38acd3946 Fix MAC generator (5 octets) and silence the discoverability flyout
QEMU rejects a five-byte ethernet address, so every VM would have failed
to start with 'invalid ethernet address'. Caught by booting the installer
against a scratch disk with user-mode networking: the unattended file was
picked up, image index 2 copied, and once=d handed off to the disk.
2026-10-21 19:00:46 -04:00
quoije c66b5641b6 Phase 3: unattended install, seed ISOs and VM lifecycle
autounattend template (q35/AHCI/e1000, no virtio injection), per-VM seed
ISOs with a bootstrap that configures the static IP, enables WinRM/RDP and
chains into the role script. build --dry-run, up/down/status/vnc verbs.

Static addressing happens in PowerShell rather than in the unattend file:
Microsoft-Windows-TCPIP matches adapters by connection name and fails
silently when the name differs.
2026-10-21 18:46:31 -04:00
quoije 5a8f988f30 Phase 7 (part 1): assemble the archived site and apply the seed layer
prepare_site.py rebuilds web/site/ from site-src/: rebuilt home page,
repaired images, Wayback links resolved to local files or neutralised,
hit counter removed, crawler metadata dropped, home page breadcrumb.
Link check fails the build on dangling references.

Seed layer adds public/IT-inventaire.txt and robots.txt.
2026-10-21 18:43:42 -04:00
quoije 32b4cebf92 Phase 2: isolated br-lab, bridge helper access and firewalld policy
One-time root script: NetworkManager bridge portless on 10.10.10.230/24,
allow br-lab in /etc/qemu/bridge.conf, ip_forward via sysctl.d, and a
firewalld zone + policy that permits participant->lab on AD/web/WinRM
ports only. Reverse direction falls through to the default drop.

Includes --dry-run, --verify and --remove.
2026-10-21 18:35:29 -04:00
quoije fb06ee5a52 Phase 1: scaffold lab.sh, config and preflight checks
Move the archived 2002 site into site-src/ so the lab README can take the
repo root. Add lab.conf, the lab.sh dispatcher, a qemu backend and the
check/init verbs. No VM is created yet.
2026-10-21 18:34:22 -04:00