Raspberry Pi而非M上的断言错误

2024-04-25 18:02:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试运行的程序拒绝在Raspbian上运行,但在MacOS上运行良好


Github repo的链接:https://github.com/axi0mX/ipwndfu

尝试在Raspberry Pi上运行程序时,返回:

  File "./ipwndfu", line 76, in <module>
    checkm8.exploit()
  File "/home/pi/ipwndfu/checkm8.py", line 480, in exploit
    stall(device)
  File "/home/pi/ipwndfu/checkm8.py", line 118, in stall
    def stall(device):   libusb1_async_ctrl_transfer(device, 0x80, 6, 0x304, 0x40A, 'A' * 0xC0, 0.00001)
  File "/home/pi/ipwndfu/checkm8.py", line 45, in libusb1_async_ctrl_transfer
    assert usb.backend.libusb1._lib.libusb_cancel_transfer(transfer_ptr) == 0
AssertionError```

Tags: inpy程序homeasyncdevicelinepi