Fix the missing DHCP reservation; scaffold session 2

dc01-post.ps1 now creates the 10.10.10.101 reservation itself (it only
existed in the running lab), and doctor checks it.

session2/ holds the design for the second workshop: LSASS credential theft
with mimikatz, overpass-the-hash and pass-the-ticket, the scheduled-task
plant it needs, the detections to add alongside, and the open question to
prototype first. Nothing is implemented; the live lab is untouched.
This commit is contained in:
2026-10-24 13:46:44 -04:00
parent b9bc0eb079
commit 23f4e1f060
5 changed files with 168 additions and 0 deletions
+2
View File
@@ -122,6 +122,7 @@ $plainAcl = Get-Acl ("AD:\" + (Get-ADUser m.legault).DistinguishedName)
"root=" + (Test-Path C:\flag\root.txt)
"txt=" + ((Get-DnsServerResourceRecord -ZoneName norbourg.lab -Name yourlove -EA SilentlyContinue) -ne $null)
"dhcp=" + ((Get-DhcpServerv4Scope -EA SilentlyContinue) -ne $null)
"kali_res=" + @((Get-DhcpServerv4Reservation -ScopeId 10.10.10.0 -EA SilentlyContinue) | Where-Object { $_.IPAddress -eq "10.10.10.101" }).Count
' 2>/dev/null) || { _d_warn "cannot query DC01 for lab state"; return; }
while IFS='=' read -r key value; do
@@ -143,6 +144,7 @@ $plainAcl = Get-Acl ("AD:\" + (Get-ADUser m.legault).DistinguishedName)
root) [[ $value == True ]] && _d_ok "root.txt on DC01" || _d_fail "root.txt missing" ;;
txt) [[ $value == True ]] && _d_ok "easter egg TXT record" || _d_warn "yourlove TXT record missing" ;;
dhcp) [[ $value == True ]] && _d_ok "DHCP scope present" || _d_fail "DHCP scope missing" ;;
kali_res) [[ $value -ge 1 ]] && _d_ok "DHCP reservation 10.10.10.101" || _d_fail "Kali reservation missing" ;;
esac
done <<< "$out"
}