Skip to content

jodoglevy/mitmdump_decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mitmdump deocder

Description

A helper script for mitmproxy to decode protobuf serialized requests and responses. It also parses the GetMapObjects responses into a geojson format file that can be viewed using the 'ui'. The ui is completely clientside, so it should be hostable with any static file server (I use 'http-server').

Dependencies

Requires mitmproxy, protobuf, geojson, numpy

Running

mitmdump -p 8888 -s decode.py "~d pgorelease.nianticlabs.com"

Rebuild python classes

Linux

cd idl; ls -1 *.proto | while read filename; do protoc --python_out ../protocol/ $filename; done

Windows

cd idl; ls *.proto | ForEach-Object { Invoke-Expression "protoc --proto_path '$($_.DirectoryName)' --python_out ../protocol/ '$($_.FullName)'" }

Rebuild descriptors

Windows

cd idl; ls *.proto | ForEach-Object { Invoke-Expression "protoc --proto_path '$($_.DirectoryName)' -o ../descriptors/$($_.Name).desc '$($_.FullName)'" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published