> For the complete documentation index, see [llms.txt](https://ret2basic.gitbook.io/ctfnote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ret2basic.gitbook.io/ctfnote/pwn/linux-exploitation/appendix-tools/socat.md).

# socat

Deploy a challenge binary `pwnable` locally on port 1337 using socat:

```bash
socat tcp4-listen:1337,reuseaddr,fork exec:./pwnable &
```
