Phase 8: baseline snapshot and reset; validated attack path
snapshot freezes each golden disk into images/base/ and boots a thin overlay; reset recreates the overlay in about a second. Shutdown now asks the guest over WinRM because ACPI powerdown is ignored by Server 2022. dc01-post: grant GenericAll with dsacls (the .NET ACL API reported success but never persisted the ACE) and set MinPasswordAge to zero, without which the ACL reset fails. Attack path validated end to end against the live lab: web -> SMB creds -> AS-REP -> Kerberoast -> WinRM -> GenericAll reset -> DCSync.
This commit is contained in:
@@ -114,6 +114,10 @@ def main() -> int:
|
||||
# runs under the Task Scheduler service and survives the disconnect,
|
||||
# which matters for anything that reboots the guest.
|
||||
ps(session, f"Remove-Item -Force -ErrorAction SilentlyContinue '{done}'")
|
||||
# A task left over from an interrupted run stays in "Running" and
|
||||
# blocks the next one; clear it first.
|
||||
ps(session, "schtasks.exe /End /TN NorbourgStage 2>$null | Out-Null; "
|
||||
"schtasks.exe /Delete /TN NorbourgStage /F 2>$null | Out-Null")
|
||||
task = (
|
||||
'$tr = \'powershell.exe -NoProfile -ExecutionPolicy Bypass -File "'
|
||||
+ remote
|
||||
|
||||
Reference in New Issue
Block a user