If you must implement such a tool for legitimate red teaming:
Bad practice: Scanning all USB buses naively. Best practice: Filter by VID/PID and interface class. authbypasstoolv6 libusb best