首页> 外国专利> METHOD FOR IDENTIFYING HOST OPERATING SYSTEM BY UNIVERSAL SERIAL BUS (USB) DEVICE

METHOD FOR IDENTIFYING HOST OPERATING SYSTEM BY UNIVERSAL SERIAL BUS (USB) DEVICE

机译:通用串行总线(usb)设备识别主机操作系统的方法

摘要

A method for identifying a host operating system by a Universal Serial Bus (USB) device is disclosed, which pertains to the field of information security. The method includes: A) the USB device is powered on and initiated; B) it is determined whether the first setup packet is a first preset command, if yes, C is performed, if not, D is performed; C) it is determined whether the seventh byte of the first preset command is a second preset value, if yes, an operating system identification is set as a first preset identification, and F is performed, otherwise, E is performed; D) it is determined whether the first setup packet is a second preset command, if yes, the operating system identification is set as a second preset identification, and F is performed, otherwise, E is performed; E) information interaction with the host is performed according to a default operating system identification until the last setup packet is received, and it is determined whether the last setup packet is a third preset command, if yes, the operating system identification is set as a third preset identification, if not, the operating system identification is set as a fourth preset identification; F) information interaction with the host is performed according to the present operating system identification, and then it waits to receive the instructions issued by the host.
机译:本发明公开了一种通过通用串行总线(USB)设备识别主机操作系统的方法,属于信息安全领域。该方法包括:A)USB设备加电并启动; B)判断第一设置包是否为第一预设命令,如果是,则执行C,否则,则执行D; C)判断第一预设命令的第七字节是否为第二预设值,如果是,则将操作系统标识设置为第一预设标识,并执行F,否则执行E; D)判断第一设置包是否为第二预设命令,如果是,则将操作系统标识设置为第二预设标识,执行F,否则执行E; E)根据默认的操作系统标识执行与主机的信息交互,直到接收到最后的设置包,并确定最后的设置包是否为第三预设命令,如果是,则将操作系统标识设置为第三预设标识,如果不是,则将操作系统标识设置为第四预设标识; F)根据当前操作系统标识执行与主机的信息交互,然后等待接收主机发出的指令。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号