ncaptool(8)
β¨ ncaptool(8) β¨
okay bestie, welcome to ncaptool β the network capture tool, manual section 8 π
π NAME π
ncaptool β Network capture library
πΈ SYNOPSIS πΈ
ncaptool [-h] [-d] [-m] [-f] [-r] [-w] [-v] [-S] [-e] [-i]
[-b] [-p] [-n] [-l] [-g] [-o] [-s] [-c] [-t] [-1]
[-2] [-k] [-Dmod] [-H]
like. that's the whole vibe in one block, no cap π«Ά
π¦ DESCRIPTION π¦
so ncaptool is a network capture library β same energy as libpcap (which it's literally based on) and tcpdump. It produces binary data in its own ncap format, and that data can either live in a dump file or get yeeted over a UDP socket. π‘
but here's the twist: unlike libpcap, it discards data link headers and only supports IPv4 and IPv6 packets. however β and this is the slay part β it can perform reassembly of IP datagrams. iconic behavior fr fr π
π OPTIONS π
-hβ display this help text and exit (the "hi bestie, here's the menu" flag)-dβ increment debugging level-mβ increment message trace level-fβ flush outputs after every bufferable write-rβ destination of-scan be a remote (off-LAN) address-wβ use wallclock time not NCAP timestamp for-ofiles-vβ emit a traffic summary tostderron exit-Sβ stripe across all-sdatasinks, round robin style π-eendline β specify continuation separator-iifname[+]β add interface as a datasource ('+'= promiscuous)-bbpf β use thisbpfpattern for any-ior-pdatasources-pfile β addpcapfile as a datasource ('-'= stdin)-nfile β addncapfile as a datasource ('-'= stdin)-lsocket β add datagram socket as a datasource (addr/port)-gfile β write msg trace to this file ('-'= stdout)-ofile β writencapdata to this file ('-'= stdout)-sso[,r[,f]] β add this datagram socket as a datasink (addr/port) (optional,ris the transmit rate in messages/sec) (optional,fis schedule frequency, default is100)-ccount β stop or reopen after this many msgs are processed-tinterval β stop or reopen after this amount of time has passed-1[+-]value β replace, set (+), or clear (-)user1to this value-2[+-]value β replace, set (+), or clear (-)user1to this value-kcmd β make-c,-tcontinuous, runcmdon each new file (cmdcan be empty if you just want the continuity)-Dmod[,args] β add module-H[sd]β hide source and/or destination IP addresses π
argument to -l and -s can be addr/port or addr/port..port (range)
π heads up bestie:-1and-2are listed in the original with the exact same wording β both sayuser1. not me fixing it, i'm keeping it verbatim, periodt. the manpage says what it says.
π EXAMPLE π
Common usage β the everyday, main-character pipeline:
$ ncaptool -t 3600 -k gzip -i enp9s0+ -o $FILE
and to inspect a compressed ncap file, run something like this:
$ zcat $FILE | ncaptool -n - -vmg -
lowkey satisfying when a pipe just works πβ¨
π₯ SEE ALSO π₯
π AUTHOR π
ncaptool was written by Internet Systems Consortium and Jan Andres <jandres@gmx.net>.
This manual page was written by Thiago Andrade Marques <thmarques@gmail.com> for the Debian project (but may be used by others).
okay that's the whole page, you ate that π this was ncaptool version ncaptool-1.9.2, dated 26 Mar 2020, living in manual section ncaptool(8) β and that's on periodt, go capture some packets bestie ππ§
π¦ where this page comes from
- debian bookworm: ncaptool 1.9.2-8 Β· ISC
- debian trixie: ncaptool 1.9.2-8.1+b1 Β· ISC
- ubuntu jammy: ncaptool 1.9.2-7 Β· ISC
- ubuntu noble: ncaptool 1.9.2-8.1build2 Β· ISC
- ubuntu questing: ncaptool 1.9.2-8.1build2
- ubuntu resolute: ncaptool 1.9.2-8.1build3 Β· ISC
- ubuntu stonking: ncaptool 1.9.2-8.1build3 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms