Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify Nordic sniffer payload length after decrypt #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bitcubik
Copy link

Hello,

this fixes an issue where Wireshark cannot parse packets in the Nordic BLE format when the payload length in the header is not set correctly. This adds a function hook to modify packet headers right before writing them to the output file and uses it to correctly set the payload length in the Nordic header.

The only (unofficial?) documentation of the protocol that Nordic sniffers use I could find is https://github.com/wireshark/wireshark/blob/master/epan/dissectors/packet-nordic_ble.c. However, this does not specify how to actually detect the protocol legacy version 0; if you know how to do that, feel free to add support for it 😄

Cheers,
bitcubik

Wireshark cannot parse packets when payload length is not set correctly. This adds a hook to modify packet headers right before writing them to the output file and uses it to correctly set the payload length in the Nordic header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant