doyensec / protoburp

Updated version of the ProtoBurp Extension, with enhanced features and capabilities to encode and fuzz custom protobuf messages
https://dillonfrankesecurity.com/posts/protoburp-encode-custom-protobuf-messages-in-burp/
35 stars 2 forks source link

protobuf-encoder is not selecting the correct message #6

Open juk80x opened 1 year ago

juk80x commented 1 year ago

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:

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']"