Code Monkey home page Code Monkey logo

vizion's Introduction

Vizion    Vizion

GoDoc License: GPL v3

Vizion is a library designed for building and dissecting network packages with great speed and efficiency.

Installation

To download this library do :

$ go get github.com/AnataarXVI/vizion

Getting started

Vizion can be imported as a library. This library lets you create fully customizable packets.

Here's how to import the library:

import (
    . "github.com/AnataarXVI/vizion"
    "github.com/AnataarXVI/vizion/packet"
    "github.com/AnataarXVI/vizion/layers"
)

Here is an example of how to create a packet :

func main() { 
    // Create the packet
    pkt := packet.Packet{}

    // Create the Ethernet layer with default values set
    etherLayer := layers.EtherLayer()
    // Modify the Type field of the layer
    etherLayer.Type = 0x0806

    // Create the ARP layer with default values set 
    arpLayer := layers.ARPLayer()

    // Add layers to the packet
    pkt.AddLayers(&etherLayer, &arpLayer)

    // Show the packet composition
    pkt.Show()

    // Send the packet on 'lo' interface
    Send(pkt, "lo")
}

Result:

Ressources

In the docs folder, you'll find all the documentation you need to get started with the library.

Some useful resources :

Contributing

This project is currently under development. I am open to any improvements or advice.

You can contact me at [email protected] or open an issue.

vizion's People

Contributors

anataarxvi avatar

Stargazers

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