AnansiCapture Svelte Themes

Anansicapture

A simple cross-platform data traffic interception and analysis (NTA) tool written in Rust.

AnansiCapture

Static Badge GitHub License GitHub top language GitHub repo size

Definition

AnansiCapture is a powerful cross-platform Network Traffic Analysis (NTA) tool written in Rust. It provides both CLI and GUI interfaces for capturing, analyzing, and displaying network traffic in real-time. The tool is designed to be user-friendly while offering detailed packet inspection.

Features

  • Real-time packet capture and analysis
  • Support for multiple protocols:
    • TCP, UDP, ICMP, ICMPv6
    • IPv4, IPv6
    • DNS, DHCP, HTTP, TLS
    • ARP, IGMP, SMB
  • Color-coded protocol display
  • Detailed packet information
  • Cross-platform support (Linux, Windows, macOS) (!Tested on Linux only!)
  • Both CLI and GUI interfaces

Installation

Prerequisites

  • Rust (latest stable version)
  • Cargo (Rust's package manager)
  • libpcap (for packet capture)
  • Node.js and npm (for GUI development)

For Linux

  1. Install dependencies: ```bash

    For Debian/Ubuntu

    sudo apt-get update sudo apt-get install libpcap-dev npm

For Arch Linux

sudo pacman -S libpcap npm


2. **Clone the repository**:
```bash
git clone https://github.com/Definazu/AnansiCapture.git
cd AnansiCapture
  1. Build the project:
    cargo build --release
    

Usage

CLI Interface

# Show help
./target/release/anansi help

# Capture traffic on specific interface
./target/release/anansi capture -i wlan0

# Capture with specific filter (BPF syntax)
./target/release/anansi capture -i eth0 -f "port 80"

GUI Interface

cd gui
npm install
npm run tauri dev

Command Line Options

  • -i, --interface: Specify network interface
  • -f, --filter: Apply BPF filter
  • -d, --debug: Enable debug mode
  • -h, --help: Show help message

Output Format

The tool displays captured packets in the following format:

Time Source -> Destination Protocol Length Info
12:15:25.637 192.168.0.103 -> 10.1.1.80 DNS 74 Standard query 0x45d8 api2.app.sh A

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Top categories

Loading Svelte Themes