Next, you only need to add the code to parse the protocol in the middle function my_proto_out.dissector(buffer, pinfo, tree) Usb_table_out:add(my_port_out, my_proto_out)įinally add the port number and the new protocol to add the sub-protocol in usb.product If it is usb.control Usb.bulk Usb.interrupt then fill in 0xFF or 0xFFFF for the port number local my_proto_out = Proto("YiliOut", "YiliOut") If you use usb.product then you need to find the unique port number corresponding to usb in order to add and parse the sub-protocol local my_port_out = 62128368įind the usb enumeration protocol you want to parse, find the byte pointed by the arrow and convert to decimal, add the port number, Usb.interrupt Parse usb interrupt transmission package Usb.control parses the usb transmission control package, Here, find usb.product, usb.control, usb.bulk, usb.interrupt, etc. The list of parser tables can be found in View -> Internal -> Parser Table corresponding to the prefabricated table to be parsed To capture the usb filtering protocol, we must first get the parser table, Wireshark parses usb protocol rules in lua languageĬapture USB protocol content: local usb_table_out = DissectorTable.get("usb.product")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |