Created
July 13, 2025 20:04
-
-
Save KewbitXMR/7aa027cef144a7124acfbb20ada8e724 to your computer and use it in GitHub Desktop.
Haveno Android Installer (via Termux)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/data/data/com.termux/files/usr/bin/bash | |
| set -e | |
| pkg update -y && pkg install -y curl wget proot tor openssl unzip xz-utils | |
| # Install Java 21 via Adoptium | |
| ARCH=$(uname -m) | |
| case "$ARCH" in | |
| aarch64) JDK_ARCH="aarch64"; ARCH_LABEL="arm64-v8a" ;;\n armv7l) JDK_ARCH="arm"; ARCH_LABEL="armeabi-v7a" ;;\n x86_64) JDK_ARCH="x64"; ARCH_LABEL="x86_64" ;;\n *) echo \"Unsupported arch: $ARCH\"; exit 1 ;;\nesac | |
| echo \"📦 Detected architecture: $ARCH_LABEL\" | |
| # Install JDK | |
| JDK_VERSION=21 | |
| JDK_JSON=$(curl -s \"https://api.adoptium.net/v3/assets/latest/$JDK_VERSION/hotspot?architecture=$JDK_ARCH&os=linux&image_type=jdk&vendor=temurin\") | |
| JDK_LINK=$(echo \"$JDK_JSON\" | grep -oP 'https://.*?\\.tar\\.gz' | head -n1) | |
| curl -LO \"$JDK_LINK\" | |
| tar -xf OpenJDK*.tar.gz | |
| JDK_DIR=$(find . -type d -name \"jdk-$JDK_VERSION*\" | head -n 1) | |
| export JAVA_HOME=\"$PWD/$JDK_DIR\" | |
| export PATH=\"$JAVA_HOME/bin:$PATH\" | |
| # Configure Tor | |
| CONTROL_PASS=\"boner\" | |
| HASHED_PASS=$(tor --hash-password \"$CONTROL_PASS\" | tail -n1) | |
| mkdir -p ~/.tor | |
| cat > ~/.tor/torrc <<EOF | |
| SocksPort 9050 | |
| ControlPort 9051 | |
| HashedControlPassword $HASHED_PASS | |
| DataDirectory ~/.tor/data | |
| EOF | |
| tor -f ~/.tor/torrc & | |
| sleep 10 | |
| # Fetch and run your binary | |
| mkdir -p ~/tunnel | |
| cd ~/tunnel | |
| curl -LO https://github.com/KewbitXMR/tor-tunnels/$ARCH_LABEL | |
| chmod +x tor-tunnel | |
| nohup ./tor-tunnel > tunnel.log 2>&1 & | |
| echo \"✅ Tor and tunnel are running on localhost.\" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment