Use netcat to dump incoming packets

Use linux netcat to create a server that will listen for incoming connections on a specific port and dump the contents of the network traffic.

user$ nc -l -p port
-l Is used to specify that nc should listen for an incoming connection, rather than initiate a connection to a remote host. Any hostname/IP address and port arguments restrict the source of inbound connections to only that address and source port
-p Specifies the source port nc should use, subject to privilege restrictions and availability

Comments are closed.