首页 > 编程知识 正文

CFCA&网银数字证书,工业级CF卡改序列号

时间:2023-05-06 19:49:23 阅读:147799 作者:1593

不仅可以尝试lsusb,还可以尝试dbus。

以下是一个python代码示例,它列出了硬件层次结构中的所有scsi_host父级。

导入数据库

bus=dbus.SystemBus ()

u'/org/freedesktop/Hal/Manager ' )

volume _ udi _ list=Hal _ manager.finddevicebycapability (SCSI _ host ) )。

for udi in volume_udi_list:

# inspect all scsi_host devices

volume=dbus.interface(dev,u'org.freedesktop.Hal.Device ) ) ) ) ) ) ) )。

# get their parent

parent=volume.getproperty (' info.parent ' ) )。

volume=dbus.interface(dev,u'org.freedesktop.Hal.Device ) ) ) ) ) ) ) )。

# herewecanfindvendoridforusb- storage devices

props=volume.GetAllProperties (

print'n'.join((%s:%s'% ) k,props[k] ) for k in props )

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。