What is the command used to create a binary log file using tcpdump?
A.
tcpdump -r log
B.
tcpdump -l /var/log/
C.
tcpdump -vde log
D.
tcpdump -w ./log
Explanation:
tcpdump [ -adeflnNOpqStvx ] [ -c count ] [ -F file ] [ -i interface ] [ -r file ] [ -s snaplen ] [ -T type ] [ -w file ] [ expression ]
– w Write the raw packets to file rather than parsing and printing them out.
answer is d:- tcpdump -w ./log
I choose D