Skip to content

suminhthanh/trafexia

 
 

Repository files navigation

Trafexia - Mobile Traffic Interceptor

A powerful desktop application for intercepting and analyzing HTTP/HTTPS traffic from mobile devices. Built with Electron, Vue 3, and TypeScript.

Trafexia Screenshot

Features

  • MITM Proxy Server - Intercept HTTP/HTTPS traffic on port 8888
  • Auto CA Certificate Generation - Creates and manages SSL certificates for HTTPS interception
  • QR Code Setup - Easy mobile device configuration via QR code scanning
  • Real-time Request Capture - Live updates as requests are captured
  • Advanced Filtering - Filter by method, status, host, content type
  • Request Details - View headers, body, timing with syntax highlighting
  • Pattern Detection - Auto-detect JWT tokens, API keys, Base64 strings
  • Export Options - Export as HAR, cURL, Python code, Postman collection
  • Dark Mode - Beautiful dark theme UI

Tech Stack

  • Electron - Cross-platform desktop framework
  • Vue 3 - Composition API with TypeScript
  • TailwindCSS - Utility-first CSS
  • PrimeVue - UI component library
  • Pinia - State management
  • better-sqlite3 - Fast SQLite database
  • node-forge - Certificate generation

Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/danieldev23/trafexia.git
cd trafexia

# Install dependencies
npm install

# Start development
npm run dev

Building

# Build for current platform
npm run build

# Build for specific platforms
npm run build:mac
npm run build:win
npm run build:linux

Usage

  1. Start the Proxy - Click "Start Proxy" to begin intercepting traffic
  2. Scan QR Code - Use your mobile device to scan the displayed QR code
  3. Install Certificate - Follow the setup instructions to install the CA certificate
  4. Configure Proxy - Set up your mobile device to use the proxy
  5. Capture Traffic - All HTTP/HTTPS traffic will be captured and displayed

Mobile Setup

Android

  1. Go to Settings → WiFi → Long press network → Modify → Advanced → Proxy: Manual
  2. Enter the proxy IP and port (shown in the app)
  3. Download and install the CA certificate
  4. Settings → Security → Install from storage → Select the certificate

iOS

  1. Go to Settings → WiFi → Tap (i) next to network → Configure Proxy → Manual
  2. Enter the proxy IP and port
  3. Download the CA certificate
  4. Settings → General → Profile → Install the profile
  5. Settings → General → About → Certificate Trust Settings → Enable the certificate

Security Notice

⚠️ Warning: Installing a CA certificate allows traffic interception. Only use this for development and reverse engineering on your own devices. Remove the certificate when not in use.

License

MIT License - See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 58.9%
  • Vue 31.2%
  • CSS 8.3%
  • JavaScript 1.1%
  • HTML 0.5%