This line is only returning the first Message in alphabetical order. This results in the following error if that's not the correct message:
Subprocess exited with error (status code 1):
Traceback (most recent call last):
File "/Library/Python/3.9/lib/python/site-packages/google/protobuf/json_format.py", line 554, in _ConvertFieldValuePair
raise ParseError(
google.protobuf.json_format.ParseError: Message type "com.saasbee.pbx.proto.MyMessage" has no field named "mySubMessage" at "MyMessage".
Available Fields(except extensions): "['field1', 'field2', 'field3', 'field4', 'field5']"
https://github.com/doyensec/protoburp/blob/691ec00f14ae8562d50940e3328a1f9c77482deb/protobuf-encoder.py#L71
This line is only returning the first Message in alphabetical order. This results in the following error if that's not the correct message: