9 lines
408 B
Bash
9 lines
408 B
Bash
#!/bin/sh
|
|
|
|
#Perform a tcpdump capture where you only capture DNS packets.
|
|
sudo tcpdump -c 10 -ttt 'tcp port 53 or udp port 53'
|
|
#Perform a tcpdump capture where you capture TCP packets that are destined for either port 443 or 8080, and originate from your computer.
|
|
|
|
|
|
#Perform a tcpdump capture where traffic is either UDP or TCP, is inbound to your computer, and destined for a port between 20000 and 35000.
|