Skip to content

zokhcat/bwdm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bandwidth Monitoring TUI(bwdm)

bwdm is a simple CLI- and TUI-based bandwidth monitoring tool that allows users to monitor traffic by sniffing packets from a specified network interface. It displays real-time network using a graph, helping users visualize bandwidth consumption

NOTE : Please use this in adminstrator mode

Features

  • Packet Sniffing: Capture and monitor network traffic from a specific interface.
  • Graph Visualization: Displays real-time network bandwidth in a graphical format for easy analysis.
  • Network Interface Listing: Lists all network interfaces for quick selection.
  • Logging Packet data: Logging Packet data in a file

Installation

Prerequisites

Clone the repository

git clone https://github.com/zokhcat/bwdm.git
cd bwdm

Build the Application

go build -o bwdm

Usage

List available network interfaces

Before capturing traffic, you can list all interfaces on your system:

./bwdm list

The output will be something like:

Available interfaces:
- eno1
- wlo1
- lo
Please specify an interface using the -i flag while using the capture command.

Start capturing traffic(for 10 seconds)

To capture network traffic from a specific interface for 10 seconds, use the capture command with -i flag:

./bwdm capture -i <interface-name>

For example:

./bwdm capture -i wlo1

This will sniff the packets on the wlo1 interface for 10 seconds and visualize the network bandwidth in a graph.

Options:

capture: Sniff packets on a specified network interface for 10 seconds and display network usage in a graphical interface

list: List all available network interfaces

Flags:

interface or i: sniff packets of a specific network interface

p or ip: sniff packets from a specific IP address

file or f: log the packet data into a pcap file

dst-port or p: Sniff packets from a specific port

protocol or t: Protocol filtering for packets

Future Todos:

  • Packet Filtering such for specific IP address
  • Advanced Filtering like port filtering and protocol filtering
  • Packet Inspection Mode
  • Logging Packet Data into a pcap file
  • Show Realtime Geolocation IP
  • Configurable capture duration(Maybe)

About

Simple Bandwidth Monitoring TUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages