{"repo":"AristoChen/usb-proxy","free":true,"listed":false,"github":"https://github.com/AristoChen/usb-proxy","clone":"git clone https://github.com/AristoChen/usb-proxy.git","description":"A USB proxy based on raw-gadget and libusb","language":"C++","stars":282,"topics":["usb","proxy","libusb","otg","raspberry-pi","usb-otg","mitm","mitmproxy","man-in-the-middle","rpi"],"license":"Apache-2.0","category":"networking-infra","readme_excerpt":"usb-proxy This software is a USB proxy based on raw-gadget and libusb. It is recommended to run this repo on a computer that has an USB OTG port, such as Raspberry Pi 4 or other hardware that can work with raw-gadget , otherwise might need to use dummy hcd kernel module to set up virtual USB Device and Host controller that connected to each other inside the kernel. --- How to use Step 1: Prerequisite Please clone the raw-gadget, and compile the kernel modules(if you need dummy hcd as well, please compile it, otherwise only need to compile raw-gadget ) in the repo, then load raw-gadget kernel module, you will be able to access /dev/raw-gadget afterward. Install the required packages: Optionally, install a Lua dev package to enable scripting support (see Lua scripting). The build system auto-detects whichever version is available. Run make and it will print the exact package to install if Lua is not found: Then install the package it suggests and rebuild. Step 2: Check device and driver name Please check the name of device and driver on your hardware with the following command. If you are going to use dummy hcd , then this step can be skipped, because usb-proxy will use dummy hcd by default. Note: If you are not able to see the above on your Raspberry Pi 4 , probably you didn't enable the dwc2 kernel module, please execute the following command and try again after reboot. Step 3: Check vendor id and product id of USB device Please plug the USB device that you want to test into ","default_branch":null,"files":null,"tree":[],"storefront":"/r/AristoChen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AristoChen/usb-proxy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}