[Python] Python: Convert Protobuf Message to Dictionary

Discussão em 'Python' iniciado por Stack, Janeiro 25, 2025.

  1. Stack

    Stack Membro Participativo

    as I haven't found any working example, I raise it here: I need to capture some response data from a website in python3. To verify it , I can capture the results using a windows tool called "Http Toolkit", which nicely captures the data and decode protobuf messages into the underlying json (data cutted, as really long):

    [​IMG]

    Same Data in Hex view

    [​IMG]

    I am able to capture the data as well in python, using selenium, and I am able to identify the same data, coded as protobuf in an python string.

    [​IMG]

    To verify in Hex:

    [​IMG]

    Question: How can I decode the protobuf string into the underlying string, or the underlying json, using python / a python lib? I already tried blackboxprotobuf, but maybe I am not using it properly, as it raises exceptions!

    Continue reading...

Compartilhe esta Página