Skip to content

radosroka/usbmon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UsbMonitor

------------------------------------------------------------------

A simple tool to trace linux USB activity, using /dev/usbmon0.

By default it dumps all USB traffic.  Use options:

./usbmondump

 -b###  dump only bus ###
 -d###  dump only device ###
 -x###  exclude device ### from dump

Usbmon C++ API:

Simple example how to use it is usbmon-api.cpp and binary usbmonapi.

./usbmonapi does not have any parameters.  

If you don't have /dev/usbmon0 you probably need to load the driver:
% sudo modprobe usbmon

And you will likely have to adjust permissions too (unless you want to
run this program as root):
% sudo chown $USER /dev/usbmon0


About

commandline linux usbmon interface and api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 77.6%
  • C 19.9%
  • Shell 2.5%