Commit Graph
5 Commits
Author SHA1 Message Date
quoije 645adea875 Provisioning fixes: auth-based readiness, domain join guards, site push
- wait for WinRM with an authenticated call, not a TCP probe: the port opens
  before the service can authenticate
- skip promotion/join when the machine is already there, so provision is
  idempotent
- probe the domain with System.DirectoryServices: Get-ADDomain needs RSAT,
  which a member server does not have
- passwords must not contain the account name (Legault2024! is rejected)
- Web-Dir-Browsing is the real feature name
- push the site over SMB from C$: WinRM caps the command line at 8 KB
2026-10-21 20:02:43 -04:00
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 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