All Projects → ConsenSys → ethereum-dissectors

ConsenSys / ethereum-dissectors

Licence: GPL-2.0 License
🔍Wireshark dissectors for Ethereum devp2p protocols

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to ethereum-dissectors

node-drivers
Industrial protocol drivers in node.js
Stars: ✭ 20 (-75.61%)
Mutual labels:  tcp, udp, protocol
Computer Networking A Top Down Approach Notes
《计算机网络-自顶向下方法(原书第6版)》编程作业,Wireshark实验文档的翻译和解答。
Stars: ✭ 3,890 (+4643.9%)
Mutual labels:  tcp, udp, wireshark
STUP-Protocol
Secure/Speedup TCP-like UDP protocol
Stars: ✭ 12 (-85.37%)
Mutual labels:  tcp, udp, protocol
Mts
Project of Multi-protocol Test Tool opensourced by Ericsson
Stars: ✭ 34 (-58.54%)
Mutual labels:  tcp, udp, protocol
Pypacker
📦 The fastest and simplest packet manipulation lib for Python
Stars: ✭ 216 (+163.41%)
Mutual labels:  tcp, udp, protocol
Hazel Networking
Hazel Networking is a low level networking library for C# providing connection orientated, message based communication via TCP, UDP and RUDP.
Stars: ✭ 194 (+136.59%)
Mutual labels:  tcp, udp, protocol
Blinksocks
A framework for building composable proxy protocol stack.
Stars: ✭ 587 (+615.85%)
Mutual labels:  tcp, udp, protocol
Pjon
PJON (Padded Jittering Operative Network) is an experimental, arduino-compatible, multi-master, multi-media network protocol.
Stars: ✭ 2,615 (+3089.02%)
Mutual labels:  tcp, udp, protocol
net-protocol
golang模拟内核协议栈 实现链路层、网络层、传输层、应用层 用户态协议栈 ,基于虚拟网卡TUN/TAP
Stars: ✭ 129 (+57.32%)
Mutual labels:  tcp, udp, protocol
EdgeAdmin
CDN & WAF集群管理系统。
Stars: ✭ 199 (+142.68%)
Mutual labels:  tcp, udp
ccxx
This is a cross-platform library software library about c, c ++, unix4, posix. Include gtest, benchmark, cmake, process lock, daemon, libuv, lua, cpython, re2, json, yaml, mysql, redis, opencv, qt, lz4, oci ... https://hub.docker.com/u/oudream
Stars: ✭ 31 (-62.2%)
Mutual labels:  tcp, udp
packetdrill
packetdrill with UDPLite and SCTP support and bug fixes for FreeBSD
Stars: ✭ 37 (-54.88%)
Mutual labels:  tcp, udp
dpdk
A comprehensive rust binding for DPDK allowing high speed userspace networking across 256 cores and 32 NICs
Stars: ✭ 30 (-63.41%)
Mutual labels:  tcp, udp
knockonports
A port knocking client for Android
Stars: ✭ 25 (-69.51%)
Mutual labels:  tcp, udp
dats
📈 Minimalistic zero-dependencies statsd client for Node.js
Stars: ✭ 63 (-23.17%)
Mutual labels:  tcp, udp
packet
📦 Send network packets over a TCP or UDP connection.
Stars: ✭ 68 (-17.07%)
Mutual labels:  tcp, udp
ebook
Third edition of the Computer Networking: Principles, Protocols and Practice ebook
Stars: ✭ 64 (-21.95%)
Mutual labels:  tcp, udp
DatagramTunneler
Simple C++ cross-platform client/server app forwarding UDP datagrams through a TCP connection.
Stars: ✭ 116 (+41.46%)
Mutual labels:  tcp, udp
mocket
Reliable UDP server client for flaky networks
Stars: ✭ 21 (-74.39%)
Mutual labels:  tcp, udp
opengnb
GNB is open source de-centralized VPN to achieve layer3 network via p2p with the ultimate capability of NAT Traversal.GNB是一个开源的去中心化的具有极致内网穿透能力的通过P2P进行三层网络交换的VPN。
Stars: ✭ 440 (+436.59%)
Mutual labels:  tcp, udp

🔍 Wireshark dissectors for Ethereum devp2p protocols

This repo contains a set of network protocol dissectors for Ethereum that you can load into the widely popular Wireshark to begin inspecting Ethereum traffic.

Currently we support the UDP-based discovery protocol, but support for the RLPx Wire protocol and the ETH subprotocol are in the works.

Ethereum discovery dissector demo

Here are the features currently supported by the Ethereum Discovery dissector (we're working on more):

  • Heuristics to dynamically detect Ethereum discovery traffic, no matter the port it's running on.
  • Decoding of PING, PONG, FIND_NODE and NODES packet, breaking the messages into its elements, with the appropriate datatypes.
  • Linking of PING => PONG frames, as well as FIND_NODE => NODES interactions in protocol trees.
  • Lots of supported filters! (documentation WIP)
  • Service response time calculation for RPC interactions.
    • under: Statistics > Service Response Time > ETH discovery.
    • inline in protocol trees.
  • Useful protocol statistics (e.g. message counts per type, nodes reported per response, etc.)

Protocol version support

Protocol Version Status Notes
discovery v4
discovery v5 🚧 v5 is work-in-progress in clients. Refer to issues and PRs labelled discv5.
wire v1 🚧 wip branch: devp2p-wire

Table of contents

Build & run

We're working to enable building the plugin separately from Wireshark. In the meantime, you will need to clone the Wireshark repo.

  1. Go to the Wireshark repo and clone it.
  2. Set up your build environment. The steps vary depending on your OS.
  • For Windows, follow the instructions here.
  • For Unix and macOS systems, most tools are already installed, but you need to ensure you have cmake and ninja. On macOS, you can run brew install cmake ninja if you use Homebrew.
  1. Run a plain Wireshark build to ensure all is OK. In macOS, it looks like this:
$ cd ${WIRESHARK_SRC}
$ # check out the latest 2.6 tag (could be higher)
$ git checkout wireshark-2.6.2
$ mkdir ../wireshark-ninja
$ cd ../wireshark-ninja
$ cmake -G Ninja ../wireshark
$ ninja
  1. Clone this repo onto a separate directory.
  2. Symlink the root of this repo under ${WIRESHARK_SRC}/plugins/epan/ethereum, i.e. ln -s ${THIS_REPO} ${WIRESHARK_SRC}/plugins/epan/ethereum.
  3. Modify the ${WIRESHARK_SRC}/CMakeLists.txt file to add the plugins/epan/ethereum directory under the PLUGIN_SRC_DIRS variable, i.e.:
  ...
	set(PLUGIN_SRC_DIRS
		plugins/epan/ethercat
		plugins/epan/ethereum
		plugins/epan/gryphon
    ...
  1. Delete all contents under wireshark-ninja, and run the full Wireshark build again repeating step 3.
  2. If all went well, you should be able to run the resulting Wireshark executable inside the wireshark-ninja/run directory.
  3. Happy dissecting!

Team

Ordered alphabetically by surname.

  • Raúl Kripalani (ConsenSys/Protocol Labs) -- project lead
  • Guilherme Salgado (Py-EVM)
  • Zhenyang Shi (University of Queensland)
  • Scott Whittington (University of Queensland)

Why this project?

In the Protocol Engineering Groups and Systems team (PegaSys) at ConsenSys, we specialise in the low-level, deep aspects of the Ethereum technology. Some of the challenges we tackle are: scalability, secrecy, modularity, finality, permissioning, etc.

To perform our job we need tooling to x-ray into different parts of the system. One of those parts is the networking layer. No central authority exists in public chain Ethereum, hence all communication is peer-to-peer (P2P), which gives rise to both RPC-style and gossip-like communication patterns we need full insight of during development, research and testing.

devp2p is the name of the networking subsystem of Ethereum, along with its collection of core protocols on top of which subprotocols like ETH, Whisper, Swarm, Light Ethereum, etc. are layered.

Wireshark is a popular tool for network packet analysis. Users can initiate network dumps and navigate through a wealth of packet data via its powerful GUI. The architecture of Wireshark is modular, and it revolves around the concept of dissectors: components capable of decoding a concrete protocol, which can be in use at any layer of the OSI model.

Unfortunately no Wireshark dissectors exist yet for Ethereum devp2p protocols. This project changes that.

About PegaSys

PegaSys logo

PegaSys’ mission is to build blockchain solutions ready for production in business environments. We are committed to open source, and are creating a framework for collaborative innovation for the public-chain community and leading enterprises.

Our team is composed of engineers leading in the areas of big data processing, applied cryptography, open source computing, cloud services, and blockchain development.

Learn more about PegaSys.

License

This project is licensed under GPLv2.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].