Skip to content

Instantly share code, notes, and snippets.

View inabajunmr's full-sized avatar
aesthetics

inaba jun inabajunmr

aesthetics
View GitHub Profile
@inabajunmr
inabajunmr / u2f_fido2_dissector.lua
Created November 18, 2023 05:44 — forked from z4yx/u2f_fido2_dissector.lua
Wireshark protocol decoder for FIDO(U2F) and FIDO2(WebAuthn) over USB HID
cbor = Dissector.get("cbor")
iso7816 = Dissector.get("iso7816")
ctap_proto = Proto("ctaphid","ctap hid")
-- Field Extractor
direction_fe = Field.new("usb.endpoint_address.direction")
udp_srcport_fe = Field.new("udp.srcport")
CTAPHID_COMMAND_CODE = {
[0x03]='CTAPHID_MSG',
[0x10]='CTAPHID_CBOR',