Skip to content

Android remote access suite | Building Mport tunneling service as production-ready alternative to ngrok

Notifications You must be signed in to change notification settings

Baymax005/PhoneControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“± PhoneControl - Complete Android Remote Access Suite

Educational project for learning ethical hacking, network programming, and full-stack development


🎯 What Is This?

A comprehensive suite of tools for Android device control and network tunneling:

  1. WirelessConnector - Professional ADB wireless manager with 15+ features
  2. WebExploit - Browser-based remote access demo
  3. Mport - Production-level tunneling service "Your Port to the World" πŸš€ (in development)

⚑ Quick Start

Run Main Launcher:

MAIN_LAUNCHER.bat

Or Run Individual Projects:

# ADB Wireless Control (Local WiFi)
python WirelessConnector/wireless_connector.py

# Web Browser Exploitation Demo
python WebExploit/web_exploit_server.py

# Mport Tunnel Service (when ready)
cd Mport
python server/main.py

πŸ“ Project Structure

PhoneControl/
β”œβ”€β”€ πŸ“± WirelessConnector/    # ADB wireless manager (READY βœ…)
β”œβ”€β”€ 🌐 WebExploit/           # Browser exploitation (READY βœ…)  
β”œβ”€β”€ πŸš€ Mport/                # Tunnel service "Your Port to the World" (IN DEV πŸ—οΈ)
β”œβ”€β”€ πŸ“š docs/                 # All documentation
β”œβ”€β”€ πŸ“œ scripts/              # Batch launchers
└── πŸ—„οΈ  archived/            # Legacy code

πŸš€ Mport - The Star Project!

"Your Port to the World"

What is Mport?

A production-ready tunneling service (like ngrok) that:

  • βœ… Works in restricted networks (e.g., Pakistan)
  • βœ… Free for students (GitHub Student Pack)
  • βœ… Multi-user support
  • βœ… Web dashboard
  • βœ… Production-grade security

Why "Mport"?

  • M = Muhammad (creator)
  • port = Network port / Portal to the world
  • Mission: Connect anyone, anywhere, always

Timeline:

  • 12 weeks to production
  • Phase 1 (Now): Basic TCP tunnel
  • Phase 5 (Week 12): Full production launch

Read more: Mport/README.md and Mport/ROADMAP.md


πŸ“‹ Features

WirelessConnector (Complete βœ…)

  • βœ… Wireless ADB connection manager
  • βœ… Screenshot & screen recording
  • βœ… File transfer (pull/push)
  • βœ… App installation & management
  • βœ… Shell command execution
  • βœ… Live screen monitoring (scrcpy)
  • βœ… Power button lock
  • βœ… System information
  • βœ… Network diagnostics
  • βœ… Auto-save devices
  • βœ… One-time USB setup wizard

WebExploit (Complete βœ…)

  • βœ… Flask + Socket.IO server
  • βœ… Camera access
  • βœ… Vibration control
  • βœ… Browser fingerprinting
  • βœ… Hacker-style UI
  • βœ… Real-time communication

Mport (Week 1 Complete! οΏ½)

Production-Ready TCP Tunneling Service

βœ… Core Features (Week 1):

  • βœ… 3-port architecture (public, control, tunnel)
  • βœ… Persistent client connections (24/7 uptime)
  • βœ… Multiple simultaneous tunnels
  • βœ… Bidirectional data forwarding
  • βœ… Comprehensive error handling & recovery
  • βœ… Exponential backoff reconnection
  • βœ… Connection health monitoring
  • βœ… Graceful shutdown handling

βœ… Professional Features (Day 4-5):

  • βœ… Real-time statistics & metrics
  • βœ… Rate limiting (prevent abuse)
  • βœ… CLI argument parsing (15+ options)
  • βœ… Dual logging (console + files)
  • βœ… Human-readable data formatting
  • βœ… Auto-cleanup dead connections
  • βœ… Professional error messages

πŸ”œ Coming in Week 2:

  • πŸ”œ TLS/SSL encryption
  • πŸ”œ VPS deployment (DigitalOcean)
  • πŸ”œ Token authentication
  • πŸ”œ Web dashboard
  • πŸ”œ Domain setup

πŸŽ“ Learning Project

This is an educational project for learning:

Programming:

  • Python async/await
  • Socket programming
  • Protocol design
  • Full-stack development

DevOps:

  • Linux server management
  • Docker & deployment
  • CI/CD pipelines
  • Monitoring & logging

Security:

  • Network security
  • TLS/SSL encryption
  • Authentication systems
  • Ethical hacking concepts

πŸ“š Documentation


πŸ’° Resources Available

GitHub Student Pack (FREE):

  • DigitalOcean: $200 credit (33 months of $6/mo VPS!)
  • Namecheap: Free .me domain
  • Azure: $100 credit
  • ngrok Pro: 1 year free
  • Many more tools!

Total Cost: $0 for first 2+ years! πŸŽ‰


⚠️ Legal & Ethical Use

IMPORTANT: This project is for EDUCATIONAL PURPOSES ONLY

βœ… Allowed:

  • Testing on YOUR OWN devices
  • Learning networking concepts
  • Building portfolio projects
  • Educational demonstrations

❌ NOT Allowed:

  • Unauthorized access to others' devices
  • Malicious use
  • Privacy violations
  • Any illegal activities

Always get explicit permission before accessing any device!


πŸ“Š Project Status

Component Status Completion
WirelessConnector βœ… Production 100%
WebExploit βœ… Production 100%
Mport πŸš€ Week 1 Complete! 85% (6/7 days)
Documentation βœ… Complete 100%

Mport Progress Details:

  • βœ… Day 1: Basic TCP tunnel architecture
  • βœ… Day 2: Bidirectional data forwarding
  • βœ… Day 3: Persistent connections & multiple tunnels
  • βœ… Day 4: Error handling & recovery system
  • βœ… Day 5: Statistics, rate limiting, CLI arguments
  • βœ… Day 6-7: Testing & comprehensive documentation
  • Code Written: 4,109 lines
  • Tested: βœ… Working with real Android phone (BE2029)
  • Next: Week 2 - Security & Deployment

🎯 Current Focus

Mport Week 1 - COMPLETE! πŸŽ‰

Achievements:

  • βœ… 4,109 lines of production-ready code
  • βœ… Professional-grade error handling
  • βœ… Real-time statistics & monitoring
  • βœ… Rate limiting & abuse prevention
  • βœ… CLI arguments (15+ options)
  • βœ… Comprehensive testing & documentation

Test Results:

PS> adb connect localhost:8080
connected to localhost:8080

PS> adb -s localhost:8080 shell getprop ro.product.model
BE2029  # βœ… WORKING!

What's Next:

  • Week 2: TLS/SSL encryption + VPS deployment
  • Goal: Access your phone from ANYWHERE in the world! 🌍

See detailed progress in:

  • Mport/PROGRESS.md - Development timeline
  • Mport/TESTING.md - Test results
  • Mport/CHANGELOG.md - Complete history
  • Mport/ROADMAP.md - 12-week plan

πŸš€ Quick Commands

# Run existing projects
MAIN_LAUNCHER.bat

# Run Mport Server (Week 1 Complete!)
cd Mport
python server/tunnel_server.py --help
python server/tunnel_server.py  # Start with defaults

# Run Mport Client
python client/tunnel_client.py --help
python client/quick_start.py  # No-prompt launcher

# Connect ADB through Mport tunnel
adb connect localhost:8080
adb -s localhost:8080 shell getprop ro.product.model

# View Mport documentation
type ROADMAP.md     # 12-week plan
type PROGRESS.md    # What we've built
type TESTING.md     # Test results
type CHANGELOG.md   # Complete history
type BRANDING.md    # Project vision

# Install dependencies
pip install -r requirements.txt

πŸ™ Acknowledgments

  • ADB - Android Debug Bridge
  • scrcpy - Screen mirroring
  • Flask - Web framework
  • GitHub Student Pack - Free resources
  • Open source community - Inspiration & learning

Let's Build Mport Together! πŸš€

Mport - Your Port to the World


Last Updated: October 25, 2025
Mport Week 1: COMPLETE! πŸŽ‰ - 4,109 lines of production code
Next: Week 2 - Security & Deployment

About

Android remote access suite | Building Mport tunneling service as production-ready alternative to ngrok

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published