跳到主要内容

USB

# 查看设备树
lsusb -t
# 查看单个设备
lsusb -s 2:2
# 设备详细信息
# bcdUSB USB version of the port
lsusb -s 2:2 -vvv

usbids

curl -O http://www.linux-usb.org/usb.ids

加密狗

sniffing

usbip

# 查看内核配置
grep USBIP /boot/config*
# 如果上面的配置, 则加载 configs 查看
modprobe configs
zcat /proc/config.gz |grep USBIP
# CONFIG_USBIP_CORE=m
# CONFIG_USBIP_VHCI_HCD=m
# CONFIG_USBIP_HOST=m

# 服务端
# ==========
# 加载内核模块
modprobe usbip-core
modprobe usbip-host
# 启动服务端
usbipd -D
# 查看设备
usbip list -l
# 绑定暴露
usbip --debug bind -b 1-1.2
# 查看端口信息
# 被远程挂载后会显示相关信息
usbip port
# 取消绑定
usbip unbind -b 1-1.3

# 客户端
# ==========
# 查看远程服务器上暴露的设备
usbip list -r 192.168.0.1
# 加载内核
modprobe vhci-hcd
# 挂载远程设备
usbip attach -r 192.168.0.1 -b 1-1.3
# 查看远程的分区信息
# 假设挂载后的设备为 /dev/sdd
fdisk -l /dev/sdd
# 卸载
usbip detach -p 0

usbredir

https://github.com/OliRead/usbdmx A versatile USB DMX library written in Go for programatic show control and special effects.

echi hdc https://en.wikipedia.org/wiki/Host_controller_interface_(USB,_Firewire)

https://en.wikipedia.org/wiki/Message_Signaled_Interrupts

usbkey

BOC

  • /dev/sr0
  • mnt/Setup.exe
usb 1-8: new full-speed USB device number 4 using xhci_hcd
usb 1-8: New USB device found, idVendor=096e, idProduct=070a
usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-8: Product: FT Interpass3000
usb 1-8: Manufacturer: FS
usb-storage 1-8:1.0: USB Mass Storage device detected
scsi host7: usb-storage 1-8:1.0
scsi 7:0:0:0: CD-ROM FT BOC Interpass3000 1.00 PQ: 0 ANSI: 2
sr 7:0:0:0: [sr0] scsi3-mmc drive: 0x/0x caddy
cdrom: Uniform CD-ROM driver Revision: 3.20
sr 7:0:0:0: Attached scsi CD-ROM sr0