Giter Club home page Giter Club logo

tetherspot's Introduction

Tetherspot

Script to simlify reverse USB tethering with WiFi hotspot on non-rooted Android

Schematic:

diagram

Demo:

demo

Why

To share unlimited wired network from PC to laptop and iPad instead of sharing 4G with limited monthly traffic.

Idea

  • Use Gnirehtet on PC to start reverse USB tethering
  • Use Every Proxy on Android to run proxy server
  • Enable WiFi hotspot on Android
  • Connect to created WiFi and specify proxy address

Tetherspot could automate this process by

  • Downloading and installing adb if needed (Not yet)
  • Downloading and installing propper Gnirehtet version (Not yet)
  • Downloading and installing EveryProxy apk (Not yet)
  • Starting/stopping Gnirehtet, Every Proxy and WiFi hotspot in one command

Usage

  • Work In Progress!
  • Current version has only win64 Gnirehter binaries, so on linux/macOS you should add propper Gnirehtet version to PATH yourself
  • Current version don't yet install Every Proxy, so install it manually from Google Play
git clone https://github.com/cuamckuu/tetherspot.git
cd ./tetherspot
# Unlock your phone and connect it via USB with allowed USB debugging
python main.py

TODO

  • Run adb commands from Python
  • Enable wifi hotspot from adb
  • Disable wifi hotspot from adb``adb
  • Enable proxy server from adb
  • Disable proxy server from adb
  • Run Gnirehtet from Python
  • Cleanup Gnirehtet on android side
  • Working Windows prototype
  • Check that device unlocked
  • Lock screen after start of Gnirehtet
  • Unlock screen before cleanup
  • Disable mobile network to ensure reverse tethering works
  • Determine OS version to get propper Gnirehtet
  • Install EveryProxy if needed
  • Install ADB if needed
  • Write own Android proxy server (TCP, UDP, IPv6, netty, ktor)
  • Get relative path to __file__ location
  • Use logging instead of prints
  • Add run flags for diffirent behaviour. Ex: --lock, --install, --hotspot_row, etc
  • Maybe auto screen unlock?

Notes:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.