{"id":16929077,"url":"https://github.com/hasheddan/coap-pcap","last_synced_at":"2026-01-04T07:48:23.951Z","repository":{"id":176659650,"uuid":"656858183","full_name":"hasheddan/coap-pcap","owner":"hasheddan","description":"Understanding CoAP with Packet Captures.","archived":false,"fork":false,"pushed_at":"2023-06-27T11:57:15.000Z","size":234,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-25T23:32:33.354Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hasheddan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-21T19:39:29.000Z","updated_at":"2023-08-23T23:07:07.000Z","dependencies_parsed_at":"2023-06-28T01:09:07.556Z","dependency_job_id":null,"html_url":"https://github.com/hasheddan/coap-pcap","commit_stats":null,"previous_names":["hasheddan/coap-pcap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasheddan%2Fcoap-pcap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasheddan%2Fcoap-pcap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasheddan%2Fcoap-pcap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasheddan%2Fcoap-pcap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasheddan","download_url":"https://codeload.github.com/hasheddan/coap-pcap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244728196,"owners_count":20500023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:38:23.877Z","updated_at":"2026-01-04T07:48:23.793Z","avatar_url":"https://github.com/hasheddan.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoAP PCAP\n\nExploring the [Constrained Application Protocol\n(CoAP)](https://datatracker.ietf.org/doc/html/rfc7252) in\n[Wireshark](https://www.wireshark.org/).\n\n## Setup\n\nPacket captures can be loaded into Wireshark with the following command:\n\n```\nwireshark \u003ccapture-name\u003e.pcapng\n```\n\nIf the capture is using a secure transport, such as DTLS / UDP, credentials must\nbe provided in order to decrypt the CoAP messages.\n\n### Pre-Shared Keys\n\nIf the capture is using Pre-Shared Keys (PSK), the PSK must be supplied in hex\nform in the **Pre-Shared Key** field in Wireshark under **Edit \u003e Preferences \u003e\nProtocols \u003e DTLS** as shown below.\n\n![Wireshark PSK Entry](./images/psk_config.png)\n\nIf running your own capture, you may convert your PSK to hex form using the\nfollowing command:\n\n```\necho -n \"YOUR_PSK_HERE\" | xxd -ps -c 32\n```\n\n## Captures\n\nCaptures included in this repository, along with any relevant information and\ncredentials, are detailed below.\n\n### Golioth Basics (PSK)\n\n```\nwireshark golioth_basics_psk.pcapng\n```\n\nThe Golioth Basics (PSK) example uses the [Golioth\nBasics](https://github.com/golioth/golioth-firmware-sdk/tree/main/examples/linux/golioth_basics)\nprogram from the [Golioth Firmware\nSDK](https://github.com/golioth/golioth-firmware-sdk) at\n[v0.7.0](https://github.com/golioth/golioth-firmware-sdk/releases/tag/v0.7.0).\n\nPSK in hex:\n```\n3639616631363835626139303830626539303739323237323863316539376335\n```\n\n### Golioth OTA Download (PSK)\n\n```\nwireshark golioth_ota_download.pcapng\n```\n\nThe Golioth OTA Download (PSK) uses the Golioth [CoAP\nCLI](https://docs.golioth.io/reference/command-line-tools/coap/coap) to download\na firmware artifact. The exact command used is provided below.\n\n```\ncoap --path /.u/c/main@1.0.0 --psk-id 20230614151602-linux@blush-unexpected-fox --psk 24685dc5f1b2276a8f43008e20c0be92 --host coap.golioth.io \u003e artifact.bin\n```\n\nPSK in hex:\n```\n3234363835646335663162323237366138663433303038653230633062653932\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasheddan%2Fcoap-pcap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasheddan%2Fcoap-pcap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasheddan%2Fcoap-pcap/lists"}