Giter Site home page Giter Site logo

jakhax / packet-analyzer Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 2.0 4 KB

A simple packet analyzer/sniffer intercepts and log traffic that passes over a network on multiple network interfaces.

Go 100.00%
golang packet-capture packet-sniffer packet-analyzer networking

packet-analyzer's Introduction

Packet Analyzer

  • A simple packet analyzer/sniffer , intercepts and log traffic that passes over a network.
  • Supports live packet capture from multiple network interfaces (using goroutines) and packet filtering. You can also save the captured traffic to a file and analyze later using a program like wireshark.
  • Why a packet sniffer ? Just another understanding computers(networking) exercise.

Usage

Available Commands:
  capture      Capture packets
  help         Help about any command
  list_devices Listen network devices

Flags:
  -h, --help   help for root

Capture

Capture packets

Usage:
  root capture [flags]

Flags:
  -d, --devices stringArray   Devices to capture on
  -f, --file string           Pcap file
  -F, --filter string         BPF filter
  -h, --help                  help for capture
  -N, --max_packets int       Maximum number of packets to capture

Example

  • To capture traffic on eth0 and wlan0 with BPF filter tcp and port 8000 and save to file out.pcap
go run main.go capture -d wlan0 -d eth0 -f out.pcap - F 'tcp and port 8000'

Resources

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.