Git Product home page Git Product logo

gonetviz's Introduction

goNetViz

This is goNetViz and it is written in golang. goNetViz visualizes your network traffic, either by reading a file or attaching to a network interface.

Build Status Coverage Status

    $ ./goNetViz -help
      ./goNetViz [-bits ...] [-count ...] [-file ... | -interface ...] [-filter ...] [-list_interfaces] [-help] [-prefix ...] [-size ... | -timeslize ... | -terminal] [-version]
    -bits uint
            Number of bits per pixel. It must be divisible by three and smaller than 25 or 1.
            To get black/white results, choose 1 as input. (default 24)
    -count uint
            Number of packets to process.
            If argument is 0 the limit is removed. (default 25)
    -file string
            Choose a file for offline processing.
    -filter string
            Set a specific filter.
    -help
            Show this help.
    -interface string
            Choose an interface for online processing.
    -list_interfaces
            List available interfaces.
    -prefix string
            Prefix of the resulting image. (default "image")
    -size uint
            Number of packets per image. (default 25)
    -terminal
            Visualize output on terminal.
    -timeslize uint
            Number of microseconds per resulting image.
            So each pixel of the height of the resulting image represents one microsecond.
    -version
            Show version.
    -version
            Show version

Building

    $ git clone [email protected]:florianl/goNetViz.git
      Cloning into 'goNetViz'...
      [...]
    $ cd goNetViz/
    $ export GOPATH=$HOME/go
    $ go get -u github.com/google/gopacket
      [...]
    $ go build
      [...]
    $ ./goNetViz
      [...]

Or you can get it directly via golang:

    $ export GOPATH=$HOME/go
    $ go get -u github.com/florianl/goNetViz
      [...]
    $ $GOPATH/bin/goNetViz
      [...]

pcap-filter

See: https://www.tcpdump.org/manpages/pcap-filter.7.html

Examples

The images below are based on the very same IP traffic. The differences are based on the number of bits per pixel. In the first image one bit is used per pixel. Then, in the second image, 3 bits of the payload are used per pixel. This is followed by 9 and 12 bits per pixel and finally 24 bits per pixel.

1 Payloadbits per Pixel

3 Payloadbits per Pixel

9 Payloadbits per Pixel

12 Payloadbits per Pixel

24 Payloadbits per Pixel

Run

    $ ./goNetViz -interface en0 -scale 20 -filter "port 53"

gonetviz's People

Contributors

florianl avatar exiguus avatar

Watchers

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