STRATO(1)
โจ strato(1) โจ
hiii bestie ๐ซถ welcome to the strato(1) manual page โ yes, that's section 1 of the manual, we're doing this ๐
. Grab a snack, this one's a whole saga, but it's actually so good. no cap.
๐ธ NAME ๐ธ
strato โ Dump and analyze system calls and event logs. that's it, that's the whole vibe โจ
๐ฆ SYNOPSIS ๐ฆ
strato [ -i <capture source>|- ] [ -f <capture filter> ] [ -2 ]
[ -r <infile> ] [ -w <outfile>|- ] [ options ] [ <filter> ]
strato -h|--help
strato -v|--version
look at her go ๐ญ three whole forms. iconic.
๐ DESCRIPTION ๐
okay so strato is a system call and log analyzer, and she is that girl. She lets you capture system call and log events from a live source, or read events from a previously saved capture file โ and then she either prints a decoded form of those events to the standard output, or writes the packets to a file. Her native capture file format is scap format, which is also the format used by Stratoshark, Falco, sysdig and various other tools. so she's fluent in the friendship group's language, obviously ๐ง
Without any options set, strato will work much like sysdig. She'll use the libscap and libsinsp to capture traffic from the first available source, and she displays a summary line on the standard output for each received packet. effortless ๐
When you run her with the -r option, specifying a capture file to read from, strato will again work much like sysdig โ reading packets from the file and displaying a summary line on the standard output for each packet read. She is able to detect, read and write the same capture files that are supported by Stratoshark ๐ The input file doesn't need a specific filename extension; the file format and an optional gzip, Zstandard, or LZ4 compression will be automatically detected. (she just knows, iykyk.) Near the beginning of the DESCRIPTION section of wireshark(1) or https://www.wireshark.org/docs/man-pages/wireshark.html there's a detailed description of the way Wireshark handles this โ which is the same way strato handles this. matching energy, always ๐
Compressed file support uses (and therefore requires) the zlib library. If the zlib library is not present when compiling strato, it will be possible to compile it, but the resulting program will be unable to read compressed files ๐ญ Similarly, LZ4 and ZStandard also require their respective libraries. no library, no compression support โ the rules are the rules.
When displaying events on the standard output, strato writes, by default, a summary line containing the fields specified by the preferences file (which are also the fields displayed in the packet list pane in Wireshark) โ although if she's writing packets as she captures them, rather than writing packets from a saved capture file, she won't show the "frame number" field ๐ (future knowledge only, bestie.)
- If the
-Voption is specified, she instead writes a view of the details of the packet, showing all the fields of all protocols in the packet ๐ - If the
-Ooption is specified, she'll only show the full details for the protocols specified, and show only the top-level detail line for all other protocols. Use the output ofstrato -G protocolsto find the abbreviations of the protocols you can specify ๐ - If the
-Poption is specified with either the-Vor the-Ooptions, both the summary line for the entire packet and the details will be displayed ๐
Packet capturing is performed with the pcap library. That library supports specifying a filter expression; packets that don't match that filter are discarded ๐๏ธ The -f option is used to specify a capture filter. The syntax of a capture filter is defined by the pcap library; this syntax is different from the display filter syntax described below, and the filtering mechanism is limited in its abilities. she's talented but she's not magic.
Display filters in strato, which allow you to select which packets are to be decoded or written to a file, are very powerful ๐ฅ more fields are filterable in strato than in other protocol analyzers, and the syntax you can use to create your filters is richer. As strato progresses, expect more and more protocol fields to be allowed in display filters. Display filters use the same syntax as display and color filters in Wireshark; a display filter is specified with the -Y option โญ
Display filters can be specified when capturing or when reading from a capture file. But wait โ plot twist โ note that capture filters are much more efficient than display filters ๐ซ and it may be more difficult for strato to keep up with a busy network if a display filter is specified for a live capture, so you might be more likely to lose packets if you're using a display filter. she's doing her best, ok??
A capture or display filter can either be:
- specified with the
-for-Yoption, respectively, in which case the entire filter expression must be specified as a single argument (which means that if it contains spaces, it must be quoted ๐), or - specified with command-line arguments after the option arguments, in which case all the arguments after the filter arguments are treated as a filter expression.
If the filter is specified with command-line arguments after the option arguments, it's a capture filter if a capture is being done (i.e., if no -r option was specified) and a display filter if a capture file is being read (i.e., if a -r option was specified). context is everything, bestie ๐
If the -w option is specified when capturing packets or reading from a capture file, strato does not display packets on the standard output. Instead, she writes the packets to a capture file with the name specified by the -w option. Note that display filters are currently not supported when capturing and saving the captured packets ๐ (fr fr, that's just how it is right now.)
If you want to write the decoded form of packets to a file, run strato without the -w option, and redirect its standard output to the file โ do not use the -w option. two completely different lanes, don't mix them up ๐
If you want the packets to be displayed to the standard output and also saved to a file:
- specify the
-Poption in addition to the-woption to have the summary line displayed, - specify the
-Voption in addition to the-woption to have the details of the packet displayed, and - specify the
-Ooption, with a list of protocols, to have the full details of the specified protocols and the top-level detail line for all other protocols to be displayed.
If the -P option is used together with the -V or -O option, the summary line will be displayed along with the detail lines ๐โจ
When writing packets to a file, strato, by default, writes the file in pcapng format, and writes all of the packets she sees to the output file. The -F option can be used to specify the format in which to write the file. The list of available file formats is displayed by the -F option without a value. However, for a live capture, you can only specify a file format supported by dumpcap(1) โ viz. pcapng or pcap ๐
The --compress option can be used to specify a compression method as well; the list of supported compression methods for writing can be displayed by the --compress method without an argument. If the --compress option is not given, then the desired compression method, if any, is deduced from the extension of the filename given as argument to the -w option. she reads the room (and the file extension) ๐ฆ
When capturing packets, strato writes to the standard error an initial line listing the interfaces from which packets are being captured and, if packet information isn't being displayed to the terminal, writes a continuous count of packets captured to the standard output ๐
- If the
-qoption is specified, neither the continuous count nor the packet information will be displayed; instead, at the end of the capture, a count of packets captured will be displayed. - If the
-Qoption is specified, neither the initial line, nor the packet information, nor any packet counts will be displayed. - If the
-qor-Qoption is used, the-P,-V, or-Ooption can be used to cause the corresponding output to be displayed even though other output is suppressed ๐
When reading packets, the -q and -Q options will suppress the display of the packet summary or details; this would be used if -z options are specified in order to display statistics, so that only the statistics, not the packet information, is displayed ๐
The -G option is a special mode that simply causes strato to dump one of several types of internal glossaries and then exit. short king behaviour, honestly.
๐ OPTIONS ๐
๐ซ the big list, part one ๐ซ
-2โ Perform a two-pass analysis. This causesstratoto buffer output until the entire first pass is done, but allows her to fill in fields that require future knowledge, such as'response in frame #'fields ๐ Also permits reassembly frame dependencies to be calculated correctly. This requires the ability to seek backwards on the input, and as such cannot be used with live captures or when reading from a pipe or FIFO ๐ซ (no rewind button = no two-pass, sorry bestie.)-a,--autostop<capture autostop condition> โ Specify a criterion that specifies whenstratois to stop writing to a capture file. The criterion is of the formtest:value, where test is one of:duration:valueโ Stop writing to a capture file after value seconds have elapsed. Floating point values (e.g.0.5) are allowed โฑ๏ธfiles:valueโ Stop writing to capture files after value number of files were written ๐๏ธfilesize:valueโ Stop writing to a capture file after it reaches a size of value kB. If this option is used together with the-boption,stratowill stop writing to the current capture file and switch to the next one iffilesizeis reached. When reading a capture file,stratowill stop reading the file after the number of bytes read exceeds this number (the complete packet will be read, so more bytes than this number may be read). Note that the filesize is limited to a maximum value of 2 TB, although you might have problems before then if the number of packets exceeds exceeds 232 (4294967296) ๐ yes we said it twice, it's in the original, don't come for me.packets:valueโ switch to the next file after it contains value packets. This does not include any packets that do not pass the display filter, so it may differ from-c<capture packet count>๐ฏ
-A<user>:<password> โ Specify a user and a password whenstratocaptures from arpcap://interface where authentication is required ๐ This option is available with libpcap with enabled remote support.-b,--ring-buffer<capture ring buffer option> โ Causestratoto run in "multiple files" mode. In "multiple files" mode,stratowill write to several capture files. When the first capture file fills up,stratowill switch writing to the next file and so on ๐
The created filenames are based on the filename given with the -w option, the number of the file and on the creation date and time, e.g. outfile_00001_20260714120117.pcap, outfile_00002_20260714120523.pcap, ... ๐ธ
With the files option it's also possible to form a "ring buffer". This will fill up new files until the number of files specified, at which point strato will discard the data in the first file and start writing to that file and so on. If the files option is not set, new files filled up until one of the capture stop conditions match (or until the disk is full) ๐ญ (the disk is full arc, we've all been there.)
The criterion is of the form key:value, where key is one of:
duration:value โ peaces out to the next file once value seconds have gone by, even if the current file is still half-empty (no cap on the dramatics). Floating point values like0.5are totally allowed, slay.files:value โ ring buffer energy: after value files have been written, it loops back around to the first file. This value has to be less than100000. > โ ๏ธ Be careful with big numbers of files, bestie โ some filesystems do not handle a huge pile of files in a single directory well. Also thefilescriterion needs eitherduration,intervalorfilesizespecified so it knows when to move to the next file. And heads up: each-bparameter takes exactly one criterion, so if you want two criteria you gotta write-bbefore each one. One per-b, periodt.filesize:value โ bounces to the next file once it hits a size of value kB. Ngl the filesize is capped at a max of 2 TB, though you might hit trouble even before that if the number of packets exceeds exceeds232(4294967296) โ yes it says "exceeds" twice in the source, it's iconic, leave her alone ๐.interval:value โ switches to the next file when the time lands on an exact multiple of value seconds. Like, use3600to roll a fresh file every hour, on the hour. Iconic scheduling behaviour.packets:value โ next file after this one contains value packets. Simple. Clean. Ate.printname:filename โ prints the name of the most recently written file to filename after that file gets closed. filename can bestdoutor-for standard output, orstderrfor standard error. ๐ซถnametimenum:value โ picks between two save filename templates. If value is1, the running file number part comes before the start time part โ that's the original and default behaviour (e.g.log_00001_20260714164426.pcap). If value is greater than1, the start time part comes before the running number part (e.g.log_20210828164426_00001.pcap). The latter makes alphabetical sorting order equal to creation time order, and keeps related multiple file sets in the same directory close to each other. Lowkey the second one is the main character.
Example time, bestie โ strato -b filesize:1000 -b files:5 gives you a ring buffer of five files of size one megabyte each. ๐
-B,--buffer-size<capture buffer size> โ sets the capture buffer size (in MiB, default is2MiB). The capture driver uses this to buffer packet data until it can be written to disk. If you're seeing packet drops while capturing, try bumping this size up. Note that whilestratoattempts to set the buffer size to2MiB by default, and can be told to set it to a larger value, the system or interface you're capturing on might silently limit the capture buffer size to a lower value โ or raise it to a higher one. Rude but true.
This is available on UNIX-compatible systems, such as Linux, macOS, \*BSD, Solaris, and AIX, with libpcap 1.0.0 or later, and on Windows. It is not available on UNIX-compatible systems with earlier versions of libpcap. ๐ญ
This option can occur multiple times. If used before the first occurrence of the -i option, it sets the default capture buffer size. If used after an -i option, it sets the capture buffer size for the interface specified by the last -i option occurring before this option. If the capture buffer size isn't set specifically, the default capture buffer size is used instead.
-c<capture packet count> โ sets the maximum number of packets to read when capturing live data. If you're reading a capture file, it sets the maximum number of packets to read. Heads up: this includes any packets that do not pass the display filter, so it may differ from-a packets:<capture packet count>. Sneaky difference, ik.-C<configuration profile> โ runs with the given configuration profile. If it's used together with--global-profile, then the global profile with the associated name gets used instead.-D,--list-interfacesโ prints a list of the interfacesstratocan capture on, then exits. For each network interface you get a number and an interface name, possibly followed by a text description of the interface. You can hand the interface name or the number to the-iflag to pick an interface to capture on. The number is especially useful on Windows systems, where interfaces have long names that usually contain a GUID. ๐ช-e<field> โ adds a field to the list of fields to display if-T ek|fields|json|pdmlis selected. This option can be used multiple times on the command line. At least one field must be provided if the-T fieldsoption is selected. Column types may be used, prefixed with"_ws.col.". Prefixing the field name with an at sign (@) will display the data as hex bytes. โจ
Example: strato -T fields -e frame.number -e ip.addr -e udp -e _ws.col.info
Fields are separated by tab characters by default. -E controls the format of the printed fields. Giving a protocol rather than a single field will print the protocol summary (subtree label) from the packet details as a single field. If the protocol summary contains only the protocol name (e.g. "Hypertext Transfer Protocol") then the protocol filter name ("http") will be printed instead.
-E<field print option> โ sets an option controlling the printing of fields when-T fieldsis selected.
The options are:
bom=y|nโ ify, prepend the output with the UTF-8 byte order mark (hexadecimalef,bb,bf). Defaults ton.header=y|nโ ify, print a list of the field names given using-eas the first line of the output; the field name will be separated using the same character as the field values. Defaults ton.separator=/t|/s|<character>โ set the separator character to use for fields. If/t, a tab gets used (this is the default); if/s, a single space gets used. Otherwise any character that can be accepted by the command line as part of the option may be used.occurrence=f|l|aโ select which occurrence to use for fields that have multiple occurrences. Iffthe first occurrence gets used, iflthe last occurrence gets used, and ifaall occurrences get used (this is the default).aggregator=,|/s|<character>โ set the aggregator character to use for fields that have multiple occurrences. If,a comma gets used (this is the default), if/sa single space gets used. Otherwise any character that can be accepted by the command line as part of the option may be used.quote=d|s|nโ set the quote character to use to surround fields.duses double-quotes,ssingle-quotes,nno quotes (the default). If the quote character appears in a field value, it will be escaped by being duplicated. ๐escape=y|nโ ify, the whitespace control characters (tab, line feed, carriage return, form feed, and vertical tab), backspace, and the backslash will be replaced in field values by C-style escapes, e.g."\n"for line feed. Ifn, field value strings will be printed as-is. Defaults toy.
-f<capture filter> โ sets the capture filter expression. ๐ฆ
This option can occur multiple times. If used before the first occurrence of the -i option, it sets the default capture filter expression. If used after an -i option, it sets the capture filter expression for the interface specified by the last -i option occurring before this option. If the capture filter expression isn't set specifically, the default capture filter expression is used if one was provided.
Pre-defined capture filter names, as shown in the GUI menu item CaptureโCapture Filters, can be used by prefixing the argument with "predef:". Example: strato -f "predef:MyPredefinedHostOnlyFilter"
-F<file format> โ sets the file format of the output capture file written using the-woption. The output written with-wis raw packet data, not text, so there is no-Foption to request text output. The option-Fwithout a value will list the available formats. The default is the pcapng format (unless the default has been changed in preferences). ๐ง-gโ causes the output file(s) to be created with group-read permission (meaning the output file(s) can be read by other members of the calling user's group). Sharing is caring.-G<report type> โ makesstratodump one of several types of glossaries and then exit. The glossary type is now mandatory; previous versions generated thefieldsreport by default when no type was given. With one exception, the reports reflect the current configuration, including whatever you gave with a-Coption or as modified by other command line options. Using the report type ofhelplists all the current report types. ๐
The available report types include:
column-formatsโ dumps the column formats understood bystrato. There's one record per line. The fields are tab-delimited.- Field 1: format string (e.g.
"%rD") - Field 2: text description of format string (e.g.
"Dest port (resolved)") - Field 3: field abbreviation used for the column text (e.g.
"_ws.col.res_dst_port") - This report is followed by a usage example that demonstrates how to change the columns by overriding the
gui.column.formatpreference value with-o.
- Field 1: format string (e.g.
currentprefsโ dumps a copy of the current preferences file tostdout.decodesโ dumps the"layer type"/"decode as"associations tostdout. There's one record per line. The fields are tab-delimited.- Field 1: layer type, e.g.
"tcp.port" - Field 2: selector in decimal
- Field 3:
"decode as"name, e.g."http"
- Field 1: layer type, e.g.
defaultprefsโ dumps a default preferences file tostdout. This report is unaffected by other command line arguments.dissectorsโ dumps a list of registered dissectors tostdout. There's one record per line. The fields are tab-delimited.- Field 1: dissector name
- Field 2: dissector description
dissector-tablesโ dumps a list of dissector tables tostdout. There's one record per line. The fields are tab-delimited.- Field 1: dissector table name, e.g.
"tcp.port" - Field 2: name used for the dissector table in the GUI
- Field 3: type (textual representation of the ftenum type, or
"heuristic") - Field 4: base for display (for integer types)
- Field 5: protocol name
- Field 6:
"decode as"support (for non-heuristic tables)
- Field 1: dissector table name, e.g.
elastic-mapping[,filter]โ dumps the ElasticSearch mapping file tostdout. Fields falling in the default case (string) won't be mapped.
filter is, like, an optional list of comma separated protocol filter names ๐
and what it does is limit the generated mapping file to just those protocols โ which slaps, because otherwise you'd get a huge mapping file that can literally choke some software (such as Kibana ๐ญ). E.g.
strago -G elastic-mapping,ip,udp,dns
enterprisesโ Dumps the IANA Private Enterprise Number (PEN) table. cute little table, no cap.fieldcountโ Dumps the number of header fields to stdout. that's it, that's the whole vibe.fields[,prefix]โ Dumps the contents of the registration database to stdout โจ. An independent program can take this output and format it into nice tables or HTML or whatever โ honestly the icon behaviour. There is one record per line. Each record is either a protocol or a header field, differentiated by the first field. The fields are tab-delimited.
Protocols
- Field 1 โ
'P' - Field 2 โ descriptive protocol name
- Field 3 โ protocol abbreviation
Header Fields
- Field 1 โ
'F' - Field 2 โ descriptive field name
- Field 3 โ field abbreviation
- Field 4 โ type (textual representation of the ftenum type)
- Field 5 โ parent protocol abbreviation
- Field 6 โ base for display (for integer types); "parent bitfield width" for
FT_BOOLEAN - Field 7 โ bitmask: format: hex:
0x.... - Field 8 โ blurb describing field
An optional search prefix argument can be given to fields, in which case the output is limited to protocols and fields whose abbreviation starts with the search prefix ๐.
Search Output
- Field 1 โ protocol or field abbreviation
- Field 2 โ descriptive protocol or field name
foldersโ Dumps various folders used by strato ๐๏ธ. This is essentially the same data reported in Wireshark's About | Folders tab. There is one record per line. The fields are tab-delimited.- Field 1 โ Folder type (e.g
"Personal configuration:") - Field 2 โ Folder location (e.g.
"/home/vagrant/.config/wireshark/")
- Field 1 โ Folder type (e.g
ftypesโ Dumps the "ftypes" (fundamental types) understood by strato ๐ง. There is one record per line. The fields are tab-delimited.- Field 1 โ FTYPE (e.g
"FT_IPv6") - Field 2 โ text description of type (e.g.
"IPv6 address")
- Field 1 โ FTYPE (e.g
heuristic-decodesโ Dumps the heuristic decodes currently installed ๐ฅ. There is one record per line. The fields are tab-delimited.- Field 1 โ heuristic dissector table name (e.g.
"tcp") - Field 2 โ name of heuristic decoder (e.g.
"ucp") - Field 3 โ heuristic enabled (e.g.
"T"or"F") - Field 4 โ heuristic enabled by default (e.g.
"T"or"F") - Field 5 โ heuristic short name (e.g.
"ucp_tcp") - Field 6 โ heuristic display name (e.g.
"UCP over TCP")
- Field 1 โ heuristic dissector table name (e.g.
helpโ Displays the available report types. the literal "help me help you" moment ๐ซถ.manufโ Dumps the MAC address lookup table in manuf format.pluginsโ Dumps the plugins currently installed ๐. There is one record per line. The fields are tab-delimited.- Field 1 โ plugin library/Lua script/extcap executable (e.g.
"gryphon.so") - Field 2 โ plugin version (e.g.
0.0.4) - Field 3 โ plugin type (
"dissector","tap","file type", etc.) - Field 4 โ full path to plugin file
- Field 1 โ plugin library/Lua script/extcap executable (e.g.
protocolsโ Dumps the protocols in the registration database to stdout ๐. An independent program can take this output and format it into nice tables or HTML or whatever. There is one record per line. The fields are tab-delimited.- Field 1 โ protocol name
- Field 2 โ protocol short name
- Field 3 โ protocol filter name
- Field 4 โ protocol enabled (e.g.
"T"or"F") - Field 5 โ protocol enabled by default (e.g.
"T"or"F") - Field 6 โ protocol can toggle (e.g.
"T"or"F")
servicesโ Dumps the TCP, UDP, and SCTP transport service (port) table ๐valuesโ Dumps thevalue_strings,range_stringsor true/false strings for fields that have them ๐. There is one record per line. Fields are tab-delimited. There are three types of records: Value String, Range String and True/False String. The first field,'V','R'or'T', indicates the type of record.
Value Strings
- Field 1 โ
'V' - Field 2 โ field abbreviation to which this value string corresponds
- Field 3 โ Integer value
- Field 4 โ String
Range Strings
- Field 1 โ
'R' - Field 2 โ field abbreviation to which this range string corresponds
- Field 3 โ Integer value: lower bound
- Field 4 โ Integer value: upper bound
- Field 5 โ String
True/False Strings
- Field 1 โ
'T' - Field 2 โ field abbreviation to which this true/false string corresponds
- Field 3 โ True String
- Field 4 โ False String
-h|--helpโ Print the version number and options and exit. baby's first flag, we love a safe exit ๐.-H<input hosts file> โ Read a list of entries from a"hosts"file, which will then be written to a capture file ๐. Implies-W n. Can be called multiple times.
The "hosts" file format is documented at https://en.wikipedia.org/wiki/Hosts_(file).
-i|--interface<capture interface> |-โ Set the name of the network interface or pipe to use for live packet capture ๐ฆ.
Network interface names should match one of the names listed in "strato -D" (described above); a number, as reported by "strato -D", can also be used.
If no interface is specified, strato searches the list of interfaces, choosing the first non-loopback interface if there are any non-loopback interfaces, and choosing the first loopback interface if there are no non-loopback interfaces. If there are no interfaces at all, strato reports an error and doesn't start the capture. bestie really said "no interfaces, no service" ๐.
Pipe names should be either the name of a FIFO (named pipe) or - to read data from the standard input. On Windows systems, pipe names must be of the form "\\.\pipe\pipename". Data read from pipes must be in standard pcapng or pcap format. Pcapng data must have the same endianness as the capturing host.
"TCP@<host>:<port>" causes strato to attempt to connect to the specified port on the specified host and read pcapng or pcap data ๐.
This option can occur multiple times. When capturing from multiple interfaces, the capture file will be saved in pcapng format.
-j<protocol match filter> โ Protocol match filter used forek|json|jsonraw|pdmloutput file types. Only the protocol's parent node is included. Child nodes are only included if explicitly specified in the filter ๐.
Example: strato -T json -j "ip ip.flags http"
-J<protocol match filter> โ Protocol top level filter used forek|json|jsonraw|pdmloutput file types. The protocol's parent node and all child nodes are included ๐ธ. Lower-level protocols must be explicitly specified in the filter.
Example: strato -T pdml -J "tcp http"
-lโ Flush the standard output after the information for each packet is printed ๐ฟ. (This is not, strictly speaking, line-buffered if-Vwas specified; however, it is the same as line-buffered if-Vwasn't specified, as only one line is printed for each packet, and, as-lis normally used when piping a live capture to a program or script, so that output for a packet shows up as soon as the packet is seen and dissected, it should work just as well as true line-buffering. We do this as a workaround for a deficiency in the Microsoft Visual C++ C library.) This also sets--update-intervalto0 ms.
This may be useful when piping the output of strato to another program, as it means that the program to which the output is piped will see the dissected data for a packet as soon as strato sees the packet and generates that output, rather than seeing it only when the standard output buffer containing that data fills up. no more waiting around, we're impatient and proud ๐ .
-L|--list-data-link-typesโ List the data link types supported by the interface and exit. The reported link types can be used for the-yoption โญ.-o<preference>:<value> โ Set a preference value, overriding the default value and any value read from a preference file ๐. The argument to the option is a string of the formprefname:value, whereprefnameis the name of the preference (which is the same name that would appear in the preference file), andvalueis the value to which it should be set.
Note strato does not save preferences, so use this for temporary changes for a single execution ๐. To permanently set a preference, change it in the Wireshark GUI or edit the preference file directly, creating multiple configuration profiles if you need different preference sets for different occasions.
-O<protocols> โ Similar to the-Voption, but causes strato to only show a detailed view of the comma-separated list of protocols specified, and show only the top-level detail line for all other protocols, rather than a detailed view of all protocols ๐. Use the output of"strato -G protocols"to find the abbreviations of the protocols you can specify.-P|--printโ Decode and display the packet summary or details, even if writing raw packet data using the-woption, and even if packet output is otherwise suppressed with-Q๐ฅ. main character energy: it prints anyway.-qโ When capturing packets, don't display the continuous count of packets captured that is normally shown when saving a capture to a file; instead, just display, at the end of the capture, a count of packets captured ๐คซ. On systems that support theSIGINFOsignal, such as various BSDs, you can cause the current count to be displayed by typing your"status"character (typically control-T, although it might be set to"disabled"by default on at least some BSDs, so you'd have to explicitly set it to use it).
When reading a capture file, or when capturing and not saving to a file, don't print packet information; this is useful if you're using a -z option to calculate statistics and don't want the packet information printed, just the statistics ๐งฎ.
-Qโ
Ok so the last option blurb wasn't done yet โ finishing that thought, bestie ๐ :
-qโ when you're capturing packets, this shuts up the standard-error chatter: no initial message telling you which interfaces the capture is happening on, no continuous packet count while saving to a file, and no final "here's how many packets we got" message. Only actual errors make it to stderr. Ngl this outputs even less than the-qoption itself would โ so the interface name, the total packet count, and the end-of-capture notice never hit stderr. And when you're reading a capture file (or capturing without saving to a file), it also won't print packet info โ which is chef's kiss if you're using a-zoption to calculate stats and you want just the stats, not the packet noise. โจ
-r,--read-file<infile>โ reads packet data frominfile, and it can be literally any supported capture file format (compressed files included, we love a zip ๐). You can use named pipes or stdin (-) here, but only with certain capture file formats โ specifically: the ones that can be read without seeking backwards. iykyk.
Tip ๐ก โ reading a live capture from the standard out of another process through a pipe can circumvent restrictions that apply to strato during live capture, such as file formats or compression. Sneaky but legit.
-R,--read-filter<Read filter>โ makes the filter you give it (which uses read/display filter syntax, not capture filter syntax) get applied during the first pass of analysis. Packets that don't match the filter are simply not considered for future passes. Only makes sense with multiple passes, see-2. For regular filtering on a single-pass dissect, use-Yinstead. ๐ฆ
Heads up fr fr: forward-looking fields like 'response in frame #' can't be used with this filter, because they won't have been calculated yet when the filter is applied. ๐ญ
-s,--snapshot-length<capture snaplen>โ sets the default snapshot length to use when capturing live data. No more thansnaplenbytes of each network packet get read into memory, or saved to disk. A value of0specifies a snapshot length of262144, so the full packet is captured โ and that's the default, periodt. ๐
This option can occur multiple times, which is lowkey powerful: if you use it before the first occurrence of the -i option, it sets the default snapshot length. If you use it after an -i option, it sets the snapshot length for the interface specified by the last -i option occurring before this option. And if the snapshot length isn't set specifically? The default snapshot length is used if provided.
-S<separator>โ sets the line separator to be printed between packets. Cute and simple. ๐-Tek|fields|json|jsonraw|pdml|ps|psml|tabs|textโ sets the format of the output when you're viewing decoded packet data. The options are one of:ekโ newline delimited JSON format for bulk import into Elasticsearch. It can be used with-jor-Jto specify which protocols to include, or with-xto include raw hex-encoded packet data. If-Pis specified it'll print the packet summary only; with both-Pand-Vit prints the packet summary and packet details. If neither-Pnor-Vare used it prints the packet details only. Example of usage to import data into Elasticsearch:
strato -T ek -j "http tcp ip" -P -V -x -r file.pcap > file.json
curl -H "Content-Type: application/x-ndjson" -XPOST http://elasticsearch:9200/_bulk --data-binary "@file.json"
Elastic requires a mapping file to be loaded as template for packets-* index in order to convert Wireshark types to elastic types. This file can be auto-generated with the command "strato -G elastic-mapping". Since the mapping file can be huge, protocols can be selected by using the option --elastic-mapping-filter:
strato -G elastic-mapping --elastic-mapping-filter ip,udp,dns
or by adding the filter directly to the -G elastic-mapping option:
strato -G elastic-mapping,ip,udp,dns
fieldsโ the values of fields specified with the-eoption, in a form specified by the-Eoption. For example,
strato -T fields -E separator=, -E quote=d
would generate comma-separated values (CSV) output suitable for importing into your favorite spreadsheet program. ๐ slay.
jsonโ JSON file format. It can be used with-jor-Jto specify which protocols to include, or with-xoption to include raw hex-encoded packet data. Example of usage:
strato -T json -r file.pcap
strato -T json -j "http tcp ip" -x -r file.pcap
jsonrawโ JSON file format including only raw hex-encoded packet data. It can be used with-jor-Jto specify which protocols to include. Example of usage:
strato -T jsonraw -r file.pcap
strato -T jsonraw -j "http tcp ip" -x -r file.pcap
pdmlโ Packet Details Markup Language, an XML-based format for the details of a decoded packet. This information is equivalent to the packet details printed with the-Voption. Using the--coloroption will add color attributes topdmloutput โ these attributes are nonstandard, just so you know. ๐psโ PostScript for a human-readable one-line summary of each of the packets, or a multi-line view of the details of each of the packets, depending on whether the-Voption was specified.psmlโ Packet Summary Markup Language, an XML-based format for the summary information of a decoded packet. This information is equivalent to the information shown in the one-line summary printed by default. Using the--coloroption will add color attributes topdmloutput โ these attributes are nonstandard. (Yes, the page sayspdmlhere too. We're just the messengers ๐ซถ)tabsโ similar to the default text report, except the human-readable one-line summary of each packet will include an ASCII horizontal tab (0x09) character as a delimiter between each column. Tab girlies rise ๐textโ text of a human-readable one-line summary of each of the packets, or a multi-line view of the details of each of the packets, depending on whether the-Voption was specified. This is the default.
--temp-dir<directory>โ specifies the directory into which temporary files (capture files included) are to be written. The default behavior on UNIX-compatible systems, such as Linux, macOS,\*BSD, Solaris, and AIX, is to use the environment variable$TMPDIRif set, and the system default, typically/tmp, if it is not. On Windows, the%TEMP%environment variable is used, which typically defaults to%USERPROFILE%\AppData\Local\Temp. ๐๏ธ-U<tap name>โ PDUs export, exports PDUs frominfiletooutfileaccording to the tap name given. Use-Yto filter. ๐ฅ
Enter an empty tap name "" or a tap name of ? to get a list of available names. Free list, no cap.
-v,--versionโ print the full version information and exit. Main character moment, honestly. โญ-Vโ causesstratoto print a view of the packet details. ๐-w<outfile>|-โ write raw packet data tooutfile, or to the standard output ifoutfileis'-'. The-Fand--compressoptions can be used to control the file format and compression method. If the latter is not given, then the extension may be used to deduce the desired compression algorithm, if supported โ e.g. a gzip archive for'.gz'. ๐
Note โ-wprovides raw packet data, not text. If you want text output you need to redirect stdout (e.g. using'>'), don't use the-woption for this. For real, this trips everyone up. ๐
-W<file format option>โ save extra information in the file if the format supports it. For example,
strato -F pcapng -W n
will save host name resolution records along with captured packets.
Future versions of strato may automatically change the capture format to pcapng as needed. (Future us is so organized.)
The argument is a string that may contain the following letter:
nโ write network address resolution information (pcapng only)
-xโ causesstratoto print a hex and ASCII dump of the packet data after printing the summary and/or details, if either are also being displayed. ๐ฆ--hexdump<hexoption>โ causesstratoto print a hex and ASCII dump of the packet data, with the ability to select which data sources to dump, how to format or exclude the ASCII dump text, and whether to print the frame timestamp as preamble. Obsessed with the flexibility ngl. ๐
This option (and -x) can occur multiple times on the command line, and the hex dump will only be printed once. In the case of conflicting options, the last options given will be used. The possible <hexoption> values are:
allโ enable hexdump, generate hexdump blocks for all data sources associated with each frame. Used to negate earlier use of--hexdump frames. The-xoption displays all data sources by default.framesโ enable hexdump, generate hexdump blocks only for the frame data. Use this option to exclude from hexdump output any hexdump blocks for secondary data sources such as'Bitstring tvb','Reassembled TCP','De-chunked entity body', etc.asciiโ enable hexdump, with undelimited ASCII dump text. Used to negate earlier use of--hexdump delimitor--hexdump noascii. The-xoption displays undelimited ASCII dump text by default.delimitโ enable hexdump with the ASCII dump text delimited with'|'characters. This is useful to unambiguously determine the last of the hex byte text and start of the ASCII dump text.noasciiโ enable hexdump without printing any ASCII dump text. ๐timeโ enable hexdump and print each frame timestamp as preamble. The-toption can be used to change the timestamp format. โฐnotimeโ enable hexdump without print each frame timestamp as preamble. (Yes, that's how it's phrased. We keep the lore.)helpโ display--hexdumpspecific help then exit. ๐ซถ
The use of --hexdump <hexoption> is particularly useful to generate output that can be used to create a pcap or pcapng file from a capture file type such as Microsoft NetMon 2.x which strato and Wireshark can read but can not directly do a "Save as" nor export packets from. That's the whole ~vibe~ of it.
Examples:
Generate hexdump output, with only the frame data source, with delimited ASCII dump text, and with each frame hex block preceded by a human readable timestamp in the local time zone that is directly usable by the text2pcap utility:
strato ... --hexdump frames --hexdump delimit --hexdump time -t ad \
| text2pcap -t 'ISO' - MYNEWPCAPNG
...okay so if you want a hexdump where the only data source is the frame data, with the default ASCII dump text and no delimiter, and every frame's hex block gets a human-readable timestamp in UTC that text2pcap can eat directly with its -a option โ do this:
strato ... --hexdump frames --hexdump time -t ud \
| text2pcap -a -t 'ISO' - MYNEWPCAPNG
And if you'd rather have no ASCII dump text at all, with each frame's hex block fronted by an epoch timestamp that's also directly usable by text2pcap โ then:
strato ... --hexdump frames --hexdump noascii --hexdump time -t e \
| text2pcap -t %s.%f - MYNEWPCAPNG
-X <eXtension options>โ bestie, this is the "pass a lil something extra to a strato module" flag ๐ . The eXtension option is shaped likeextension_key:value, andextension_keycan be any of these:lua_script:lua_script_filenameโ tellsstratoto load the script you named, in addition to the default Lua scripts. ๐งlua_scriptnum:argumentโ tellsstratoto pass your argument to the lua script identified by num, which is the number indexed order of thelua_scriptcommand. For example, if only one script was loaded with-X lua_script:my.lua, then-X lua_script1:foowill pass the string'foo'to the'my.lua'script. And if two scripts were loaded โ say-X lua_script:my.luaand-X lua_script:other.lua, in that order โ then a-X lua_script2:barwould pass the string'bar'to the second lua script, namely'other.lua'. iykyk โจread_format:file_formatโ tellsstratoto use the given file format to read in the file (the file you gave with the-rcommand option). If you provide nofile_formatargument, or an invalid one, it'll produce a list of available file formats to use. Like so:
strato -r rtcp_broken.pcapng -X read_format:"MIME Files Format" -V
and that'll display the internal file structure and allow access to the file-pcapng fields. ๐ซถ
-Y,--display-filter <displaY filter>โ makes the specified filter (and heads up: this uses the syntax of read/display filters, not capture filters) get applied before printing a decoded form of packets or writing packets to a file. Packets matching the filter are printed or written to file; packets that the matching packets depend upon (e.g., fragments) are not printed but are written to file; packets that don't match the filter and aren't depended upon get discarded rather than printed or written. ๐
Use this instead of -R for filtering using single-pass analysis. If you're doing two-pass analysis (see -2) then only packets matching the read filter (if there is one) will be checked against this filter.
-M <auto session reset>โ automatically resets the internal session when it reaches the specified number of packets. For example:
strato -M 100000
will reset session every 100000 packets. ๐
Just so you know: this feature does not support -2 two-pass analysis. ๐
-z <statistics>โ getsstratoto collect various types of statistics and display the result after it finishes reading the capture file. Use the-qoption if you're reading a capture file and only want the statistics printed, not any per-packet info.
Statistics are calculated independently of the normal per-packet output, unaffected by the main display filter. However, most have their own optional filter parameter, and only packets that match that filter (and any capture filter or read filter) will be used in the calculations. ๐ธ
Heads up, the-z protooption is different โ it doesn't cause statistics to be gathered and printed when the capture is complete, it modifies the regular packet summary output to include the values of fields specified with the option. So therefore you must not use the-qoption (that would suppress the printing of the regular packet summary output), and you must also not use the-Voption (that would cause packet detail information rather than packet summary information to be printed). No cap. โญ
Some of the currently implemented statistics are:
-z helpโ display all possible values for-z. ๐-z container_io,tree[,filter]โ calculate file I/O statistics for containers.-z expert[,error|,warn|,note|,chat|,comment][,filter]โ collects information about all expert info, and will display them in order, grouped by severity.
Example: -z expert,sip will show expert items of all severity for frames that match the sip protocol. ๐
This option can be used multiple times on the command line.
Example: -z "expert,note,tcp" will only collect expert items for frames that include the tcp protocol, with a severity of note or higher.
--capture-comment <comment>โ add a capture comment to the output file, if it's supported by the output file format. ๐ฆ
This option may be specified multiple times. Note that Wireshark currently only displays the first comment of a capture file. (first one gets main character energy, the rest are just... there ๐ญ)
--list-time-stamp-typesโ list the time stamp types supported for the interface. If no time stamp type can be set, no time stamp types are listed.--time-stamp-type <type>โ change the interface's timestamp method. โจ--update-interval <interval>โ set the length of time in milliseconds between new packet reports during a capture. Also sets the granularity of file duration conditions. The default value is100ms.--colorโ enable coloring of packets according to standard Wireshark color filters. On Windows, colors are limited to the standard console character attribute colors. Other platforms require a terminal that handles 24-bit "true color" terminal escape sequences. Seehttps://wiki.wireshark.org/ColoringRulesfor more information on configuring color filters. ๐--no-duplicate-keysโ if a key appears multiple times in an object, only write it a single time with as value a json array containing all the separate values. (Only works with-T json)--elastic-mapping-filter <protocol>,<protocol>,...โ when generating the ElasticSearch mapping file, only put the specified protocols in it, to avoid a huge mapping file that can choke some software (such as Kibana). The option takes a list of wanted protocol abbreviations, separated by comma. ๐
Example: ip,udp,dns puts only those three protocols in the mapping file.
--export-objects <protocol>,<destdir>โ export all objects within a protocol into the directory destdir. The available values for protocol can be listed with--export-objects help.
The objects are directly saved in the given directory. Filenames are dependent on the dissector, but typically it's named after the basename of a file. Duplicate files are not overwritten โ instead an increasing number is appended before the file extension. ๐
This interface is subject to change, adding the possibility to filter on files. So like, don't get too attached to it exactly as-is. ๐
--print-timersโ output JSON containing elapsed times for each passstratodoes to process a capture file, and the sum elapsed time for all passes. The per-pass output contains the total elapsed time and aggregate counters for per-packet operations (dissection and filtering). ๐ฅ--compress <type>โ compress the output file using the type compression format.--compresswith no argument provides a list of the compression formats supported for writing. The type you give takes precedence over the extension of outfile. ๐
๐ DISSECTION OPTIONS ๐
Okay bestie, this whole cluster is about telling the dissectors exactly what to do โ like Wiresharkโs Decode As... feature, but make it command-line. ๐
-d <layer type>==<selector>,<decode-as protocol>โ Like WiresharkโsDecode As...feature, this lets you specify how a layer type should be dissected. If the layer type in question (for example,tcp.portorudp.portfor a TCP or UDP port number) has the specified selector value, packets should be dissected as the specified protocol.
Example 1. Decode As Port
-d tcp.port==8888,http
will decode any traffic running over TCP port 8888 as HTTP.
Example 2. Decode As Port Range
-d tcp.port==8888-8890,http
will decode any traffic running over TCP ports 8888, 8889 or 8890 as HTTP.
Example 3. Decode As Port Range via Length
-d tcp.port==8888:3,http
will decode any traffic running over the three TCP ports 8888, 8889 or 8890 as HTTP.
Using an invalid selector or protocol will print out a list of valid selectors and protocol names, respectively.
Example 4. Decode As List of Selectors
-d .
is a quick way to get a list of valid selectors.
Example 5. Decode As List of Values for a Selector
-d ethertype==0x0800,.
is a quick way to get a list of protocols that can be selected with an ethertype.
--disable-all-protocolsโ Disable dissection of all protocols. ๐--disable-protocol <proto_name>[,<proto_name>,...]โ Disable dissection ofproto_name. Use aproto_nameofALLto override your chosen profileโs default enabled protocol list and temporarily disable all protocols.--disable-heuristic <short_name>โ Disable dissection of heuristic protocol.--enable-protocol <proto_name>[,<proto_name>,...]โ Enable dissection ofproto_name. Use aproto_nameofALLto override your chosen profileโs default disabled protocol list and temporarily enable all protocols which are enabled by default.
If a protocol is implicated in both --disable-protocol and --enable-protocol, the protocol is enabled. This allows you to temporarily disable all protocols but a list of exceptions. Example: --disable-protocol ALL --enable-protocol eth,ip
--enable-heuristic <short_name>โ Enable dissection of heuristic protocol.-K <keytab>โ Load kerberos crypto keys from the specified keytab file. This option can be used multiple times to load keys from several files.
Example: -K krb5.keytab
-nโ Disable network object name resolution (such as hostname, TCP and UDP port names); the-Noption might override this one.-N <name resolving flags>โ Turn on name resolving only for particular types of addresses and port numbers, with name resolving for other types of addresses and port numbers turned off. This option (along with-n) can be specified multiple times; the last value given overrides earlier ones. This option and-noverride the options from the preferences, including preferences set via the-ooption. If both-Nand-noptions are not present, the values from the preferences are used, which default to-N dmN.
The argument is a string that may contain the letters:
dโ to enable resolution from captured DNS packetsgโ to enable IP address geolocation information lookup from configured MaxMind databasesmโ to enable MAC address resolutionnโ to enable network address resolutionNโ to enable using external resolvers (e.g., DNS) for network address resolution; no effect withoutnalso enabled.sโ to enable address resolution using SNI information found in captured handshake packetstโ to enable transport-layer port number resolutionvโ to enable VLAN IDs to names resolution
โ ๏ธ Caution: In tshark single-pass mode, external resolution and geolocation lookup is performed synchronously. For live captures, which are always in single-pass mode, this makes it more difficult for dissection to keep up with a busy network, possibly leading to dropped packets. ๐ญ
--only-protocols <protocols>โ Only enable dissection of these protocols, comma separated. Disable everything else.-t (a|ad|adoy|d|dd|e|r|u|ud|udoy)[.[N]]|.[N]โ Set the format of the packet timestamp displayed in the default time column. The format can be one of:aabsolute: The absolute time, as local time in your time zone, is the actual time the packet was captured, with no date displayedadabsolute with date: The absolute date, displayed asYYYY-MM-DD, and time, as local time in your time zone, is the actual time and date the packet was capturedadoyabsolute with date using day of year: The absolute date, displayed asYYYY/DOY, and time, as local time in your time zone, is the actual time and date the packet was capturedddelta: The delta time is the time since the previous packet was captureddddelta_displayed: The delta_displayed time is the time since the previous displayed packet was capturedeepoch: The time in seconds since epoch (Jan 1, 1970 00:00:00)rrelative: The relative time is the time elapsed between the first packet and the current packetuUTC: The absolute time, as UTC with a"Z"suffix, is the actual time the packet was captured, with no date displayedudUTC with date: The absolute date, displayed asYYYY-MM-DD, and time, as UTC with a"Z"suffix, is the actual time and date the packet was capturedudoyUTC with date using day of year: The absolute date, displayed asYYYY/DOY, and time, as UTC with a"Z"suffix, is the actual time and date the packet was captured.[N]Set the precision:Nis the number of decimals (0 through 9). If using"."withoutN, automatically determine precision from trace.
The default format is relative with precision based on capture format.
-u <s|hms>โ Specifies how packet timestamp formats in-twhich are relative times (i.e.relative,delta, anddelta_displayed) are displayed. Valid choices are:sfor secondshmsfor hours, minutes, and seconds
The default format is seconds.
๐ฉบ DIAGNOSTIC OPTIONS ๐ฉบ
These are the โwhat is this program even doingโ knobs, and honestly they ate. ๐ฅ
--log-level <level>โ Set the active log level. Supported levels in lowest to highest order are"noisy","debug","info","message","warning","critical", and"error". Messages at each level and higher will be printed, for example"warning"prints"warning","critical", and"error"messages and"noisy"prints all messages. Levels are case insensitive.--log-fatal <level>โ Abort the program if any messages are logged at the specified level or higher. For example,"warning"aborts on any"warning","critical", or"error"messages.--log-domains <list>โ Only print messages for the specified log domains, e.g."GUI,Epan,sshdump". List of domains must be comma-separated. Can be negated with"!"as the first character (inverts the match).--log-debug <list>โ Force the specified domains to log at the"debug"level. List of domains must be comma-separated. Can be negated with"!"as the first character (inverts the match).--log-noisy <list>โ Force the specified domains to log at the"noisy"level. List of domains must be comma-separated. Can be negated with"!"as the first character (inverts the match).--log-fatal-domains <list>โ Abort the program if any messages are logged for the specified log domains. List of domains must be comma-separated.--log-file <path>โ Write log messages and stderr output to the specified file.
๐ธ FILES ๐ธ
These files contain various Wireshark configuration settings. ๐ซถ
๐ Preferences ๐
The preferences files contain global (system-wide) and personal preference settings. If the system-wide preference file exists, it is read first, overriding the default settings. If the personal preferences file exists, it is read next, overriding any previous values. Note: If the command line flag -o is used (possibly more than once), it will in turn override values from the preferences files.
The preferences settings are in the form prefname:value, one per line, where prefname is the name of the preference and value is the value to which it should be set; white space is allowed between : and value. A preference setting can be continued on subsequent lines by indenting the continuation lines with white space. A # character starts a comment that runs to the end of the line:
# Vertical scrollbars should be on right side?
# TRUE or FALSE (case-insensitive).
gui.scrollbar_on_right: TRUE
The global preferences file is looked for in the wireshark directory under the share subdirectory of the main installation directory. On macOS, this would typically be /Application/Wireshark.app/Contents/Resources/share; on other UNIX-compatible systems, such as Linux, *BSD, Solaris, and AIX, this would typically be /usr/share/wireshark/preferences for system-installed packages and /usr/local/share/wireshark/preferences for locally-installed packages; on Windows, this would typically be C:\Program Files\Wireshark\preferences.
On UNIX-compatible systems, the personal preferences file is looked for in $XDG_CONFIG_HOME/wireshark/preferences, (or, if $XDG_CONFIG_HOME/wireshark does not exist while $HOME/.wireshark does exist, $HOME/.wireshark/preferences); this is typically $HOME/.config/wireshark/preferences. On Windows, the personal preferences file is looked for in %APPDATA%\Wireshark\preferences (or, if %APPDATA% isnโt defined, %USERPROFILE%\Application Data\Wireshark\preferences).
๐ Disabled (Enabled) Protocols ๐
The disabled_protos files contain system-wide and personal lists of protocols that have been disabled, so that their dissectors are never called. The files contain protocol names, one per line, where the protocol name is the same name that would be used in a display filter for the protocol:
http
tcp # a comment
If a protocol is listed in the global disabled_protos file it cannot be enabled by the user.
The global disabled_protos file uses the same directory as the global preferences file.
The personal disabled_protos file uses the same directory as the personal preferences file.
...the disabled_protos files only ever list protocols that are enabled by default but have been turned off โ protocols that ship disabled (like some postdissectors) do not show up in there at all. And yes bestie, there's a mirror situation: the analogous enabled_protos files exist for protocols that are disabled by default but that you've gone and enabled. ๐
โจ Heuristic Dissectors โจ
The heuristic_protos files are where the system-wide and personal lists of heuristic dissectors live, and they also tell you whether each one is enabled or disabled. Each file contains heuristic dissector unique short names, one per line, then a comma, then 0 for disabled or 1 for enabled:
quic,1
rtcp_stun,1
rtcp_udp,1
rtp_stun,0
rtp_udp,0
tls_tcp,1
The global heuristic_protos file chills in the same directory as the global preferences file. ๐๏ธ
The personal heuristic_protos file uses the same directory as the personal preferences file. ๐
๐ Name Resolution (hosts) ๐
Entries in hosts files inside the global and personal preferences directories get used to resolve IPv4 and IPv6 addresses before any other attempts are made to resolve them. The file has the standard hosts file syntax: every line is one IP address and one name, separated by whitespace. And if the personal hosts file is there, it overrides the one in the global directory. ๐
Capture filter name resolution is handled by libpcap on UNIX-compatible systems โ think Linux, macOS, *BSD, Solaris, and AIX โ and by Npcap on Windows. Which means, sadly, the Wireshark personal hosts file will not be consulted for capture filter name resolution. ๐ญ
๐ฆ Name Resolution (subnets) ๐ฆ
If an IPv4 address can't be translated via name resolution (no exact match, rip), then a partial match is attempted through the subnets file. Both the global subnets file and personal subnets files get used if they exist. โจ
Each line of this file is an IPv4 address, a subnet mask length with only a / between them, and a name separated by whitespace. The address has to be a full IPv4 address, but any values beyond the mask length are just ignored afterwards. ๐
An example is:
# Comments must be prepended by the # sign!
192.168.0.0/24 ws_test_network
A partially matched name prints out as "subnet-name.remaining-address". So for example, "192.168.0.1" under the subnet above would print as "ws_test_network.1" โ and if that mask length had been 16 instead of 24, the printed address would be "ws_test_network.0.1". Math is giving, honestly. ๐งฎ
๐ Name Resolution (ethers) ๐
The ethers files get consulted to correlate 6-byte EUI-48 and 8-byte EUI-64 hardware addresses to names. The personal ethers file is tried first, and if the address isn't found there, the global ethers file is tried next. ๐ต๏ธ
The format is similar to what ethers(5) defines on some UNIX-like systems. Every line is one hardware address and one name, separated by whitespace (tabs or spaces). The hex digits of the hardware address are separated by colons (:), dashes (-) or periods (.). And heads up โ the same separator character must be used consistently in an address. A # starts a comment that runs to the rest of the line. Both 6-byte MAC and 8-byte EUI-64 addresses are supported. These four lines are all valid lines of an ethers file:
ff:ff:ff:ff:ff:ff Broadcast
c0-00-ff-ff-ff-ff TR_broadcast
00.00.00.00.00.00 Zero_broadcast
00:00:00:00:00:00:00:00 EUI64_zero_broadcast
Note that this accepts a greater variety of formats than the file defined by ethers(5) on most UN*X systems. Iconic of it, tbh.
The global ethers file is looked for in the /etc directory on UNIX-compatible systems โ like Linux, macOS, *BSD, Solaris, and AIX โ and in the main installation directory (for example, C:\Program Files\Wireshark) on Windows systems. ๐ช
The personal ethers file is looked for in the same directory as the personal preferences file. ๐
Capture filter name resolution is handled by libpcap on UNIX-compatible systems and Npcap on Windows. So again โ the Wireshark personal ethers file will not be consulted for capture filter name resolution. ๐
โญ Name Resolution (manuf) โญ
The manuf file matches the 3-byte vendor portion of a 6-byte hardware address against the manufacturer's name. It can also hold well-known MAC addresses and address ranges specified with a netmask. Format's similar to the ethers files, except you can provide entries like:
00:00:0C Cisco Cisco Systems, Inc
...with the 3-byte OUI plus both an abbreviated and a long name for a vendor. And entries like:
00-00-0C-07-AC/40 All-HSRP-routers
...with a MAC address and a mask saying how many bits of the address must match. That entry up there has 40 significant bits, or 5 bytes, and it would match addresses from 00-00-0C-07-AC-00 through 00-00-0C-07-AC-FF. The mask doesn't even have to be a multiple of 8. ๐คฏ
A global manuf file is looked for in the same directory as the global preferences file, and a personal manuf file is looked for in the same directory as the personal preferences file. ๐๏ธ
In earlier versions of Wireshark, official info from the IEEE Registration Authority was distributed in this format as the global manuf file. That info is now compiled in to speed up program startup โ but you can still write the internal info out in this format with tshark -G manuf. ๐โโ๏ธ๐จ
On top of the manuf file, another file with the same format, wka, is looked for in the global directory. That one ships with Wireshark and contains data about well-known MAC addresses and address ranges assembled from various non-IEEE but respected sources. Respect where respect is due. ๐ซถ
๐ Name Resolution (services) ๐
The services file translates port numbers into names. Both the global services file and personal services files are used if they exist. ๐
Standard services file syntax, bestie: every line has one (service) name and one transport identifier separated by white space. The transport identifier is one port number plus one transport protocol name (typically tcp, udp, or sctp) with a / between them.
An example is:
mydns 5045/udp # My own Domain Name Server
mydns 5045/tcp # My own Domain Name Server
In earlier versions of Wireshark, official info from the IANA Registry was distributed in this format as the global services file. It's now compiled in to speed up program startup, but the internal info can be written out in this format with tshark -G services. โจ
๐ธ Name Resolution (ipxnets) ๐ธ
The ipxnets files correlate 4-byte IPX network numbers to names. The global ipxnets file is tried first, and if that address isn't found there, the personal one is tried next. ๐
Format is the same as the ethers file, except each address is four bytes instead of six. Bonus: the address can also be written as a single hexadecimal number โ way more common in the IPX world โ rather than four hex octets. For example, these four lines are valid lines of an ipxnets file:
C0.A8.2C.00 HR
c0-a8-1c-00 CEO
00:00:BE:EF IT_Server1
110f FileServer3
The global ipxnets file is looked for in the /etc directory on UNIX-compatible systems โ Linux, macOS, *BSD, Solaris, and AIX โ and in the main installation directory (for example, C:\Program Files\Wireshark) on Windows systems. ๐ช
The personal ipxnets file is looked for in the same directory as the personal preferences file. ๐
๐ Name Resolution (ss7pcs) ๐
The ss7pcs file translates SS7 point codes into names. It's read from the personal configuration directory. ๐
Every line in this file is one network indicator, then a dash, then a point code in decimal, then a node name separated by whitespace. An example is:
2-1234 MyPointCode1
๐ง Name Resolution (vlans) ๐ง
The vlans file translates VLAN tag IDs into names. It's read from the personal configuration directory too. ๐๏ธ
Every line here is one VLAN tag ID separated by whitespace from a name. An example is:
123 Server-Lan
2049 HR-Client-LAN
๐ Color Filters (Coloring Rules) ๐
The colorfilters files hold system-wide and personal color filters. Every line is one filter: it starts with the string displayed in the dialog box, then the corresponding display filter, then the background and foreground colors get appended onto the end:
# a comment
@tcp@tcp@[59345,58980,65534][0,0,0]
@udp@udp@[28834,57427,65533][0,0,0]
The global colorfilters file uses the same directory as the global preferences file. ๐๏ธ
The personal colorfilters file uses the same directory as the personal preferences file, and it's written through the View:Coloring Rules dialog. ๐จ
If the globalcolorfiltersfile exists, it is used only if the personalcolorfiltersfile does not exist โ global and personal color filters are not merged. No blending, no combining, it's one or the other. ๐
๐ฅ Plugins ๐ฅ
Wireshark looks for plugins in both a personal plugin folder and a global plugin folder. ๐
On UNIX-compatible systems โ Linux, macOS, *BSD, Solaris, and AIX โ the global plugin directory is lib/wireshark/plugins/ (on some systems substitute lib64 for lib) under the main installation directory (for example, /usr/local/lib/wireshark/plugins/). The personal plugin directory is $HOME/.local/lib/wireshark/plugins. ๐ง
On macOS, if Wireshark is installed as an application bundle, the global plugin folder is instead %APPDIR%/Contents/PlugIns/wireshark. ๐
On Windows, the global plugin folder is plugins/ under the main installation directory (for example, C:\Program Files\Wireshark\plugins\). The personal plugin folder is %APPDATA%\Wireshark\plugins (or, if %APPDATA% isn't defined, %USERPROFILE%\Application Data\Wireshark\plugins). ๐ช
So like, Lua plugins live in the plugin folders, and the compiled ones go in subfolders of those plugin folders โ and the subfolder name is literally the Wireshark minor version number (X.Y). โจ There's another hierarchical level for each Wireshark plugin type (libwireshark, libwiretap and codecs). So for example, the location for a libwireshark plugin foo.so (foo.dll on Windows) would be PLUGINDIR/X.Y/epan (fun fact bestie: libwireshark used to be called libepan; the other folder names are codecs and wiretap).
Note ๐ On UNIX-compatible systems, Lua plugins (but not binary plugins) may also be placed in$XDG_CONFIG_HOME/wireshark/plugins, (or, if$XDG_CONFIG_HOME/wiresharkdoes not exist while$HOME/.wiresharkdoes exist,$HOME/.wireshark/plugins.)
Also key to know: a dissector plugin module may support more than one protocol โ there is not necessarily a one-to-one correspondence between dissector plugin modules and protocols. Protocols supported by a dissector plugin module get enabled and disabled in exactly the same way as protocols built into Wireshark. No cap. ๐ฆ
๐ OUTPUT ๐
okay so strato uses UTF-8 to represent strings internally. But sometimes the output might not be valid โ like, a dissector might generate invalid UTF-8 character sequences. Programs reading strato output should expect UTF-8 and be prepared for invalid output. ๐
If strato detects that it's writing to a TTY on a UNIX-compatible system, such as Linux, macOS, \*BSD, Solaris, and AIX, and the locale does not support UTF-8, output will be re-encoded to match the current locale.
If strato detects that it's writing to the console on Windows, dissection output will be encoded as UTF-16LE. Other output will be UTF-8. If extended characters don't display properly in your terminal you might try setting your console code page to UTF-8 (chcp 65001) and using a modern terminal application if possible. ๐ซถ
๐ ENVIRONMENT VARIABLES ๐
WIRESHARK_CONFIG_DIRโ this environment variable overrides the location of personal configuration files. On UNIX-compatible systems, such as Linux, macOS,\*BSD, Solaris, and AIX, it defaults to$XDG_CONFIG_HOME/wireshark(or, if that directory doesn't exist but$HOME/.wiresharkdoes exist,$HOME/.wireshark); this is typically$HOME/.config/wireshark. On Windows, it defaults to%APPDATA%\Wireshark(or, if%APPDATA%isn't defined,%USERPROFILE%\Application Data\Wireshark). Available since Wireshark 3.0. โญWIRESHARK_DEBUG_WMEM_OVERRIDEโ setting this environment variable forces the wmem framework to use the specified allocator backend for all allocations, regardless of which backend is normally specified by the code. This is mainly useful to developers when testing or debugging. SeeREADME.wmemin the source distribution for details. ๐ฅWIRESHARK_RUN_FROM_BUILD_DIRECTORYโ this environment variable causes the plugins and other data files to be loaded from the build directory (where the program was compiled) rather than from the standard locations. It has no effect when the program in question is running with root (or setuid) permissions on UNIX-compatible systems, such as Linux, macOS,\*BSD, Solaris, and AIX.WIRESHARK_DATA_DIRโ this environment variable causes the various data files to be loaded from a directory other than the standard locations. It has no effect when the program in question is running with root (or setuid) permissions on UNIX-compatible systems.WIRESHARK_EXTCAP_DIRโ this environment variable causes the various extcap programs and scripts to be run from a directory other than the standard locations. It has no effect when the program in question is running with root (or setuid) permissions on UNIX-compatible systems.WIRESHARK_PLUGIN_DIRโ this environment variable causes the various plugins to be loaded from a directory other than the standard locations. It has no effect when the program in question is running with root (or setuid) permissions on UNIX-compatible systems.ERF_RECORDS_TO_CHECKโ this environment variable controls the number of ERF records checked when deciding if a file really is in the ERF format. Setting this environment variable a number higher than the default (20) would make false positives less likely. ๐IPFIX_RECORDS_TO_CHECKโ this environment variable controls the number of IPFIX records checked when deciding if a file really is in the IPFIX format. Setting this environment variable a number higher than the default (20) would make false positives less likely. ๐WIRESHARK_ABORT_ON_DISSECTOR_BUGโ if this environment variable is set,stratowill callabort(3)when a dissector bug is encountered.abort(3)will cause the program to exit abnormally; if you're runningstratoin a debugger, it should halt in the debugger and allow inspection of the process, and, if you're not running it in a debugger, it will, on some OSes, assuming your environment is configured correctly, generate a core dump file. This can be useful to developers attempting to troubleshoot a problem with a protocol dissector. ๐WIRESHARK_ABORT_ON_TOO_MANY_ITEMSโ if this environment variable is set,stratowill callabort(3)if a dissector tries to add too many items to a tree (generally this is an indication of the dissector not breaking out of a loop soon enough).abort(3)will cause the program to exit abnormally; if you're runningstratoin a debugger, it should halt in the debugger and allow inspection of the process, and, if you're not running it in a debugger, it will, on some OSes, assuming your environment is configured correctly, generate a core dump file. This can be useful to developers attempting to troubleshoot a problem with a protocol dissector. ๐WIRESHARK_LOG_LEVELโ this environment variable controls the verbosity of diagnostic messages to the console. From less verbose to most verbose levels can becritical,warning,message,info,debugornoisy. Levels above the current level are also active. Levelscriticalanderrorare always active. ๐WIRESHARK_LOG_FATALโ sets the fatal log level. Fatal log levels cause the program to abort. This level can be set toError,criticalorwarning.Erroris always fatal and is the default.WIRESHARK_LOG_DOMAINSโ this environment variable selects which log domains are active. The filter is given as a case-insensitive comma separated list. If set only the included domains will be enabled. The default domain is always considered to be enabled. Domain filter lists can be preceded by'!'to invert the sense of the match. โจWIRESHARK_LOG_DEBUGโ list of domains with debug log level. This sets the level of the provided log domains and takes precedence over the active domains filter. If preceded by'!'this disables the debug level instead.WIRESHARK_LOG_NOISYโ same as above but for noisy log level instead.
๐ฆ SEE ALSO ๐ฆ
wireshark-filter(4), stratoshark(1), editcap(1), dumpcap(1)
๐ธ NOTES ๐ธ
This is the manual page for strato 0.9.5. strato is part of the Stratoshark distribution. The latest version of Stratoshark can be found at https://stratoshark.org/. ๐
HTML versions of the Wireshark project man pages are available at https://www.wireshark.org/docs/man-pages.
๐ AUTHORS ๐
strato uses the same dissection code as Stratoshark and Wireshark, as well as using many other modules from Stratoshark and Wireshark; see the list of authors in the Wireshark man page for a list of authors of that code. ๐ซถ
and that's the whole page bestie!! ๐๐
This little masterpiece is the manual page for strato 0.9.5, dated 2026-05-24 โ go forth and dissect, periodt. โญ๐
๐ฆ where this page comes from
- alpine 3.24: wireshark-doc 4.6.6-r0 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms