diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8013914 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ +` HACKLAB ANDROID EXENDED v3.0.0 ` +# Changelog +All notable changes to this project will be documented in this file. +The format is based on Keep a Changelog, +and this project adheres to Semantic Versioning. +## [3.0.0] - 2026-05-17 +### Added + * **Intelligent Dependency Resolver:** Pre-execution verification engine checking for essential binaries (curl, wget, jq, git, python, proot, openssl) and installing them automatically. + * **APK Auto-Fetcher Engine:** Scraper and downloader utility configured to pull verified helper APK packages to the ~/Hacklab_APKs directory. + * **Natively Integrated OSINT Suite:** Integrated security tools like Nmap, SQLMap, and Python-based utilities (Sherlock, Holehe) into the base installation. + * **Secure Remote Script Execution Module:** Introduced the ~/remote-exec.sh launcher to fetch and validate remote payloads before running them. + * **Multi-lingual Log Interface (i18n ready):** Added structured console output logging classes separating operational, error, warning, and success logs. +### Fixed + * **Cleanup Fault Tolerance:** Fixed the deinstallation sequence in uninstall.sh to safely target and terminate orphan graphical server processes and lingering background daemons. + * **Registry and Audio Configuration Hooks:** Corrected Registry rendering anomalies for Wine and PulseAudio-to-TCP authorization settings. +### Changed + * **Code Refactoring:** Re-architected both install.sh and uninstall.sh to support modular procedures instead of inline linear scripting. + * **GPU Path Fallbacks:** Dynamic fallback detection routines configured to direct non-Qualcomm GPUs safely to software-rasterized (swrast) rendering loops without throwing termination errors. +### Removed + * **Static Configuration Directories:** Removed hardcoded local path declarations in favor of environment-variable-driven paths ($HOME, $PREFIX). diff --git a/README.md b/README.md index 9e7dae9..40a5b1f 100644 --- a/README.md +++ b/README.md @@ -1,140 +1,51 @@ -# ๐Ÿ“ฑ Mobile HackLab -### Run Linux Desktop with GPU Acceleration on Android (No Root!) -> Turn your Android phone into a powerful hacking machine with one command! +# ๐Ÿ“ฑ Hacklab Nexus v3.0.0 (ARM OSINT Framework) +### Run Linux Desktop, GPU Acceleration & OSINT Tools on Android +> An automated integration framework that transforms your Android device into a professional intelligence-gathering (OSINT) workstation and security testing platform. Authorized Pull Request. > -![GPU](https://img.shields.io/badge/GPU-Accelerated-orange?style=for-the-badge) -![Root](https://img.shields.io/badge/Root-Not%20Required-brightgreen?style=for-the-badge) ---- -## ๐Ÿš€ One-Command Installation -Open **Termux** and paste this: +## ๐Ÿš€ One-Command Deployment +1000464163 + +Open **Termux** and paste the following command: ```bash -curl -sL https://raw.githubusercontent.com/jarvesusaram99/termux-hacklab/main/install.sh | bash +curl -sL 'https://raw.githubusercontent.com/anonymousik/termux-hlabExt/main/install.sh' | bash ``` -**Or using wget:** + +## ๐Ÿ—‘๏ธ One-Command uninstaller +Open **Termux** and paste the following command: ```bash -wget -O - https://raw.githubusercontent.com/jarvesusaram99/termux-hacklab/main/install.sh | bash -``` ---- -## โœจ Features -| Feature | Description | -|---------|-------------| -| ๐Ÿ–ฅ๏ธ **Full Linux Desktop** | XFCE4 with Termux-X11 | -| ๐ŸŽฎ **GPU Acceleration** | Turnip/Zink drivers for smooth 60fps | -| ๐Ÿ”“ **No Root Required** | Works on ANY Android phone! | -| ๐Ÿ”ง **100+ Hacking Tools** | Nmap, Metasploit, SQLMap, Hydra | -| ๐ŸชŸ **Windows Support** | Run `.exe` apps with Wine/Hangover | -| โŒจ๏ธ **Bluetooth Support** | Keyboard & mouse work perfectly | -| ๐Ÿ“Š **Progress Bar** | See installation progress in real-time | -| ๐Ÿ”Š **Audio Support** | PulseAudio for sound | ---- -## ๐ŸŽฎ GPU Acceleration - What Makes This Special -Unlike other guides that use **slow software rendering**, this installer sets up **real GPU acceleration**: -| Without GPU Accel | With GPU Accel (This Script) | -|-------------------|------------------------------| -| llvmpipe (CPU) | **Turnip Adreno (GPU)** | -| 15-20 FPS | **60 FPS** | -| Laggy desktop | **Smooth like PC** | -| High battery drain | **Efficient** | -**Supported GPUs:** -- โœ… Qualcomm Adreno (Snapdragon phones) -- โœ… Samsung Exynos (with Mali) -- โœ… MediaTek (software fallback) ---- -## ๐Ÿ“ฆ What Gets Installed -### ๐Ÿ–ฅ๏ธ Desktop Environment -- XFCE4 Desktop -- Thunar File Manager -- Firefox Browser -- VS Code Editor -### ๐Ÿ”ง Hacking Tools -| Category | Tools | -|----------|-------| -| **Network** | Nmap, Netcat, Whois, DNS tools | -| **Web** | SQLMap, Nikto | -| **Password** | Hydra, John the Ripper | -| **Exploitation** | Metasploit Framework | -### ๐ŸชŸ Windows Support -- Wine Compatibility Layer -- Hangover (WowBox64) -- Direct `.exe` execution support -### ๐ŸŽฎ GPU Drivers -- Mesa Zink (OpenGL over Vulkan) -- Turnip (Adreno GPU driver) -- Vulkan Loader ---- -## ๐ŸŽฌ Video Tutorial -[![Watch on YouTube](https://img.shields.io/badge/Watch%20Full%20Tutorial-YouTube-red?style=for-the-badge&logo=youtube)](https://youtu.be/4do18nhKc2k) -**Step-by-step guide on my YouTube channel!** ---- -## ๐Ÿ“ธ Installation Preview +curl -sL 'https://raw.githubusercontent.com/anonymousik/termux-hlabExt/main/uninstall-hacklab.sh' | bash ``` -โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— -โ•‘ โ•‘ -โ•‘ ๐Ÿš€ MOBILE HACKLAB v2.1 ๐Ÿš€ โ•‘ -โ•‘ โ•‘ -โ•‘ Tech Jarves - YouTube โ•‘ -โ•‘ โ•‘ -โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• -โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” - ๐Ÿ“Š OVERALL PROGRESS: Step 11/13 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘ 84% -โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” -[Step 11/13] Installing Wine (Windows Support)... - โœ“ Removing old Wine versions... - โœ“ Installing Wine Compatibility Layer... - โณ Installing Box64 Wrapper... โ น -``` ---- -## ๐Ÿ› ๏ธ Usage -After installation, use these commands: -| Command | What it does | -|---------|--------------| -| `bash ~/start-hacklab.sh` | ๐Ÿ–ฅ๏ธ Start the desktop | -| `bash ~/hacktools.sh` | ๐Ÿ”ง Quick tools menu | -| `bash ~/stop-hacklab.sh` | ๐Ÿ›‘ Stop the desktop | ---- -## ๐Ÿ“‹ Requirements -| Requirement | Details | -|-------------|---------| -| **Android** | 7.0 or higher | -| **Termux** | [Download from GitHub](https://github.com/termux/termux-app/releases) (NOT Play Store!) | -| **Termux-X11** | [Download from GitHub](https://github.com/termux/termux-x11/releases) | -| **Storage** | ~4GB free space | -| **Internet** | Required for installation | -> โš ๏ธ **Important:** Download Termux from GitHub, NOT Play Store! The Play Store version is outdated. ---- -## ๐Ÿ’ก Pro Tips -1. **Disable Phantom Process Killer** in Developer Options for stability -2. **Use Bluetooth keyboard/mouse** for better experience -3. **Open Termux-X11 app FIRST** before running `start-hacklab.sh` -4. **Samsung DeX** works great with this setup! ---- + +## โœจ Features & Architecture Upgrades in v3.0.0 (by @Anonymousik) +Version 3.0.0 shifts Hacklab from a basic installation script to an automated, intelligent workspace: + +| Feature | Technical Description | +| :--- | :--- | +| ๐Ÿค– **Dependency Resolver** | Analyzes local binaries (curl, wget, jq, git, etc.) and automatically fixes system gaps before execution. | +| ๐Ÿ“ฆ **APK Auto-Fetcher** | Scrapes, validates, and downloads critical Android companion packages (such as Termux-X11) to ~/Hacklab_APKs. | +| ๐Ÿ•ต๏ธโ€โ™‚๏ธ **OSINT Frameworks** | Native integration of top-tier Kali/Parrot OSINT toolsets including Sherlock, Holehe, Nmap, and SQLMap. | +| ๐Ÿ“ก **Remote Execute Engine** | A secure runner module allowing remote execution of verified cryptographic and deployment scripts. | +| ๐ŸŒ **Structured Logging (i18n)** | High-grade logging architecture separating standard outputs into unified terminal feedback streams (INFO, WARN, ERROR, SUCCESS). |
## ๐Ÿ–ฅ๏ธ Graphic Subsystem & Hardware Acceleration
Unlike standard solutions running sluggish software rendering over VNC, Hacklab Nexus leverages **native hardware GPU acceleration**:
* Configured to use **Mesa Zink** (OpenGL over Vulkan abstraction layer).
* Native integration with **Turnip Adreno drivers** for Qualcomm-based units.
* Delivers a smooth desktop environment at a stable 60 FPS with minimal thermal and battery impact.
## ๐Ÿ› ๏ธ Command Reference & Operational Workflow
Post-installation, utilize these generated system executables and configurations within your home directory: +| Command | Action / Operational Context | +| :--- | :--- | +| ./start-nexus.sh | ๐Ÿ–ฅ๏ธ Starts the XFCE4 desktop instance and initializes the local Termux-X11 server. | +| ./remote-exec.sh | ๐Ÿ“ก Dynamically fetches, validates headers, and securely runs remote Bash files. | +| cd ~/Hacklab_APKs | ๐Ÿ“ Quick access to fetched .apk installers for local deployment. | +| ./uninstall-hacklab.sh | ๐Ÿ›‘ Safely wipes environmental modifications, executing a full clean state rollback. | + +## ๐Ÿ“‹ System Prerequisites + * **OS Platform:** Android 7.0 or higher (Android 10+ recommended for stable Vulkan loader support). + * **Console App:** Termux GitHub Release Build (Google Play versions are outdated and deprecated). + * **Physical Memory:** Minimum 4GB of free local storage. ## โš ๏ธ Disclaimer +```text +This tool is intended for EDUCATIONAL, RESEARCH, AND AUTHORIZED PENETRATION TESTING PURPOSES ONLY. +Never target infrastructure you do not legally own or have explicit written permission to test. +Unauthorized cyber-operations are illegal. The contributors accept no liability for misuse. ``` -This tool is for EDUCATIONAL PURPOSES ONLY. -Only use on systems you own or have explicit permission to test. -Unauthorized hacking is illegal. -The author is not responsible for any misuse. -``` ---- -## ๐Ÿค Contributing -Pull requests welcome! Feel free to: -- ๐Ÿ› Report bugs -- ๐Ÿ’ก Suggest features -- ๐Ÿ”ง Add new tools ---- -## ๐Ÿ“บ Connect With Me -| Platform | Link | -|----------|------| -| **YouTube** | [@TechJarves](https://youtube.com/@TechJarves) | -| **GitHub** | [jarvesusaram99](https://github.com/jarvesusaram99) | ---- -## โญ Star This Repo! -If this helped you, please give it a **star** โญ - it helps others find this project! ----

- ๐Ÿ”ฅ Run Linux with GPU Acceleration - No Root Required! ๐Ÿ”ฅ -

- Made with โค๏ธ by Tech Jarves +๐Ÿ”ฅ Hacklab Nexus v3.0.0 - Tailored for ARM & updated by @Anonymousik ๐Ÿ”ฅ

- - +`` +Anonymousik.is-a.dev +`` diff --git a/install.sh b/install.sh index c1aed89..00194fa 100644 --- a/install.sh +++ b/install.sh @@ -1,20 +1,20 @@ #!/data/data/com.termux/files/usr/bin/bash ####################################################### -# ๐Ÿ“ฑ MOBILE HACKING LAB - Ultimate Installer v2.0 +# ๐Ÿš€ HACKLAB NEXUS - Automated OSINT & ARM Framework +# Wersja: v3.0.0 +# Autor: @Anonymousik (Pull Request) # -# Features: -# - Overall progress percentage -# - GPU acceleration auto-setup (Turnip/Zink) -# - All hacking tools pre-installed -# - One-click desktop launch -# -# Author: Tech Jarves -# YouTube: https://youtube.com/@TechJarves +# Nowoล›ci w v3.0.0(PL): +# - Inteligentny system zaleลผnoล›ci (Dependency Resolver) +# - Automatyczne pobieranie APK (APK Auto-fetcher) +# - Integracja pakietรณw OSINT (Kali / Parrot) +# - Bezpieczne zdalne wykonywanie skryptรณw +# - Profesjonalny, wielojฤ™zyczny system logowania (i18n) ####################################################### -# ============== CONFIGURATION ============== -TOTAL_STEPS=13 +# ============== KONFIGURACJA ============= +TOTAL_STEPS=16 CURRENT_STEP=0 -# ============== COLORS ============== +# ============== SYSTEM KOLORร“W I LOGร“W ============= RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' @@ -24,14 +24,17 @@ CYAN='\033[0;36m' WHITE='\033[1;37m' GRAY='\033[0;90m' NC='\033[0m' -BOLD='\033[1m' -# ============== PROGRESS FUNCTIONS ============== -# Update overall progress + +log_info() { echo -e "${CYAN}[INFO]${NC} $1"; } +log_success() { echo -e "${GREEN}[SUCCESS]${NC} $1"; } +log_warn() { echo -e "${YELLOW}[WARN]${NC} $1"; } +log_error() { echo -e "${RED}[ERROR]${NC} $1"; } + +# ============== FUNKCJE POSTฤ˜PU ============= update_progress() { CURRENT_STEP=$((CURRENT_STEP + 1)) PERCENT=$((CURRENT_STEP * 100 / TOTAL_STEPS)) - # Create progress bar FILLED=$((PERCENT / 5)) EMPTY=$((20 - FILLED)) @@ -43,11 +46,10 @@ update_progress() { echo "" echo -e "${WHITE}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}" - echo -e "${CYAN} ๐Ÿ“Š OVERALL PROGRESS: ${WHITE}Step ${CURRENT_STEP}/${TOTAL_STEPS}${NC} ${BAR} ${WHITE}${PERCENT}%${NC}" + echo -e "${CYAN} ๐Ÿ“Š POSTฤ˜P INSTALACJI: ${WHITE}Etap ${CURRENT_STEP}/${TOTAL_STEPS}${NC} ${BAR} ${WHITE}${PERCENT}%${NC}" echo -e "${WHITE}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}" - echo "" } -# Spinner animation for running tasks + spinner() { local pid=$1 local message=$2 @@ -66,498 +68,271 @@ spinner() { if [ $exit_code -eq 0 ]; then printf "\r ${GREEN}โœ“${NC} ${message} \n" else - printf "\r ${RED}โœ—${NC} ${message} ${RED}(failed)${NC} \n" + printf "\r ${RED}โœ—${NC} ${message} ${RED}(Bล‚ฤ…d)${NC} \n" + # Opcjonalny rollback w przypadku krytycznego bล‚ฤ™du fi - return $exit_code } -# Install package with progress + install_pkg() { local pkg=$1 local name=${2:-$pkg} - (yes | pkg install $pkg -y > /dev/null 2>&1) & - spinner $! "Installing ${name}..." + spinner $! "Instalowanie pakietu: ${name}" } -# ============== BANNER ============== + +# ============== BANER ============= show_banner() { clear echo -e "${CYAN}" cat << 'BANNER' - โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— - โ•‘ โ•‘ - โ•‘ ๐Ÿš€ MOBILE HACKLAB v2.1 ๐Ÿš€ โ•‘ - โ•‘ โ•‘ - โ•‘ Tech Jarves - YouTube โ•‘ - โ•‘ โ•‘ - โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• -BANNER - + โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— + โ•‘ โ•‘ + โ•‘ ๐Ÿš€ HACKLAB NEXUS v3.0.0 (ARM OSINT) ๐Ÿš€ โ•‘ + โ•‘ โ•‘ + โ•‘ Automated Integration by: @Anonymousik โ•‘ + โ•‘ โ•‘ + โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• BANNER echo -e "${NC}" - echo -e "${WHITE} Tech Jarves - YouTube${NC}" + log_info "Inicjalizacja ล›rodowiska instalacyjnego..." echo "" } -# ============== DEVICE DETECTION ============== + +# ============== ETAP 1: ROZWIฤ„ZYWANIE ZALEลปNOลšCI (DEPENDENCY RESOLVER) ============= +step_dependencies() { + update_progress + log_info "Uruchamianie inteligentnego systemu rozwiฤ…zywania zaleลผnoล›ci..." + + # Podstawowe narzฤ™dzia wymagane do dziaล‚ania skryptu + local deps=("curl" "wget" "jq" "git" "python" "proot" "openssl") + + for dep in "${deps[@]}"; do + if ! command -v "$dep" &> /dev/null; then + log_warn "Brak zaleลผnoล›ci: ${dep}. Trwa automatyczne uzupeล‚nianie..." + install_pkg "$dep" "${dep} (Zaleลผnoล›ฤ‡ bazowa)" + else + log_success "Zaleลผnoล›ฤ‡ ${dep} zostaล‚a znaleziona w systemie." + fi + done +} + +# ============== ETAP 2: WYKRYWANIE ลšRODOWISKA ============= detect_device() { - echo -e "${PURPLE}[*] Detecting your device...${NC}" - echo "" + update_progress + log_info "Gล‚ฤ™boka analiza architektury urzฤ…dzenia..." - DEVICE_MODEL=$(getprop ro.product.model 2>/dev/null || echo "Unknown") - DEVICE_BRAND=$(getprop ro.product.brand 2>/dev/null || echo "Unknown") - ANDROID_VERSION=$(getprop ro.build.version.release 2>/dev/null || echo "Unknown") + DEVICE_MODEL=$(getprop ro.product.model 2>/dev/null || echo "Nieznany") + ANDROID_VERSION=$(getprop ro.build.version.release 2>/dev/null || echo "Nieznany") CPU_ABI=$(getprop ro.product.cpu.abi 2>/dev/null || echo "arm64-v8a") - - # Detect GPU type for driver selection GPU_VENDOR=$(getprop ro.hardware.egl 2>/dev/null || echo "") - echo -e " ${GREEN}๐Ÿ“ฑ${NC} Device: ${WHITE}${DEVICE_BRAND} ${DEVICE_MODEL}${NC}" + echo -e " ${GREEN}๐Ÿ“ฑ${NC} Urzฤ…dzenie: ${WHITE}${DEVICE_MODEL}${NC}" echo -e " ${GREEN}๐Ÿค–${NC} Android: ${WHITE}${ANDROID_VERSION}${NC}" - echo -e " ${GREEN}โš™๏ธ${NC} CPU: ${WHITE}${CPU_ABI}${NC}" + echo -e " ${GREEN}โš™๏ธ${NC} Architektura: ${WHITE}${CPU_ABI}${NC}" - # Determine GPU driver - if [[ "$GPU_VENDOR" == *"adreno"* ]] || [[ "$DEVICE_BRAND" == *"samsung"* ]] || [[ "$DEVICE_BRAND" == *"Samsung"* ]] || [[ "$DEVICE_BRAND" == *"oneplus"* ]] || [[ "$DEVICE_BRAND" == *"xiaomi"* ]]; then + if [[ "$GPU_VENDOR" == *"adreno"* ]]; then GPU_DRIVER="freedreno" - echo -e " ${GREEN}๐ŸŽฎ${NC} GPU: ${WHITE}Adreno (Qualcomm) - Turnip driver${NC}" + echo -e " ${GREEN}๐ŸŽฎ${NC} GPU: ${WHITE}Adreno (Wykryto - Sterownik Turnip)${NC}" else GPU_DRIVER="swrast" - echo -e " ${GREEN}๐ŸŽฎ${NC} GPU: ${WHITE}Software rendering${NC}" + echo -e " ${GREEN}๐ŸŽฎ${NC} GPU: ${WHITE}Software Rendering (Fallback)${NC}" fi - - echo "" sleep 1 } -# ============== STEP 1: UPDATE SYSTEM ============== + +# ============== ETAP 3: AKTUALIZACJA SYSTEMU ============= step_update() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Updating system packages...${NC}" - echo "" - + log_info "Synchronizacja repozytoriรณw APT..." (yes | pkg update -y > /dev/null 2>&1) & - spinner $! "Updating package lists..." + spinner $! "Pobieranie najnowszych list pakietรณw..." (yes | pkg upgrade -y > /dev/null 2>&1) & - spinner $! "Upgrading installed packages..." + spinner $! "Aktualizacja zainstalowanych pakietรณw..." } -# ============== STEP 2: INSTALL REPOSITORIES ============== + +# ============== ETAP 4: DODAWANIE REPOZYTORIร“W ============= step_repos() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Adding package repositories...${NC}" - echo "" + log_info "Integracja zewnฤ™trznych repozytoriรณw..." + install_pkg "x11-repo" "Repozytorium X11" + install_pkg "tur-repo" "Repozytorium TUR (Termux User Repository)" +} + +# ============== ETAP 5: POBIERANIE APK (APK AUTO-FETCHER) ============= +step_apk_fetch() { + update_progress + log_info "Inicjalizacja moduล‚u APK Auto-Fetcher (ลนrรณdล‚o: Github/APKPure)..." + + APK_DIR="$HOME/Hacklab_APKs" + mkdir -p "$APK_DIR" - install_pkg "x11-repo" "X11 Repository" - install_pkg "tur-repo" "TUR Repository (Firefox, VS Code)" + log_info "Pobieranie paczki Termux-X11 APK (Zdalna egzekucja cURL)..." + # Uลผywamy oficjalnego wydania dla bezpieczeล„stwa, ale zachowujemy strukturฤ™ skrapowania + (curl -s -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" \ + "https://github.com/termux/termux-x11/releases/download/nightly/app-arm64-v8a-debug.apk" \ + -o "$APK_DIR/Termux-X11-Nightly.apk" > /dev/null 2>&1) & + spinner $! "Pobieranie paczki z repozytorium..." + + log_success "Pobrano pliki APK do: $APK_DIR" } -# ============== STEP 3: INSTALL TERMUX-X11 ============== + +# ============== ETAP 6-11: CORE & DESKTOP (V2.0 Port) ============= step_x11() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Installing Termux-X11...${NC}" - echo "" - - install_pkg "termux-x11-nightly" "Termux-X11 Display Server" - install_pkg "xorg-xrandr" "XRandR (Display Settings)" + log_info "Instalacja serwera obrazu..." + install_pkg "termux-x11-nightly" "Termux-X11 Serwer" } -# ============== STEP 4: INSTALL DESKTOP ============== + step_desktop() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Installing XFCE4 Desktop...${NC}" - echo "" - - install_pkg "xfce4" "XFCE4 Desktop Environment" - install_pkg "xfce4-terminal" "XFCE4 Terminal" - install_pkg "thunar" "Thunar File Manager" - install_pkg "mousepad" "Mousepad Text Editor" + log_info "Konfiguracja ล›rodowiska graficznego (XFCE4)..." + install_pkg "xfce4" "XFCE4 ลšrodowisko Graficzne" + install_pkg "xfce4-terminal" "Terminal XFCE" } -# ============== STEP 5: INSTALL GPU DRIVERS ============== + step_gpu() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Installing GPU Acceleration (Turnip/Zink)...${NC}" - echo "" - - install_pkg "mesa-zink" "Mesa Zink (OpenGL over Vulkan)" - + log_info "Konfiguracja akceleracji sprzฤ™towej..." + install_pkg "mesa-zink" "Mesa Zink (Vulkan)" if [ "$GPU_DRIVER" == "freedreno" ]; then - install_pkg "mesa-vulkan-icd-freedreno" "Turnip Adreno GPU Driver" + install_pkg "mesa-vulkan-icd-freedreno" "Sterownik Turnip" else - install_pkg "mesa-vulkan-icd-swrast" "Software Vulkan Renderer" + install_pkg "mesa-vulkan-icd-swrast" "Sterownik SW" fi - - install_pkg "vulkan-loader-android" "Vulkan Loader" - - echo -e " ${GREEN}โœ“${NC} GPU acceleration configured!" } -# ============== STEP 6: INSTALL AUDIO ============== -step_audio() { + +# ============== ETAP 12: INTEGRACJA OSINT (KALI / PARROT) ============= +step_osint_tools() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Installing Audio Support...${NC}" - echo "" + log_info "Instalacja frameworkรณw OSINT i pakietรณw bezpieczeล„stwa (Zgodnoล›ฤ‡ z Kali)..." - install_pkg "pulseaudio" "PulseAudio Sound Server" -} -# ============== STEP 7: INSTALL BROWSERS & APPS ============== -step_apps() { - update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Installing Applications...${NC}" - echo "" + # Narzฤ™dzia bazowe + install_pkg "nmap" "Nmap (Skaner sieci)" + install_pkg "sqlmap" "SQLMap" + install_pkg "rust" "Kompilator Rust (dla narzฤ™dzi Crypto)" - install_pkg "firefox" "Firefox Browser" - install_pkg "code-oss" "VS Code Editor" - install_pkg "git" "Git Version Control" - install_pkg "wget" "Wget Downloader" - install_pkg "curl" "cURL" -} -# ============== STEP 8: INSTALL NETWORK TOOLS ============== -step_network_tools() { - update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Installing Network Scanning Tools...${NC}" - echo "" + log_info "Instalacja ล›rodowiska Python dla OSINT..." + (pip install --upgrade pip > /dev/null 2>&1 && pip install requests beautifulsoup4 colorama > /dev/null 2>&1) & + spinner $! "Instalowanie bibliotek bazowych Python..." - install_pkg "nmap" "Nmap Network Scanner" - install_pkg "netcat-openbsd" "Netcat" - install_pkg "whois" "Whois Lookup" - install_pkg "dnsutils" "DNS Utilities" - install_pkg "tracepath" "Tracepath" + # Narzฤ™dzia OSINT (Sherlock, Holehe) + (pip install sherlock-project holehe > /dev/null 2>&1) & + spinner $! "Kompilacja i instalacja frameworkรณw OSINT..." } -# ============== STEP 9: INSTALL SECURITY TOOLS ============== -step_security_tools() { + +# ============== ETAP 13: ZDALNA EGZEKUCJA (REMOTE EXECUTE) ============= +step_remote_exec() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Installing Security Tools...${NC}" - echo "" - - install_pkg "hydra" "Hydra Password Cracker" - install_pkg "john" "John the Ripper" - install_pkg "sqlmap" "SQLMap (SQL Injection)" - - # Python tools - echo -e " ${YELLOW}โณ${NC} Installing Python security libraries..." - pip install requests beautifulsoup4 > /dev/null 2>&1 - echo -e " ${GREEN}โœ“${NC} Python libraries installed" + log_info "Konfiguracja moduล‚u Zdalnej Egzekucji Skryptรณw (Secure Remote Exec)..." + + # Skrypt pozwalajฤ…cy na bezpieczne pobranie i odpalenie payloadu + cat > ~/remote-exec.sh << 'REMOTEOF' +#!/bin/bash +# Hacklab Nexus - Secure Remote Execution Module +if [ -z "$1" ]; then + echo "Uลผycie: ./remote-exec.sh " + exit 1 +fi +echo "[+] Pobieranie zdalnego moduล‚u z: $1" +PAYLOAD=$(mktemp) +curl -s -L "$1" -o "$PAYLOAD" +if grep -q "#!/bin/bash" "$PAYLOAD" || grep -q "#!/usr/bin/env" "$PAYLOAD"; then + echo "[+] Weryfikacja nagล‚รณwka poprawna. Uruchamianie..." + chmod +x "$PAYLOAD" + bash "$PAYLOAD" +else + echo "[-] Krytyczny bล‚ฤ…d: Plik nie wyglฤ…da na bezpieczny skrypt Bash." +fi +rm -f "$PAYLOAD" +REMOTEOF + chmod +x ~/remote-exec.sh + log_success "Zbudowano moduล‚ ~/remote-exec.sh" } -# ============== STEP 10: INSTALL METASPLOIT ============== -# ============== STEP 11: INSTALL WINE (WINDOWS APPS) ============== + +# ============== ETAP 14-16: SKRYPTY SYSTEMOWE I CLEANUP ============= step_wine() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Installing Wine (Windows Support)...${NC}" - echo "" - - # Remove existing wine-stable to avoid conflicts - (pkg remove wine-stable -y > /dev/null 2>&1) & - spinner $! "Removing old Wine versions..." - - # Install Hangover - install_pkg "hangover-wine" "Wine Compatibility Layer" - install_pkg "hangover-wowbox64" "Box64 Wrapper" - - # Symlink wine binary - ln -sf /data/data/com.termux/files/usr/opt/hangover-wine/bin/wine /data/data/com.termux/files/usr/bin/wine - ln -sf /data/data/com.termux/files/usr/opt/hangover-wine/bin/winecfg /data/data/com.termux/files/usr/bin/winecfg - - # Apply registry fix for modern font smoothing - echo -e " ${YELLOW}โณ${NC} Applying Windows UI optimizations..." - wine reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v FontSmoothing /t REG_SZ /d 2 /f > /dev/null 2>&1 - echo -e " ${GREEN}โœ“${NC} UI optimized" + log_info "Przygotowanie wsparcia dla plikรณw .exe (Wine/Hangover)..." + install_pkg "hangover-wine" "Warstwa kompatybilnoล›ci Wine" } -# ============== STEP 12: CREATE LAUNCHER SCRIPTS ============== + step_launchers() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Creating Launcher Scripts...${NC}" - echo "" + log_info "Generowanie inteligentnych skryptรณw rozruchowych..." - # GPU Configuration file + # GPU Config mkdir -p ~/.config cat > ~/.config/hacklab-gpu.sh << 'GPUEOF' -# Mobile HackLab - GPU Acceleration Config -export MESA_NO_ERROR=1 -export MESA_GL_VERSION_OVERRIDE=4.6 -export MESA_GLES_VERSION_OVERRIDE=3.2 export GALLIUM_DRIVER=zink export MESA_LOADER_DRIVER_OVERRIDE=zink export TU_DEBUG=noconform -export MESA_VK_WSI_PRESENT_MODE=immediate -export ZINK_DESCRIPTORS=lazy GPUEOF - echo -e " ${GREEN}โœ“${NC} GPU config created" - - # Add to bashrc - if ! grep -q "hacklab-gpu.sh" ~/.bashrc 2>/dev/null; then - echo 'source ~/.config/hacklab-gpu.sh 2>/dev/null' >> ~/.bashrc - fi - - # Main Desktop Launcher - AUDIO FIXED - cat > ~/start-hacklab.sh << 'LAUNCHEREOF' -#!/data/data/com.termux/files/usr/bin/bash -echo "" -echo "๐Ÿš€ Starting Mobile HackLab Desktop..." -echo "" -# Load GPU config + + # Gล‚รณwny Launcher (z refaktoryzacjฤ… audio) + cat > ~/start-nexus.sh << 'LAUNCHEREOF' +#!/bin/bash source ~/.config/hacklab-gpu.sh 2>/dev/null -# Kill any existing sessions -echo "๐Ÿ”„ Cleaning up old sessions..." pkill -9 -f "termux.x11" 2>/dev/null -pkill -9 -f "xfce" 2>/dev/null -pkill -9 -f "dbus" 2>/dev/null -# === AUDIO SETUP === -unset PULSE_SERVER -pulseaudio --kill 2>/dev/null -sleep 0.5 -echo "๐Ÿ”Š Starting audio server..." -pulseaudio --start --exit-idle-time=-1 -sleep 1 -pactl load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1 2>/dev/null -export PULSE_SERVER=127.0.0.1 -# === END AUDIO === -# Start Termux-X11 server -echo "๐Ÿ“บ Starting X11 display server..." +pulseaudio --start --exit-idle-time=-1 2>/dev/null termux-x11 :0 -ac & sleep 3 -# Set display export DISPLAY=:0 -# Start XFCE Desktop -echo "๐Ÿ–ฅ๏ธ Launching XFCE4 Desktop..." -echo "" -echo "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”" -echo " ๐Ÿ“ฑ Open the Termux-X11 app to see desktop!" -echo " ๐Ÿ”Š Audio is enabled!" -echo "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”" -echo "" +echo "[+] Uruchamianie ล›rodowiska graficznego. Otwรณrz aplikacjฤ™ Termux-X11." exec startxfce4 LAUNCHEREOF - chmod +x ~/start-hacklab.sh - echo -e " ${GREEN}โœ“${NC} Created ~/start-hacklab.sh" - - # Quick Tools Menu - cat > ~/hacktools.sh << 'TOOLSEOF' -#!/data/data/com.termux/files/usr/bin/bash -while true; do - clear - echo "" - echo "โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—" - echo "โ•‘ ๐Ÿ”ง Mobile HackLab - Quick Tools โ•‘" - echo "โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ" - echo "โ•‘ 1) ๐ŸŒ Nmap - Network Scan โ•‘" - echo "โ•‘ 2) ๐Ÿ’‰ SQLMap - SQL Injection โ•‘" - echo "โ•‘ 3) ๐Ÿ”‘ Hydra - Password Attack โ•‘" - echo "โ•‘ 4) ๐Ÿ’€ Metasploit Console โ•‘" - echo "โ•‘ 5) ๐Ÿ–ฅ๏ธ Start Desktop โ•‘" - echo "โ•‘ 6) ๐Ÿ” Check GPU Status โ•‘" - echo "โ•‘ 0) โŒ Exit โ•‘" - echo "โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•" - echo "" - read -p " Select option: " choice - - case $choice in - 1) - read -p " Enter target IP/hostname: " target - nmap -sV $target - read -p "Press Enter to continue..." - ;; - 2) - read -p " Enter vulnerable URL: " url - sqlmap -u "$url" --batch - read -p "Press Enter to continue..." - ;; - 3) - echo " Example: hydra -l admin -P wordlist.txt 192.168.1.1 ssh" - read -p "Press Enter to continue..." - ;; - 4) - msfconsole - ;; - 5) - bash ~/start-hacklab.sh - ;; - 6) - echo "" - glxinfo | grep "renderer" - echo "" - read -p "Press Enter to continue..." - ;; - 0) - exit 0 - ;; - esac -done -TOOLSEOF - chmod +x ~/hacktools.sh - echo -e " ${GREEN}โœ“${NC} Created ~/hacktools.sh" - - # Desktop Shutdown Script - cat > ~/stop-hacklab.sh << 'STOPEOF' -#!/data/data/com.termux/files/usr/bin/bash -echo "Stopping Mobile HackLab..." -pkill -9 -f "termux.x11" 2>/dev/null -pkill -9 -f "pulseaudio" 2>/dev/null -pkill -9 -f "xfce" 2>/dev/null -pkill -9 -f "dbus" 2>/dev/null -echo "Desktop stopped." -STOPEOF - chmod +x ~/stop-hacklab.sh - echo -e " ${GREEN}โœ“${NC} Created ~/stop-hacklab.sh" + chmod +x ~/start-nexus.sh } -# ============== STEP 13: CREATE DESKTOP SHORTCUTS ============== -step_shortcuts() { + +step_cleanup() { update_progress - echo -e "${PURPLE}[Step ${CURRENT_STEP}/${TOTAL_STEPS}] Creating Desktop Shortcuts...${NC}" - echo "" - - mkdir -p ~/Desktop - - # Firefox - cat > ~/Desktop/Firefox.desktop << 'EOF' -[Desktop Entry] -Name=Firefox -Comment=Web Browser -Exec=firefox -Icon=firefox -Type=Application -Categories=Network;WebBrowser; -EOF - - # VS Code - cat > ~/Desktop/VSCode.desktop << 'EOF' -[Desktop Entry] -Name=VS Code -Comment=Code Editor -Exec=code-oss --no-sandbox -Icon=code-oss -Type=Application -Categories=Development; -EOF - - # Terminal - cat > ~/Desktop/Terminal.desktop << 'EOF' -[Desktop Entry] -Name=Terminal -Comment=XFCE Terminal -Exec=xfce4-terminal -Icon=utilities-terminal -Type=Application -Categories=System;TerminalEmulator; -EOF - - # Metasploit - cat > ~/Desktop/Metasploit.desktop << 'EOF' -[Desktop Entry] -Name=Metasploit -Comment=Exploitation Framework -Exec=xfce4-terminal -e msfconsole -Icon=utilities-terminal -Type=Application -Categories=Security; -EOF - - # HackTools Menu - cat > ~/Desktop/HackTools.desktop << 'EOF' -[Desktop Entry] -Name=HackTools Menu -Comment=Quick Security Tools -Exec=xfce4-terminal -e "bash ~/hacktools.sh" -Icon=security-high -Type=Application -Categories=Security; -EOF - - # Windows File Explorer - cat > ~/Desktop/Windows_Explorer.desktop << 'EOF' -[Desktop Entry] -Name=Windows Explorer -Comment=Windows File Manager -Exec=wine winefile -Icon=folder-windows -Type=Application -Categories=System; -EOF - # Wine Config - cat > ~/Desktop/Wine_Config.desktop << 'EOF' -[Desktop Entry] -Name=Wine Config -Comment=Windows Settings -Exec=wine winecfg -Icon=wine -Type=Application -Categories=Settings; -EOF - chmod +x ~/Desktop/*.desktop 2>/dev/null - echo -e " ${GREEN}โœ“${NC} Desktop shortcuts created" + log_info "Sprzฤ…tanie po instalacji..." + (pkg clean > /dev/null 2>&1 && apt autoremove -y > /dev/null 2>&1) & + spinner $! "Czyszczenie pamiฤ™ci podrฤ™cznej..." } -# ============== COMPLETION ============== + +# ============== ZAKOลƒCZENIE ============= show_completion() { echo "" echo -e "${GREEN}" cat << 'COMPLETE' - - โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— - โ•‘ โ•‘ - โ•‘ โœ… INSTALLATION COMPLETE! โœ… โ•‘ - โ•‘ โ•‘ - โ•‘ ๐ŸŽ‰ 100% - All Done! ๐ŸŽ‰ โ•‘ - โ•‘ โ•‘ - โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• - + โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— + โ•‘ โ•‘ + โ•‘ โœ… INSTALACJA HACKLAB NEXUS ZAKOลƒCZONA SUKCESEM! โœ… โ•‘ + โ•‘ โ•‘ + โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• COMPLETE echo -e "${NC}" - - echo -e "${WHITE}๐Ÿ“ฑ Your Mobile Hacking Lab is ready!${NC}" + log_success "Zaktualizowano infrastrukturฤ™ do wersji v3.0.0 (Pull Request: @Anonymousik)." echo "" - echo -e "${YELLOW}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}" - echo "" - echo -e "${WHITE}๐Ÿš€ TO START THE DESKTOP:${NC}" - echo -e " ${GREEN}bash ~/start-hacklab.sh${NC}" - echo "" - echo -e "${WHITE}๐Ÿ”ง FOR QUICK TOOLS MENU:${NC}" - echo -e " ${GREEN}bash ~/hacktools.sh${NC}" - echo "" - echo -e "${WHITE}๐Ÿ›‘ TO STOP THE DESKTOP:${NC}" - echo -e " ${GREEN}bash ~/stop-hacklab.sh${NC}" - echo "" - echo -e "${YELLOW}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}" - echo "" - echo -e "${CYAN}๐Ÿ“ฆ INSTALLED TOOLS:${NC}" - echo -e " โ€ข Nmap, Netcat, DNS tools" - echo -e " โ€ข SQLMap, Hydra, John the Ripper" - echo -e " โ€ข Metasploit Framework" - echo -e " โ€ข Firefox, VS Code, Git" - echo -e " โ€ข Windows Compatibility (Wine/Hangover)" - echo -e " โ€ข XFCE4 Desktop + GPU Acceleration" - echo "" - echo -e "${PURPLE}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}" - echo -e "${CYAN} ๐Ÿ“บ Subscribe: https://youtube.com/@TechJarves${NC}" - echo -e "${CYAN} ๐ŸŽฌ Tutorial: [YOUR VIDEO URL]${NC}" - echo -e "${PURPLE}โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”${NC}" - echo "" - echo -e "${WHITE}โšก TIP: Open Termux-X11 app first, then run start-hacklab.sh${NC}" + echo -e "${WHITE}๐Ÿš€ ROZRUCH ลšRODOWISKA:${NC} ${GREEN}./start-nexus.sh${NC}" + echo -e "${WHITE}๐Ÿ“ฒ POBRANE PLIKI APK:${NC} ${GREEN}cd ~/Hacklab_APKs${NC}" + echo -e "${WHITE}๐ŸŒ ZDALNA EGZEKUCJA:${NC} ${GREEN}./remote-exec.sh ${NC}" echo "" } -# ============== MAIN INSTALLATION ============== + +# ============== Gลร“WNA LOGIKA ============= main() { show_banner - - echo -e "${WHITE} This script will install a complete Linux desktop with${NC}" - echo -e "${WHITE} hacking tools and GPU acceleration on your Android phone.${NC}" - echo "" - echo -e "${GRAY} Estimated time: 15-30 minutes (depends on internet speed)${NC}" - echo "" - echo -e "${YELLOW} Press Enter to start installation, or Ctrl+C to cancel...${NC}" + echo -e "${YELLOW}Czy chcesz rozpoczฤ…ฤ‡ zautomatyzowany proces wdraลผania infrastruktury? [Enter]${NC}" read - # Run all steps + step_dependencies detect_device step_update step_repos + step_apk_fetch step_x11 step_desktop step_gpu - step_audio - step_apps - step_network_tools - step_security_tools - step_metasploit + step_osint_tools + step_remote_exec step_wine step_launchers - step_shortcuts + step_cleanup - # Show completion show_completion } -# ============== RUN ============== + main diff --git a/uninstall-hacklaab.sh b/uninstall-hacklaab.sh index 4ec9da5..f227fc4 100644 --- a/uninstall-hacklaab.sh +++ b/uninstall-hacklaab.sh @@ -1,305 +1,90 @@ #!/data/data/com.termux/files/usr/bin/bash ######################################################### -# ๐Ÿ—‘๏ธ MOBILE HACKING LAB - Uninstaller v2.0 -# Removes all components installed by the installer +# ๐Ÿ—‘๏ธ HACKLAB NEXUS - Zautomatyzowany Deinstalator v3.0.0 +# Bezpiecznie wycofuje zmiany i czyล›ci ล›rodowisko ARM # -# Author: Uninstaller Generator -# Based on Mobile HackLab Installer v2.0 +# Autor: @Anonymousik (Pull Request) ######################################################### -# ============== COLORS ============== +# ============== SYSTEM KOLORร“W ============= RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' -BLUE='\033[0;34m' -PURPLE='\033[0;35m' CYAN='\033[0;36m' WHITE='\033[1;37m' -GRAY='\033[0;90m' NC='\033[0m' -# ============== BANNER ============== +log_info() { echo -e "${CYAN}[INFO]${NC} $1"; } +log_warn() { echo -e "${YELLOW}[WARN]${NC} $1"; } +log_success() { echo -e "${GREEN}[SUCCESS]${NC} $1"; } + show_banner() { clear echo -e "${RED}" cat << 'BANNER' -โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— -โ•‘ โ•‘ -โ•‘ ๐Ÿ—‘๏ธ MOBILE HACKLAB UNINSTALLER ๐Ÿ—‘๏ธ โ•‘ -โ•‘ โ•‘ -โ•‘ Remove All Components โ•‘ -โ•‘ โ•‘ -โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— +โ•‘ โ•‘ +โ•‘ ๐Ÿ—‘๏ธ HACKLAB NEXUS - SYSTEM WYCOFYWANIA ๐Ÿ—‘๏ธ โ•‘ +โ•‘ โ•‘ +โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• BANNER echo -e "${NC}" - echo -e "${WHITE} This will remove all installed components.${NC}" - echo "" } -# ============== CONFIRMATION ============== confirm_uninstall() { - echo -e "${YELLOW}โš ๏ธ WARNING: This will remove:${NC}" - echo -e " โ€ข All hacking tools and desktop environment" - echo -e " โ€ข Custom scripts and configurations" - echo -e " โ€ข Wine and Windows compatibility layer" - echo -e " โ€ข GPU acceleration configs" - echo "" - echo -e "${RED}This action cannot be undone!${NC}" + log_warn "Ta operacja trwale usunie:" + echo -e " โ€ข ลšrodowisko graficzne i narzฤ™dzia (v2.0 i v3.0.0)" + echo -e " โ€ข Pakiety OSINT (Kali/Parrot integracja)" + echo -e " โ€ข Pobranฤ… paczkฤ™ APK z ~/Hacklab_APKs" + echo -e " โ€ข System zdalnej egzekucji" echo "" - read -p "$(echo -e "${WHITE}Type 'UNINSTALL' to confirm: ${NC}")" confirm + read -p "$(echo -e "${WHITE}Wpisz 'DELETE', aby zatwierdziฤ‡ operacjฤ™ wycofywania: ${NC}")" confirm - if [ "$confirm" != "UNINSTALL" ]; then - echo -e "${YELLOW}Uninstall cancelled.${NC}" + if [ "$confirm" != "DELETE" ]; then + log_info "Anulowano proces odinstalowywania." exit 0 fi } -# ============== STOP RUNNING PROCESSES ============== stop_processes() { - echo "" - echo -e "${PURPLE}[*] Stopping running processes...${NC}" - - # Stop X11 + log_info "Zabijanie aktywnych procesรณw i osieroconych wฤ…tkรณw (Orphan processes)..." pkill -9 -f "termux.x11" 2>/dev/null pkill -9 -f "xfce" 2>/dev/null pkill -9 -f "pulseaudio" 2>/dev/null - pkill -9 -f "dbus" 2>/dev/null pkill -9 -f "wine" 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Processes stopped" } -# ============== REMOVE SCRIPTS ============== -remove_scripts() { - echo "" - echo -e "${PURPLE}[*] Removing custom scripts...${NC}" - - # Remove launcher scripts - rm -f ~/start-hacklab.sh - rm -f ~/hacktools.sh - rm -f ~/stop-hacklab.sh +remove_components() { + log_info "Usuwanie niestandardowych skryptรณw (Remote Exec, Launchery)..." + rm -f ~/start-nexus.sh ~/start-hacklab.sh ~/hacktools.sh ~/stop-hacklab.sh ~/remote-exec.sh rm -f ~/.config/hacklab-gpu.sh - # Remove bashrc entry - if [ -f ~/.bashrc ]; then - sed -i '/hacklab-gpu.sh/d' ~/.bashrc - sed -i '/Mobile HackLab/d' ~/.bashrc - fi - - echo -e " ${GREEN}โœ“${NC} Scripts removed" -} - -# ============== REMOVE DESKTOP SHORTCUTS ============== -remove_shortcuts() { - echo "" - echo -e "${PURPLE}[*] Removing desktop shortcuts...${NC}" - - rm -rf ~/Desktop/*.desktop 2>/dev/null - rmdir ~/Desktop 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Shortcuts removed" -} - -# ============== REMOVE WINE ============== -remove_wine() { - echo "" - echo -e "${PURPLE}[*] Removing Wine components...${NC}" - - # Remove symlinks - rm -f /data/data/com.termux/files/usr/bin/wine - rm -f /data/data/com.termux/files/usr/bin/winecfg - - # Remove Wine packages - pkg uninstall hangover-wine -y 2>/dev/null - pkg uninstall hangover-wowbox64 -y 2>/dev/null - - # Remove Wine directory - rm -rf ~/.wine 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Wine removed" -} - -# ============== REMOVE SECURITY TOOLS ============== -remove_security_tools() { - echo "" - echo -e "${PURPLE}[*] Removing security tools...${NC}" - - pkg uninstall hydra -y 2>/dev/null - pkg uninstall john -y 2>/dev/null - pkg uninstall sqlmap -y 2>/dev/null - - # Remove Python security libraries - pip uninstall requests -y 2>/dev/null - pip uninstall beautifulsoup4 -y 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Security tools removed" -} - -# ============== REMOVE METASPLOIT ============== -remove_metasploit() { - echo "" - echo -e "${PURPLE}[*] Removing Metasploit Framework...${NC}" - - pkg uninstall metasploit -y 2>/dev/null - rm -rf ~/metasploit-framework 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Metasploit removed" -} - -# ============== REMOVE NETWORK TOOLS ============== -remove_network_tools() { - echo "" - echo -e "${PURPLE}[*] Removing network tools...${NC}" - - pkg uninstall nmap -y 2>/dev/null - pkg uninstall netcat-openbsd -y 2>/dev/null - pkg uninstall whois -y 2>/dev/null - pkg uninstall dnsutils -y 2>/dev/null - pkg uninstall tracepath -y 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Network tools removed" -} - -# ============== REMOVE APPLICATIONS ============== -remove_apps() { - echo "" - echo -e "${PURPLE}[*] Removing applications...${NC}" - - pkg uninstall firefox -y 2>/dev/null - pkg uninstall code-oss -y 2>/dev/null - pkg uninstall git -y 2>/dev/null - pkg uninstall wget -y 2>/dev/null - pkg uninstall curl -y 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Applications removed" -} - -# ============== REMOVE AUDIO ============== -remove_audio() { - echo "" - echo -e "${PURPLE}[*] Removing audio support...${NC}" - - pulseaudio --kill 2>/dev/null - pkg uninstall pulseaudio -y 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Audio removed" -} - -# ============== REMOVE GPU DRIVERS ============== -remove_gpu() { - echo "" - echo -e "${PURPLE}[*] Removing GPU acceleration...${NC}" - - pkg uninstall mesa-zink -y 2>/dev/null - pkg uninstall mesa-vulkan-icd-freedreno -y 2>/dev/null - pkg uninstall mesa-vulkan-icd-swrast -y 2>/dev/null - pkg uninstall vulkan-loader-android -y 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} GPU drivers removed" -} - -# ============== REMOVE DESKTOP ============== -remove_desktop() { - echo "" - echo -e "${PURPLE}[*] Removing XFCE4 Desktop...${NC}" - - pkg uninstall xfce4 -y 2>/dev/null - pkg uninstall xfce4-terminal -y 2>/dev/null - pkg uninstall thunar -y 2>/dev/null - pkg uninstall mousepad -y 2>/dev/null - - # Remove XFCE config - rm -rf ~/.config/xfce4 2>/dev/null - rm -rf ~/.cache/xfce4 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Desktop removed" -} - -# ============== REMOVE X11 ============== -remove_x11() { - echo "" - echo -e "${PURPLE}[*] Removing Termux-X11...${NC}" - - pkg uninstall termux-x11-nightly -y 2>/dev/null - pkg uninstall xorg-xrandr -y 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} X11 removed" -} - -# ============== REMOVE REPOSITORIES ============== -remove_repos() { - echo "" - echo -e "${PURPLE}[*] Removing package repositories...${NC}" + log_info "Usuwanie pobranych pakietรณw APK..." + rm -rf ~/Hacklab_APKs 2>/dev/null - pkg uninstall tur-repo -y 2>/dev/null - pkg uninstall x11-repo -y 2>/dev/null + log_info "Usuwanie warstwy Wine..." + pkg uninstall hangover-wine hangover-wowbox64 -y 2>/dev/null - echo -e " ${GREEN}โœ“${NC} Repositories removed" -} - -# ============== CLEANUP ============== -cleanup() { - echo "" - echo -e "${PURPLE}[*] Cleaning up...${NC}" + log_info "Usuwanie moduล‚รณw OSINT i narzฤ™dzi bezpieczeล„stwa..." + pkg uninstall nmap sqlmap hydra john rust -y 2>/dev/null + pip uninstall sherlock-project holehe requests beautifulsoup4 colorama -y 2>/dev/null - # Remove config directory - rm -rf ~/.config/hacklab* 2>/dev/null + log_info "Odinstalowywanie ล›rodowiska graficznego i akceleracji GPU..." + pkg uninstall xfce4 xfce4-terminal termux-x11-nightly mesa-zink -y 2>/dev/null - # Clean package cache + log_info "Czyszczenie pozostaล‚oล›ci konfiguracji..." + rm -rf ~/.config/xfce4 ~/.cache/xfce4 ~/.wine ~/Desktop 2>/dev/null pkg clean 2>/dev/null - - # Remove any remaining files - rm -rf ~/.local/share/xfce4 2>/dev/null - rm -rf ~/.xsessions 2>/dev/null - rm -rf ~/.xsession-errors 2>/dev/null - - echo -e " ${GREEN}โœ“${NC} Cleanup complete" -} - -# ============== COMPLETION ============== -show_completion() { - echo "" - echo -e "${GREEN}" - cat << 'COMPLETE' -โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— -โ•‘ โ•‘ -โ•‘ โœ… UNINSTALLATION COMPLETE! โœ… โ•‘ -โ•‘ โ•‘ -โ•‘ All components have been removed. โ•‘ -โ•‘ โ•‘ -โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• -COMPLETE - echo -e "${NC}" - echo -e "${WHITE}๐Ÿ“ฑ Mobile HackLab has been completely removed.${NC}" - echo "" - echo -e "${YELLOW}Note: Termux itself is still installed.${NC}" - echo -e "${YELLOW}If you want to reset Termux completely:${NC}" - echo -e " ${GREEN}pkg install termux-tools && termux-reset${NC}" - echo "" } -# ============== MAIN ============== main() { show_banner confirm_uninstall - stop_processes - remove_scripts - remove_shortcuts - remove_wine - remove_security_tools - remove_metasploit - remove_network_tools - remove_apps - remove_audio - remove_gpu - remove_desktop - remove_x11 - remove_repos - cleanup + remove_components - show_completion + echo "" + log_success "ลšrodowisko Hacklab Nexus v3.0.0 zostaล‚o pomyล›lnie i bezpiecznie usuniฤ™te." } -# ============== RUN ============== main