GithubHelp home page GithubHelp logo

roca2pcap's Introduction

Roca2pcap.

Some Roku gear creates "roca" files for packet dump level debugs. These files like look.

1714050818223,0,0,2048,CAAAAAAAAAIAAQAGdKy5qFyfAABFAABUAAAAAHMBiAsICAgIrBsDcwAAVThligADRlwqZgAAAAAMpQkAAAAAABAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc=

There is no official documentation, but it appears to be.

<TIME>,<PACKET_COUNT>,0,<ETHERTYPE>,<PACKET>
  • <TIME> is the number of milliseconds since the unix epoch.
  • <PACKET_COUNT> is 0 for the first packet that matches a time, 1 for the second and so on.
  • The third field appears to always be zero.
  • <ETHERTYPE> is the ieee802 ethernet type in decimal (so 2048 = 0x0800 = IPv4)
  • <PACKET> is the raw bytes of the packet, encoded in Base64 format.

This program converts the roca file to a pcap file, which can be read by tcpdump, wireshark, etc.

Usage.

$ roca2pcap --input sample_input.roca --output output.pcap
$ tcpdump -r output.pcap
14:13:38.223000 IP dns.google > 172.27.3.157: ICMP echo reply, id 39924, seq 3, length 64

roca2pcap's People

Contributors

davidgroves avatar

Watchers

 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.