Grab a service banner

Connect to a port and read the banner that the service sends

nc -v 192.168.1.1 22

tool
netcat10 commands
tags
netcatncnetworkbanner

More netcat commands

  • nc -w 3 192.168.1.1 80

    Give up if the connection takes longer than 3 seconds

  • nc -lvp 4444

    Start a netcat listener on port 4444

  • nc 192.168.1.1 80

    Open a TCP connection to the host on port 80

  • nc -zv 192.168.1.1 20-80

    Check ports 20-80 on a host without sending data (-z)

  • nc -lvp 4444 < file.tar.gz

    Serve a file on port 4444 and wait until the receiver connects

all 10 netcat commands