Skip to content

drinkingc0ffee/rayhunter-enhanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rayhunter Logo - An Orca taking a bite out of a cellular signal bar

Rayhunter Enhanced 🔬📡

Tests

IMSI Catcher Detection and Cellular Monitoring System

Rayhunter Enhanced is an advanced cellular monitoring and IMSI catcher detection system designed for security researchers, network analysts, and privacy advocates. This enhanced version provides comprehensive cellular data extraction capabilities with expanded coverage and advanced analysis features.

🎯 What Does Rayhunter Do?

  • Detects rogue cell towers and fake base stations through neighbor cell analysis
  • Monitors cellular network behavior for suspicious patterns with multi-metric monitoring
  • Captures detailed network data including signal strength, cell IDs, and network parameters
  • Provides real-time analysis through a modern web interface
  • Integrates GPS data for location-based analysis and mapping
  • Exports data in multiple formats (PCAP, QMDL, CSV, JSON) for further investigation

🚀 Key Features

🛡️ IMSI Catcher Detection

  • Rogue cell detection through neighbor cell analysis
  • Signal anomaly identification with multi-metric monitoring
  • Location tracking prevention via TAC/LAC monitoring
  • Fake base station identification using cellular fingerprinting

📊 Comprehensive Cellular Data Extraction

  • Network Identifiers: MCC/MNC (Mobile Country/Network Code)
  • Location Information: LAC/TAC (Location/Tracking Area Code), Cell ID/PCI
  • Cell Details: eNodeB ID, Sector information, Physical Cell Identity
  • Signal Metrics: RSRP, RSRQ, SINR signal strength measurements
  • Multi-Technology Support: 2G/3G/4G/5G network analysis
  • Neighbor Cell Tracking: Monitor surrounding cell towers

📍 GPS Integration

  • Real-time location capture with cellular captures
  • External GPS support via REST API endpoints
  • Mobile app compatibility (GPS2REST-Android)
  • Multiple export formats (CSV, JSON, GPX)
  • Per-scan GPS files with automatic timestamp correlation

📡 Web Interface

  • Real-time monitoring dashboard
  • Data download in multiple formats (PCAP, QMDL, ZIP)
  • Analysis tools for captured data
  • Mobile-responsive design

🔧 System Requirements

Supported Hardware

  • Primary: Orbic RC400L mobile hotspot
  • Secondary: TP-Link M7310/M7350 devices
  • Chipset: Qualcomm MDM9225 and compatible modems
  • Connection: USB or ADB access to device

Development Environment

  • Rust: Latest stable toolchain
  • Target: ARM cross-compilation (armv7-unknown-linux-musleabihf)
  • Node.js: v16+ and npm (for web interface)
  • ADB: Android Debug Bridge for device communication

📋 Installation

Option 1: Docker Environment (Recommended for New Users)

The Docker environment provides a complete, isolated build environment with all dependencies pre-configured:

# Clone the repository
git clone https://github.com/your-repo/rayhunter-enhanced.git
cd rayhunter-enhanced

# Start Docker environment
./docker-build.sh up
./docker-build.sh shell

# Inside container - simple 3-step process
./setup_ubuntu_ci.sh     # Install toolchains & dependencies
./fetch_source.sh        # Download latest source code (if needed)
./build_and_deploy.sh    # Build and deploy to device

Docker Benefits:

  • Isolated environment - No system modifications required
  • All dependencies included - Ubuntu 22.04 with full toolchain
  • Persistent storage - Work survives container restarts
  • Cross-compilation ready - ARM toolchain pre-configured
  • adb support - Direct device deployment via USB

Option 2: Ubuntu Users (Automated Setup)

For Ubuntu systems, use the automated setup scripts:

# Clone the repository
git clone https://github.com/your-repo/rayhunter-enhanced.git
cd rayhunter-enhanced

# Set up build environment (one-time setup)
./setup_ubuntu_ci.sh     # Automated setup for CI/CD

# Build everything and deploy
./build_all.sh && ./deploy.sh

Option 3: Local Dependencies (No Root Required)

Install all dependencies locally without affecting your system:

# Clone the repository
git clone https://github.com/your-repo/rayhunter-enhanced.git
cd rayhunter-enhanced

# Install all dependencies locally (no root access needed)
./setup_local_deps.sh

# Build everything and deploy
./build_all.sh && ./deploy.sh

📱 GPS API Usage

Submit GPS Coordinates

# Using curl (GET method - GPS2REST-Android compatible)
curl "http://192.168.1.1:8080/api/v1/gps/37.7749,-122.4194"

# Using curl (POST method)
curl -X POST "http://192.168.1.1:8080/api/v1/gps/37.7749,-122.4194"

Download GPS Data

# Get GPS data for a recording session
curl "http://192.168.1.1:8080/api/gps/1720080123/csv" -o gps_data.csv

🎯 Use Cases

Security Research

  • IMSI catcher detection in high-risk environments
  • Network security auditing for organizations
  • Mobile privacy assessment for individuals

Network Analysis

  • Cell tower mapping and coverage analysis
  • Signal quality assessment for specific locations
  • Network performance monitoring during travel

Educational Purposes

  • Cellular technology education with real-world data
  • Security awareness training about mobile threats
  • Research projects on mobile network security

🛠️ Build System Enhancements

Cross-Compilation Improvements

The build system has been enhanced with comprehensive cross-compilation fixes:

  • Proper host/target separation - Build scripts compile for host (x86_64), target binaries for ARM
  • PATH management - Ensures correct compiler resolution
  • Environment isolation - Prevents ARM compiler from interfering with build scripts
  • Automatic verification - Tests cross-compilation setup before building

Available Build Scripts

  • ./build_all.sh - Comprehensive build with environment detection and verification
  • ./make.sh - Quick build for iterative development
  • ./clean.sh - Clean all build artifacts and prepare for fresh build
  • ./deploy.sh - Deploy to device via adb
  • ./test_cross_compilation.sh - Verify cross-compilation environment

🐛 Troubleshooting

Cross-Compilation Issues

If you encounter ARM linker errors:

# Test your environment
./test_cross_compilation.sh

# Clean and rebuild
./clean.sh && ./build_all.sh

Environment Issues

If commands are not found:

# For Docker environment
./docker-build.sh shell

# For local setup
./setup_local_deps.sh    # No root required
# OR
./setup_ubuntu_ci.sh     # System-wide (requires sudo)

🔐 Privacy and Ethics

Privacy Protection

  • Local processing only - no cloud connectivity
  • User-controlled data retention and export
  • Open source transparency for security verification

Responsible Use

This tool is intended for:

  • Security research and education
  • Network analysis and troubleshooting
  • Personal privacy protection
  • Academic research with proper consent

NOT intended for:

  • ❌ Illegal surveillance or interception
  • ❌ Unauthorized monitoring of others
  • ❌ Commercial espionage
  • ❌ Violation of privacy laws

📖 Getting Started

For comprehensive documentation, installation guides, and usage instructions, visit the Rayhunter Book or see README_ENHANCED.md for detailed setup instructions.

🤝 Community and Support

⚖️ Legal and Ethical Use

Rayhunter is designed for legitimate security research, privacy protection, and educational purposes. Users must comply with all applicable laws and regulations in their jurisdiction regarding cellular monitoring and telecommunications equipment.

🔗 Links

  • Original Rayhunter: https://github.com/EFForg/rayhunter
  • GPS2REST-Android: Compatible mobile app for GPS coordinate submission
  • Documentation: See DOCUMENTATION_INDEX.md for complete documentation library

About

Enhanced Rayhunter Fork - 3x Cellular Data Coverage for IMSI Catcher Detection

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 25