Listen on port

Start a netcat listener on port 4444

nc -lvp 4444

tool
netcat10 commands
tags
netcatncnetworklisten

More netcat commands

  • nc 192.168.1.1 80

    Open a TCP connection to host on port 80

  • nc -zv 192.168.1.1 20-80

    Scan ports 20-80 on a host (zero I/O mode)

  • nc -lvp 4444 < file.tar.gz

    Send file to a remote listener

  • nc 192.168.1.1 4444 > file.tar.gz

    Receive a file from a netcat sender

  • nc -u 192.168.1.1 5005

    Connect using UDP instead of TCP

all 10 netcat commands