ddd · GitHub

This repo contains files relevant to the blog post Decoding Google: Converting a Black Box to a White Box

This project seeks to reverse-engineer Google internal protobuf definitions through error messages returned when sent protojson payloads.

Important

This is still in an experimental state

$ go build; ./req2proto -H "Authorization: Bearer ya29...." -X POST -u https://people-pa.googleapis.com/v2/people -p google.internal.people.v2.InsertPersonRequest -o output

The output dir will then contain the request .proto files.

TODO List

  • Add protojson response parsing support (in case the endpoint supports only protojson)
  • Add automatic .proto import
  • Support multithreading

Example output:

req2proto output

About

Tool for reversing Google internal protobuf definitions

Resources

Readme

MIT license

Activity

Stars

215 stars

Watchers

4 watching

Forks

25 forks

Releases

Packages

Used by

Contributors

Languages

Read the original on github.com ↗