nccgroup / blackboxprotobuf

Blackbox Protobuf is a set of tools for working with encoded Protocol Buffers (protobuf) without the matching protobuf definition.
MIT License
480 stars 82 forks source link

Export .proto file from burp - can't write str to text stream #39

Closed dvcrn closed 4 weeks ago

dvcrn commented 1 month ago

Hi, I'm trying to export a hand-mapped proto file from types, but getting 'cant write str to text stream'. Not fully sure how to start debugging this, so wanted to report here

image

Is exporting to proto currently broken?

rwinkelmaier-ncc commented 1 month ago

Thanks for reporting this issue. I just pushed a change which should fix this issue.

Let me know if that works or if you run into any other issues.

dvcrn commented 2 weeks ago

Hey, sorry I didn't have time to properly test this yet. It looks like the initial error is gone but I still can't export because the names of my types contain dots (like "my.service.Verification"). Is this supposed to be supported?

rwinkelmaier-ncc commented 2 weeks ago

Hi,

I think that would be a good use-case to support, because that's probably the best way to track packages, but I don't think there's an easy fix at the moment. The export function in the library takes a package name argument, but that applies to the entire file and won't work per-message. The extension would need to do something like group all the messages by prefix and export to different files.

I think your best options for now are: