- adds a "Copy packet Bytes as OCaml string" entry to the context menu of each frame
- Result is copied to the clipboard
- Wireshark >= 4.2 is required for register_packet_menu
- Add the script to one of the plugin folders
- ... or load it on the cli, when strting Wireshark:
wireshark -X lua_script:wireshark_copy_ocaml_string.lua
- Haven't found a way to place the function in the menu of other copy functions
- ... and you can only get the bytes of the entire packet / frame and not individual fields
- Not sure right now, if the script has any performance impact when enabled