Tcpdump

在 tcpdump 中使用“-vvv”和“-w FILENAME”可以得到更好的輸出?

  • January 5, 2012

如果我使用它會產生更詳細的輸出嗎

tcpdump -vvv -w FILENAME

與如果我使用:

tcpdump -w FILENAME

或者如果我在使用“-w FILENAME”時使用“-vvv”沒有任何意義?

不,我不這麼認為,從手冊頁:

  -w     Write the raw packets to file rather than parsing  and  printing
         them  out.  They can later be printed with the -r option.  Stan‐
         dard output is used if file is ``-''.

– 注意“原始數據包”–

  -v     When  parsing and printing, produce (slightly more) verbose out‐
         put.  [...]
         When writing to a file with the -w option, report, every 10 sec‐
         onds, the number of packets captured.

所以有意義的是使用tcpdump -vvv -r FILENAME來解析和列印寫入的內容FILENAME——原始數據包。

引用自:https://unix.stackexchange.com/questions/28189