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

# Utilidades

## Listener con `netcat`

```bash
nc -nlvp <PORT>
```

* `n`: dirección IP
* `v`: modo verbose
* `l`: escuchar las conexiones entrantes
* `p`: puerto local de escucha

## Generar un terminal interactivo a través de Python

```bash
$ which python # Comprobamos si el sistema tiene instalado Python
/usr/bin/python
$ python -c "import pty; pty.spawn('/bin/bash')" # Luego, lanzamos una terminal interactiva usando el modulo pty
$ export TERM=xterm # Por último, exportar xterm
```
