Giter Site home page Giter Site logo

gocommandpackets's Introduction

goCommandPackets alt text

A command line utility based on gopacket and libpcap-dev to scan and inspect packets and internet traffic

Dependencies

  • gopacket
  • tablewriter
  • libpcap
To install these run the following commands (Ubuntu):
  • go get github.com/google/gopacket
  • go get github.com/olekukonko/tablewriter
  • sudo apt-get install libpcap-dev

Usage

goCommandPackets is very easy to use since it asks you for your inputs and the kind of inspection/scanning you would like to undertake. It is still in it's nascent stages of development.

First run the script using sudo -E as you might need to reference your GOPATH in the environment to sudo (hence, the -E flag). sudo is required because we need superuser privileges to inspect traffic using libpcap:

Therefore to run the script, type the following in terminal: sudo -E go run gcp.go

There are a number of things that the user can request for:

  • First submit the SNO of your connection interface (wlp6s0 in this example)
  • Then choose any of the four currently available options: IP Layer traffic, TCP layer traffic, Both TCP/IP traffic and using filters for getting a particular set of packets from the traffic: (As an example we choose Option 3 with filter tcp and port 443): alt text
  • Finally inspect the traffic!
    • In case of Option 2 (All traffic enabled) the output might look like this: alt text
    • In case of Option 3 (Using a filter) the output might look like this for tcp and port 443 filter: alt text

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.