pcapuc(1)

πŸ“¦
version 0.8 Β· 5 versions
, in debian bookworm, ubuntu jammy

πŸ’– pcapuc πŸ’–

okay bestie, welcome to pcapuc β€” section 1 of the manual, she's a command, she's iconic, and she's about to make your pcap files make sense πŸ¦‹


✨ NAME ✨

pcapuc β€” filter a pcap for IP addresses πŸŽ€


🌸 SYNOPSIS 🌸

pcapuc [OPTIONS]...

🫢 DESCRIPTION 🫢

so like, pcapuc parses an input pcap file and prints unique IP addresses plus the number of packets each IP address appeared in. that's the whole vibe πŸ’…

and optionally?? she can be picky. pcapuc can limit its output to:

  • addresses that only appear in the source address field of the IP header
  • addresses that only appear in the destination address field
  • or sets of IP addresses that appear in the source and destination address fields

choose your fighter, bestie 😭


🌈 PCAPNET OPTIONS 🌈

  • -i interface β€” input interface to read packets from πŸ‘€
  • -r pcap file β€” dump file to read packets from πŸ“–
  • -w pcap file β€” dump file to write filtered packets to ✍️
  • -f expression β€” BPF expression which selects packets to be filtered 🧚
  • -s snaplen β€” capture snaplen bytes of data from each packet πŸ“
  • -p β€” disable promiscuous mode sniffing πŸ™ˆ

πŸ‘‘ PROGRAM OPTIONS πŸ‘‘

  • -S β€” count source IP addresses only
  • -D β€” count destination IP addresses only
  • -P β€” count pairs of IP addresses
  • -C β€” output only the number of unique IP addresses or IP address pairs

lowkey reminder bestie: the pcapnet options and the program options are two different little cliques, don't mix them up πŸ’€

that's the whole page, no cap ✨ she ate and left no crumbs. this gem is dated 26 December 2021, and it's pcapuc(1) all the way down πŸ’– periodt πŸŽ€

πŸ“¦ where this page comes from