Wire it up: Enable iterative testing of the parser #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Updated the code base so iterative testing can be performed while the parser portion of the application is being developed. The code base now:
protobuf_udp_addressbook.pcapng
packet capture. See file the Input Data section below as well as thetest-data/protobuf_udp_addressbook.raw
in the code base.Command:
spicy-driver ./analyzer/protobuf.spicy -f ./test-data/protobuf_udp_addressbook.raw
[$payload=[$message=b"\x0aB\x0a\x05Jason\x10\xe9\x07\x1a\x11Jason@example.com\"\x0c\x0a\x0887561234\x10\x01\"\x0d\x0a\x0b13588886666*\x06\x08\xa1\x8b\x97\xfc\x05\x0a:\x0a\x04Lily\x10\xea\x07\x1a\x10Lily@example.com\"\x0c\x0a\x0862858875\x10\x01\"\x0f\x0a\x0b18822228888\x10\x02"]]
Input Data:
$ hexdump -C ./test-data/protobuf_udp_addressbook.raw
Wireshark - source of input data
References: