From 152c18c7d12030f307dba813e4bd3559bd50bf9b Mon Sep 17 00:00:00 2001 From: I2SAM Date: Sun, 2 Apr 2023 17:18:45 +0200 Subject: [PATCH] Adding a new command to the Tshark cheat-sheet It's not a big deal, but Tshark can print a list of interfaces on which it can capture packets ! So yeah, I wanted to add it. :-) --- cheat_sheets/tshark-cheat-sheet.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cheat_sheets/tshark-cheat-sheet.md b/cheat_sheets/tshark-cheat-sheet.md index 96cd8cb..fe93958 100644 --- a/cheat_sheets/tshark-cheat-sheet.md +++ b/cheat_sheets/tshark-cheat-sheet.md @@ -1,10 +1,15 @@ # Tshark Cheat Sheet +## List interfaces on which Tshark can capture +``` +tshark -D +``` ## Capture Packets with Tshark ``` tshark -i eth0 -w capture-file.pcap ``` + ## Read a Pcap with Tshark ``` tshark -r capture-file.pcap