'\" t .\" Title: wifidump .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.23 .\" Date: 2024-12-02 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "WIFIDUMP" "1" "2024-12-02" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" wifidump \- Provides an interface to capture Wi\-Fi frames from a remote host through SSH. .SH "SYNOPSIS" .sp \fBwifidump\fP [\~\fB\-\-help\fP\~] [\~\fB\-\-version\fP\~] [\~\fB\-\-extcap\-interfaces\fP\~] [\~\fB\-\-extcap\-dlts\fP\~] [\~\fB\-\-extcap\-interface\fP=\~] [\~\fB\-\-extcap\-config\fP\~] [\~\fB\-\-extcap\-capture\-filter\fP=\~] [\~\fB\-\-capture\fP\~] [\~\fB\-\-fifo\fP=\~] [\~\fB\-\-remote\-host\fP=\~] [\~\fB\-\-remote\-port\fP=\~] [\~\fB\-\-remote\-username\fP=\~] [\~\fB\-\-remote\-password\fP=\~] [\~\fB\-\-sshkey\fP=\~] [\~\fB\-\-remote\-interface\fP=\~] [\~\fB\-\-remote\-channel\-frequency\fP=\~] [\~\fB\-\-remote\-channel\-width\fP=\~] .sp \fBwifidump\fP \fB\-\-extcap\-interfaces\fP .sp \fBwifidump\fP \fB\-\-extcap\-interface\fP= \fB\-\-extcap\-dlts\fP .sp \fBwifidump\fP \fB\-\-extcap\-interface\fP= \fB\-\-extcap\-config\fP .sp \fBwifidump\fP \fB\-\-extcap\-interface\fP= \fB\-\-fifo\fP= \fB\-\-capture\fP \fB\-\-remote\-host=myremotehost\fP \fB\-\-remote\-port=22\fP \fB\-\-remote\-username=user\fP \fB\-\-remote\-interface=eth2\fP \fB\-\-remote\-channel\-frequency=5180\fP \fB\-\-remote\-channel\-width=40\fP .SH "DESCRIPTION" .sp \fBWifidump\fP is an extcap tool that allows you to capture Wi\-Fi traffic from a remote host over an SSH connection using \fBtcpdump\fP. The requirement to capture Wi\-Fi frames is that the remote host must have the necessary binaries to manage and put the wanted interface into monitor mode. Such binaries include: \fBip\fP, \fBiw\fP, and \fBiwconfig\fP. Also, because using monitor mode and managing the Wi\-Fi interface requires root privileges, the system must be configured to allow the wanted user to run these binaries using sudo without entering a password. .sp Typically wifidump is not invoked directly. Instead it can be configured through the Wireshark graphical user interface or its command line. The following will start Wireshark and start capturing from host \fBremotehost\fP: .sp .if n .RS 4 .nf .fam C $ wireshark \*(Aq\-oextcap.wifidump.remotehost:remotehost\*(Aq \-i wifidump \-k .fam .fi .if n .RE .sp To explicitly control the remote capture command: .sp .if n .RS 4 .nf .fam C $ wireshark \*(Aq\-oextcap.wifidump.remotehost:remotehost\*(Aq \(rs \*(Aq\-oextcap.wifidump.remotechannelfrequency:5180\*(Aq \(rs \*(Aq\-oextcap.wifidump.remotechannelwidth:40\*(Aq \(rs \-i wifidump \-k .fam .fi .if n .RE .sp Supported interfaces: .sp .RS 4 .ie n \{\ \h'-04' 1.\h'+01'\c .\} .el \{\ . sp -1 . IP " 1." 4.2 .\} wifidump .RE .SH "OPTIONS" .sp \-\-help .RS 4 Print program arguments. .RE .sp \-\-version .RS 4 Print program version. .RE .sp \-\-extcap\-interfaces .RS 4 List available interfaces. .RE .sp \-\-extcap\-interface= .RS 4 Use specified interfaces. .RE .sp \-\-extcap\-dlts .RS 4 List DLTs of specified interface. .RE .sp \-\-extcap\-config .RS 4 List configuration options of specified interface. .RE .sp \-\-capture .RS 4 Start capturing from specified interface and write raw packet data to the location specified by \-\-fifo. .RE .sp \-\-fifo= .RS 4 Save captured packet to file or send it through pipe. .RE .sp \-\-remote\-host= .RS 4 The address of the remote host for capture. .RE .sp \-\-remote\-port= .RS 4 The SSH port of the remote host. .RE .sp \-\-remote\-username= .RS 4 The username for ssh authentication. .RE .sp \-\-remote\-password= .RS 4 The password to use (if not ssh\-agent and pubkey are used). WARNING: the passwords are stored in plaintext and visible to all users on this system. It is recommended to use keyfiles with a SSH agent. .RE .sp \-\-sshkey= .RS 4 The path to a private key for authentication. .RE .sp \-\-remote\-interface= .RS 4 The remote network interface to capture from. .RE .sp \-\-remote\-channel\-frequency= .RS 4 The remote channel frequency in MHz. .RE .sp \-\-remote\-channel\-width= .RS 4 The remote channel width in MHz. .RE .sp \-\-extcap\-capture\-filter= .RS 4 The capture filter. It corresponds to the value provided via the \fBtshark \-f\fP option, and the Capture Filter field next to the interfaces list in the Wireshark interface. .RE .SH "EXAMPLES" .sp To see program arguments: .sp .if n .RS 4 .nf .fam C wifidump \-\-help .fam .fi .if n .RE .sp To see program version: .sp .if n .RS 4 .nf .fam C wifidump \-\-version .fam .fi .if n .RE .sp To see interfaces: .sp .if n .RS 4 .nf .fam C wifidump \-\-extcap\-interfaces .fam .fi .if n .RE .sp Only one interface (wifidump) is supported. .sp .B Example output .br .sp .if n .RS 4 .nf .fam C interface {value=wifidump}{display=Wi\-Fi remote capture} .fam .fi .if n .RE .sp To see interface DLTs: .sp .if n .RS 4 .nf .fam C wifidump \-\-extcap\-interface=wifidump \-\-extcap\-dlts .fam .fi .if n .RE .sp .B Example output .br .sp .if n .RS 4 .nf .fam C dlt {number=147}{name=wifidump}{display=Remote capture dependent DLT} .fam .fi .if n .RE .sp To see interface configuration options: .sp .if n .RS 4 .nf .fam C wifidump \-\-extcap\-interface=wifidump \-\-extcap\-config .fam .fi .if n .RE .sp .B Example output .br .sp .if n .RS 4 .nf .fam C arg {number=0}{call=\-\-remote\-host}{display=Remote SSH server address}{type=string} {tooltip=The remote SSH host. It can be both an IP address or a hostname}{required=true}{group=Server} arg {number=1}{call=\-\-remote\-port}{display=Remote SSH server port}{type=unsigned} {tooltip=The remote SSH host port (1\-65535)}{range=1,65535}{group=Server} arg {number=2}{call=\-\-remote\-username}{display=Remote SSH server username}{type=string} {tooltip=The remote SSH username. If not provided, the current user will be used}{group=Authentication} arg {number=3}{call=\-\-remote\-password}{display=Remote SSH server password}{type=password} {tooltip=The SSH password, used when other methods (SSH agent or key files) are unavailable.}{group=Authentication} arg {number=4}{call=\-\-sshkey}{display=Path to SSH private key}{type=fileselect} {tooltip=The path on the local filesystem of the private ssh key}{mustexist=true}{group=Authentication} arg {number=5}{call=\-\-sshkey\-passphrase}{display=SSH key passphrase}{type=password} {tooltip=Passphrase to unlock the SSH private key}{group=Authentication} arg {number=6}{call=\-\-remote\-interface}{display=Remote interface}{type=string} {tooltip=The remote network interface used to capture}{default=auto}{group=Capture} arg {number=7}{call=\-\-remote\-channel\-frequency}{display=Remote channel}{type=selector} {tooltip=The remote channel used to capture}{group=Capture} arg {number=8}{call=\-\-remote\-channel\-width}{display=Remote channel width}{type=selector} {tooltip=The remote channel width used to capture}{group=Capture} arg {number=9}{call=\-\-remote\-filter}{display=Remote capture filter}{type=string} {tooltip=The remote capture filter}{group=Capture} arg {number=10}{call=\-\-remote\-count}{display=Packets to capture}{type=unsigned} {tooltip=The number of remote packets to capture.}{group=Capture} arg {number=11}{call=\-\-log\-level}{display=Set the log level}{type=selector} {tooltip=Set the log level}{required=false}{group=Debug} arg {number=12}{call=\-\-log\-file}{display=Use a file for logging}{type=fileselect} {tooltip=Set a file where log messages are written}{required=false}{group=Debug} .fam .fi .if n .RE .sp To capture: .sp .if n .RS 4 .nf .fam C wifidump \-\-extcap\-interface=wifidump \-\-fifo=/tmp/wifidump.pcap \-\-capture \-\-remote\-host 192.168.1.10 \-\-remote\-username user \-\-remote\-channel\-frequency 5180 \-\-remote\-channel\-width 40 .fam .fi .if n .RE .if n .sp .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 .B Note .ps -1 .br .sp To stop capturing CTRL+C/kill/terminate application. .sp .5v .RE .sp The wifidump binary can be renamed to support multiple instances. For instance if we want wifidump to show up twice in wireshark (for instance to handle multiple profiles), we can copy wifidump to wifidump\-host1 and wifidump\-host2. Each binary will show up an interface name same as the executable name. Those executables not being "wifidump" will show up as "custom version" in the interface description. .SH "SEE ALSO" .sp wireshark(1), tshark(1), extcap(4), tcpdump(1) .SH "NOTES" .sp \fBWifidump\fP is part of the \fBWireshark\fP distribution. The latest version of \fBWireshark\fP can be found at \c .URL "https://www.wireshark.org" "" "." .sp HTML versions of the Wireshark project man pages are available at .URL "https://www.wireshark.org/docs/man\-pages" "" "." .SH "AUTHORS" .sp .B Original Author .br Adrian Granados