Code Monkey home page Code Monkey logo

jshark's Introduction

jshark

A simple tool to parse various packets.

Supported Protocols

Protocol Id
IPv6 net/ip6
UDP net/udp
CoAP coap
Thread Tlv thread/tlv
Thread Network Tlv thread/netdata/tlv

Usage

jshark -t {id} {hex}

ipv6

jshark -t net/ip6 \
6000000000e11140fe80000000000000021cdaffff001888fe80000000000000021cdaffff00188a\
0401f0b101066faf48656c6c6f20303036203078464633430a0012131415161718191a1b1c1d1e1f\
202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f4041424344454647\
48494a4b4c4d4e4f5051525354
[IPv6]
header:
  version: 6
  trafficClass: 0
  flowLabel: 0
  length: 225
  nextHeader: 17
  hopLimit: 64
  src: 0xfe80000000000000021cdaffff001888
  dst: 0xfe80000000000000021cdaffff00188a
headers:
payload: 0x0401f0b101066faf48656c6c6f20303036203078464633430a0012131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f5051525354
  [UDP]
  sport: 1025
  dport: 61617
  length: 262
  chksum: 28591
  payload: 0x48656c6c6f20303036203078464633430a0012131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f5051525354
xyk-macbookpro:jshark xyk$ jshark -t net/ip6 6000000000e11140fe80000000000000021cdaffff001888fe80000000000000021cdaffff00188a0401f0b101066faf48656c6c6f20303036203078464633430a0012131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f5051525354
[IPv6]
header:
  version: 6
  trafficClass: 0
  flowLabel: 0
  length: 225
  nextHeader: 17
  hopLimit: 64
  src: 0xfe80000000000000021cdaffff001888
  dst: 0xfe80000000000000021cdaffff00188a
headers:
payload: 0x0401f0b101066faf48656c6c6f20303036203078464633430a0012131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f5051525354
  [UDP]
  sport: 1025
  dport: 61617
  length: 262
  chksum: 28591
  payload: 0x48656c6c6f20303036203078464633430a0012131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f5051525354

jshark's People

Contributors

codable 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.