2023年5月7日 星期日

Edit pcap

Editing Hex:Put a hex on your hex

reordercap:

editcap [選項] 輸入檔 輸出檔 [排除範圍]:編輯 pcap 檔 (原始碼)

  • -v:verbose
  • 排除範圍,格式 封包編號[-封包編號],可有多個:排除的封包,-r 反向。
  • -C [offset:]choplen:每個封包從 offset 起砍掉 choplen 長度。offset 正值從頭算,負值從尾算。可用來移除特定欄位,例如 vlan tag。
  • -L:依據 -C choplen-s snaplen 結果調整長度。
  • -r:反向排除範圍,變成套用的範圍。
  • -T:顯示有的 encapsulation type。
  • -T  <encapsulation type>:設定輸出檔案的 encapsulation type。並不轉換封包的 header,可能要改用 od(1) 或 text2pcap(1)。
  • Fuzzing:editcap has several options to fuzz, including -E, -o, and –seed. You can use them in combination to randomly change a packet capture to fuzz it with your program. This can mimic the bit-flipping that will naturally occur on lossy mediums like 802.11.

mergecap:Merge captures together

text2pcap:Convert hexdumps to packet captures

Sanitizing Hex:Put a hex on your hex

沒有留言:

張貼留言

SIP header Via

所有 SIP 訊息 都要有 Via,縮寫 v。一開始的 UAC 和後續途經的每個 proxy 都會疊加一個 Via 放傳送的位址,依序作為回應的路徑。 格式 sent-protocol sent-by [ ;branch= branch ][ ; 參數 ...] s...