USB sniffing on linux

Written By
Web Webster
Web Webster
Mar 19, 2009

“But while it’s all easily parsed if you need it, there aren’t
really any tools around that do it for you. That is… except for
libpcap. Libpcap is the power behind the throne of the venerable
tcpdump tool. Tcpdump is not much more than a command line parser
and pretty-printer of various network protocols. The heavy duty
lifting is done by libpcap, not least by providing a cross-platform
API for sniffing devices, something that is otherwise non-standard
and different on every platform. It’s great, I’ve used it before
(in capstats) and it’s very easy to use.

“Libpcap on linux supports usbmon sniffing, which means you can
use tcpdump to sniff a USB port and write this to a capture file.
But best of all: wireshark, the all-singing all-dancing network
analyzer that uses tcpdump capture files, has USB support as well.
So this is the result:”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.