Giter VIP home page Giter VIP logo

grpcdump's Introduction

简单的grpcdump

依赖库

sudo pip install -r requirements.txt

基本功能

使用pcapy进行抓包, 解析出grpc请求(h2报文, 报文头使用hpack库),
实现简单的请求内容解析, 请求内容默认只支持protobuf协议,\ 需要在 myconfig.py 中的 RPC_TYPE 配置一下rpc调用的参数类型, 同时需要把protobuf编译好的python 文件放在 PTOTO_BUILD_PATH 指定的路径中, 需要手动设置服务器的端口(myconfig.py -> SERVER_PORT). 默认只dump出最终stream中的请求信息, 如果需要下层的frame需要改一下log等级.

例子:

sudo python main.py

选择需要监听的interface, 输入lo.
抓取结果. ./example.png

grpcdump's People

Contributors

csomnia avatar

Watchers

James Cloos 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.