Get information about network connections with tcpdump on Linux.

Getting information about network connections with tcpdump is very easy. In the example below I am looking for connections to/from 192.168.1.5. The result is I get information about the current SSH session on port 22. jason@jason-Lenovo-H50-55:~$ sudo tcpdump -i any -c5 -nn host 192.168.1.5 tcpdump: verbose output suppressed, use -v or -vv for full protocol … Read more

Using tcpdump to capture packets with a wireless connected computer.

Use this command to capture packets with the tcpdump command. This will output to STDOUT, but you may use redirection to divert it to a text file. [root@deusexmachina homer]# tcpdump -i wlp2s0[root@deusexmachina homer]# tcpdump -i wlp2s0 This is the output that you get when you are capturing packets. This is on my home network, so … Read more