# Cracking & Spraying

Si no puedes explotarlo, adivínalo.

## 1. Offline Cracking (La GPU es tu amiga)

### Hashcat Cheat Sheet

* **Identificar Hash**: `hash-identifier` o [Hashcat Wiki](https://hashcat.net/wiki/doku.php?id=example_hashes).
* **Comando Base**:

  ```bash
  hashcat -m <Type> -a 0 hashes.txt rockyou.txt
  ```

| Hash Type            | Código (-m) |
| -------------------- | ----------- |
| NTLM                 | 1000        |
| NetNTLMv2            | 5600        |
| MD5                  | 0           |
| SHA-256              | 1400        |
| Kerberoast (krb5tgs) | 13100       |

### John The Ripper

Para formatos raros (zip, ssh keys).

* `ssh2john id_rsa > hash`
* `john --wordlist=rockyou.txt hash`

## 2. Online Attacks (Cuidado con los bloqueos)

### Hydra

```bash
# SSH
hydra -l user -P rockyou.txt ssh://<IP>

# RDP
hydra -L users.txt -p 'Spring2025!' rdp://<IP>

# HTTP Post Form
hydra -l admin -P pass.txt <IP> http-post-form "/login.php:user=^USER^&pass=^PASS^:F=Login failed"
```

## 3. Wordlists

* `/usr/share/wordlists/rockyou.txt`: La biblia.
* `seclists`: Repositorio masivo (`apt install seclists`).
* `cewl http://target.com -w custom.txt`: Generar lista basada en la web del objetivo.


---

# 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://jotatito05.gitbook.io/la-bitacora-de-jotatito05/08.-password-attacks/cheatsheet.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.
