This is a tool for USB ManInTheMiddle using eBPF.
eBPFを使って、USBのManInTheMiddleをするためのツールです。
Please execute $sudo python3 bccusb.py.
Before your execusion, please open the source code and change vendorId to your kerboard.
(Edit the line # change this id to your USB device.)
$sudo python3 bccusb.pyを実行するだけ。
中身開いて、# change this id to your USB deviceの部分のvendorIdを取得したいUSBデバイスのものに変えてお使いください。
For the keyboard, we also created a tool that displays the value of keys pressed.
Please run $sudo python3 bcckeyboard.py.
キーボード用に、押したキーの値が表示されたりするツールも作りました。
$sudo python3 bcckeyboard.pyを実行してください。
$ sudo bpftrace usb-bw.bするだけ
参考: https://blog.habets.se/2020/08/Measuring-USB-with-bpftrace.html