> For the complete documentation index, see [llms.txt](https://b4zh.gitbook.io/b4zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://b4zh.gitbook.io/b4zh/anotaciones-hacking-web/lfi.md).

# LFI

{% embed url="<https://www.youtube.com/watch?v=8r1HQVZZ6hU>" %}

***

{% embed url="<https://mega.nz/file/XkMSDLZL#sFshjYvInLVkjJ_53HOmdfmcdiq52S2ikXM_kNXdNss>" %}

***

{% embed url="<https://www.youtube.com/watch?v=-5JzqJD2fKI>" %}

PATH HIJACKING

El usuario gh0st puede ejecutar un script como el usuario root y además puede setear temporalmente los valores de las variables de entorno del usuario root.

{% embed url="<https://www.baeldung.com/linux/sudo-manage-environment-variables#preserve-environment-with-sudo>" %}

***

{% embed url="<https://dise0.gitbook.io/h4cker_b00k/ctf/hackmyvm/friendly2-hackmyvm-easy-linux>" %}
