SC_WARTS2PCAP(1)
sc_warts2pcap π
okay so this is sc_warts2pcap(1), from the General Commands Manual section of your friendly neighbourhood man pages, and bestie it is so much more fun than it sounds. it takes the lil packets that got stashed inside warts objects and dumps them into a pcap file. that's the whole vibe. slay.
β¨ NAME β¨
sc_warts2pcap β write packets included in warts object to a pcap file. π
β¨ SYNOPSIS β¨
sc_warts2pcap [-o outfile] [-s sort] [file ...]
πΈ DESCRIPTION πΈ
okay so here's the tea π«: sc_warts2pcap gives you the power to extract packets embedded in the tbit, sting, and sniff warts objects and write them out to a pcap file. and because it's a pcap file, tcpdump and wireshark can read it. it's giving β¨interoperabilityβ¨. no cap, it's that simple.
the options, one at a time π
-o outfileβ this one names your output file. if you don't give an output file at all, everything goes to standard output instead β but only provided that it is not a tty. (so like, don't just run it bare in your terminal and expect magic, bestie. redirect it somewhere. π)-o sortβ so real talk, this is exactly how the page writes this option down, and the synopsis up top calls it-s sort, and the example below uses-s packet. i'm just reporting the receipts, not fixing them, periodt. π anyway β this one says how the pcap records (packets) get sorted before being written out. by default, no sorting is applied; the packets are grouped as they are in the warts file. if you do ask for packet sorting, the packets get written out in timestamp order.
β οΈ heads up though, and this is important: this operation requires the packets to be read into memory to be sorted, so it will require a corresponding amount of memory to complete. big file, big memory. plan accordingly. π§ π₯
π¦ EXAMPLES π¦
the command:
sc_warts2pcap -o output.pcap file1.warts file2.warts
will read the packet objects from file1.warts, and then file2.warts, and write them to output.pcap. in order, in order, in order. we love a queue. π
the command:
gzcat file1.warts.gz | sc_warts2pcap -s packet >file1.pcap
will read the contents of the uncompressed warts file supplied on stdin, sort the packets by their timestamp, and then write the output to file1.pcap. iconic pipe behaviour, honestly. π
π SEE ALSO π
π AUTHORS π
sc_warts2pcap was written by Stephen Eichler and Matthew Luckie. kings. π
and that's the whole page bestie!! this one shipped from Debian and it's dated October 15, 2010 β vintage, but still eating. go forth and pcap responsibly. mwah. πβ¨ππ¦πΈπ
π¦ where this page comes from
- debian bookworm: scamper 20211212-1.1 Β· GPL-2.0-or-later
- debian trixie: scamper 20211212-1.2+b1 Β· GPL-2.0-or-later
- ubuntu jammy: scamper 20191102-1 Β· GPL-2.0-or-later
- ubuntu noble: scamper 20211212-1.2build1 Β· GPL-2.0-or-later
- ubuntu questing: scamper 20211212-1.2build1
- ubuntu resolute: scamper 20211212-1.2build2 Β· GPL-2.0-or-later
- ubuntu stonking: scamper 20211212-1.2build2 Β· GPL-2.0-or-later
- Copyright (c) 2011 University of Waikato
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms