Code Monkey home page Code Monkey logo

pcap-parse's Introduction

pcap-parse

Parsing packets for fun & profit

FAQ:

First and foremost, how do I even run this?

It's always best to make the common case fast, that's why no arguments are required. The repository contains the pre-processed pcap files for ease-of-use. Providing no arguments will run all available strategies.

python ProcessPCAP.py

Use python ProcessPCACP.py -h to see all the available options.

File Parsing -- What are we doing here?

The repo contains a parsed json version of feed_arbitaage.pcap. If you want to parse your own, the application allows that. Just specify your input file with -i and its output with -o.

What's a strategy?

It's a way of using parsed frames (from .pcap) to generate an understanding of the lowest-latency -n (default=2) sources.

Suppose I don't know what a strategy is ... can I just decide to not provide one?

No problem - the program will run them all.

What if I want to add a strategy because I'm clever?

Please do. Just add to the main.strategies package and adjust the StrategyMap accordingly.

What is this mysterious -k argument all about?

There is a set of strategies, FrequencyFastestKStrategy that use this parameter. -k normally defaults to 1, which means that we are counting the number of times a given source is the fastest.

Adjusting -k to be 2, for example, means we're curious if a given source is one of the first 2 fastest, and so forth. The obvious downside is that increasing k also means giving less relative merit to 1st place, as opposed to kth place, which are judged equally. This makes sense if there are large number of inputs.

To get fine-grained differentiation, there are other strategies like WeightedFastestStrategy that would distinguish between 1st and 3rd place, for example.

pcap-parse's People

Contributors

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