> For the complete documentation index, see [llms.txt](https://malcrvz.gitbook.io/the-vx-files/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malcrvz.gitbook.io/the-vx-files/network-pentesting/tools/2.-information-gathering/netcat.md).

# Netcat

Versatile networking utility that can establish and interact with TCP or UDP connections

{% code title="Syntax" %}

```sh
nc IP port            #Simple Banner grab  ?Does a simple connection to a server's service, just a "hi" and service talks back and gives us "its name"
nc -nv IP port        #Banner grab without DNS resolution (-n) better when working only with IPs and verbose (-v) for detailed output info
nc -lvnp port         #Listen on a port  ?-l puts on listen mode | -v verbose, so that we know when the connection is made | -n disable DNS resolution and connect only to raw IP to speed up connection | -p to specify the port next to it


```

{% endcode %}
