Giter Site home page Giter Site logo

steffanlong / mitmdump_decoder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jodoglevy/mitmdump_decoder

0.0 2.0 0.0 420 KB

A helper script for mitmproxy to decode protobuf serialized requests and responses

Python 5.25% Protocol Buffer 81.14% CSS 4.07% HTML 0.65% JavaScript 8.89%

mitmdump_decoder's Introduction

mitmdump decoder

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

Python 2.7 Requires mitmproxy, protobuf>=3.0.0a3, geojson, numpy

Installing

git clone https://github.com/bettse/mitmdump_decoder.git

apt-get install python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev

pip install numpy geojson protobuf>=3.0.0a3 mitmproxy

Running

mitmdump -p 8888 -s decode.py --ignore '^(?!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)'" }

mitmdump_decoder's People

Contributors

bettse avatar jodoglevy avatar m3talstorm avatar somehibs avatar swisstesting123 avatar tanis2000 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.