9 extcap - The extcap interface
13 The extcap interface is a versatile plugin interface that allows external binaries
14 to act as capture interfaces directly in Wireshark. It is used in scenarios, where
15 the source of the capture is not a traditional capture model
16 (live capture from an interface, from a pipe, from a file, etc). The typical
17 example is connecting esoteric hardware of some kind to the main Wireshark application.
19 Without extcap, a capture can always be achieved by directly writing to a capture file:
21 the-esoteric-binary --the-strange-flag --interface=stream1 --file dumpfile.pcap &
22 wireshark dumpfile.pcap
24 but the extcap interface allows for such a connection to be easily established and
25 configured using the Wireshark GUI.
27 The extcap subsystem is made of multiple extcap binaries that are automatically
28 called by the GUI in a row. In the following chapters we will refer to them as
31 Extcaps may be any binary or script within the extcap directory. Please note, that scripts
32 need to be executable without prefacing a script interpreter before the call.
34 WINDOWS USER: Because of restrictions directly calling the script may not always work.
35 In such a case, a batch file may be provided, which then in turn executes the script. Please
36 refer to doc/extcap_example.py for more information.
38 When Wireshark launches an extcap, it automatically adds its installation path
39 (c:\Program Files\Wireshark\) to the DLL search path so that the extcap library dependencies
40 can be found (it is not designed to be launched by hand). This is done on purpose. There should
41 only be extcap programs (executable, python scripts, ...) in the extcap folder to reduce the startup
42 time and not have Wireshark trying to execute other file types.
45 =head1 GRAMMAR ELEMENTS
53 argument for CLI calling
57 Reference # of argument for other values, display order
61 Literal argument to call (--call=...)
69 Default value, in proper form for type
73 Range of valid values for UI checking (min,max) in proper form
77 Argument type for UI filtering for raw, or UI type for selector:
81 long (may include scientific / special notation)
83 selector (display selector table, all values as strings)
84 boolean (display checkbox)
85 radio (display group of radio buttons with provided values, all values as strings)
86 fileselect (display a dialog to select a file from the filesystem, value as string)
87 multicheck (display a textbox for selecting multiple options, values as strings)
88 password (display a textbox with masked text)
89 timestamp (display a calendar)
93 Values for argument selection
94 arg Argument # this value applies to
102 arg {number=0}{call=--channel}{display=Wi-Fi Channel}{type=integer}{required=true}
103 arg {number=1}{call=--chanflags}{display=Channel Flags}{type=radio}
104 arg {number=2}{call=--interface}{display=Interface}{type=selector}
105 value {arg=0}{range=1,11}
106 value {arg=1}{value=ht40p}{display=HT40+}
107 value {arg=1}{value=ht40m}{display=HT40-}
108 value {arg=1}{value=ht20}{display=HT20}
109 value {arg=2}{value=wlan0}{display=wlan0}
113 arg {number=0}{call=--usbdevice}{USB Device}{type=selector}
114 value {arg=0}{call=/dev/sysfs/usb/foo/123}{display=Ubertooth One sn 1234}
115 value {arg=0}{call=/dev/sysfs/usb/foo/456}{display=Ubertooth One sn 8901}
119 arg {number=0}{call=--usbdevice}{USB Device}{type=selector}
120 arg {number=1}{call=--server}{display=IP address for log server}{type=string}{validation=(?:\d{1,3}\.){3}\d{1,3}}
121 flag {failure=Permission denied opening Ubertooth device}
124 arg {number=0}{call=--username}{display=Username}{type=string}
125 arg {number=1}{call=--password}{display=Password}{type=password}
128 arg {number=0}{call=--start}{display=Start Time}{type=timestamp}
129 arg {number=1}{call=--end}{display=End Time}{type=timestamp}
131 =head1 Security awareness
135 =item - Users running wireshark as root, we can't save you
137 =item - Dumpcap retains suid/setgid and group+x permissions to allow users in wireshark group only
139 =item - Third-party capture programs run w/ whatever privs they're installed with
141 =item - If an attacker can write to a system binary directory, we're game over anyhow
143 =item - Reference the folders tab in the wireshark->about information, to see from which directory extcap is being run
149 wireshark(1), tshark(1), dumpcap(1), androiddump(1), sshdump(1), randpktdump(1)
153 B<Extcap> is feature of B<Wireshark>. The latest version
154 of B<Wireshark> can be found at L<https://www.wireshark.org>.
156 HTML versions of the Wireshark project man pages are available at:
157 L<https://www.wireshark.org/docs/man-pages>.