Skip to content

Instantly share code, notes, and snippets.

@progzone122
Created October 31, 2024 16:03
Show Gist options
  • Save progzone122/348d2ff3afd05c38d9fad529fd62dedf to your computer and use it in GitHub Desktop.
Save progzone122/348d2ff3afd05c38d9fad529fd62dedf to your computer and use it in GitHub Desktop.
Capture USB traffic on linux (wireshark & usbmon) guide

Capture USB traffic on linux (wireshark & usbmon) guide

Installing wireshark

Install wireshark

sudo pacman -S wireshark-qt

Adding a user to a wireshark group

sudo usermod -aG wireshark $USER

Usbmon

Install libcap

sudo pacman -S libcap

Launching the usbmon kernel module

sudo modprobe usbmon

Installing the necessary capabilities for dumpcap

sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

Done!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment