Initial commit: runaway v1.0.0

Unified MDM bypass tool for macOS.

- CLI with 7 subcommands (bypass/suppress/backup/restore/dualboot/status/version)
- Modular (lib/*.sh) + standalone (single-file) formats
- Auto-detect Recovery mode, APFS volume, FileVault
- SSV-safe: all writes target Data volume
- Backup/restore original state
- MIT License
This commit is contained in:
2026-06-12 13:40:58 -03:00
commit ee84b445c8
13 changed files with 1024 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#!/bin/bash
# Build a standalone unleash.sh (single file) from modular source.
# Usage: bash build-standalone.sh
# Output: unleash-standalone.sh
OUT="unleash-standalone.sh"
SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
cat > "$OUT" << 'HEADER'
#!/bin/bash
set -euo pipefail
# unleash — Unified MDM bypass tool for macOS (standalone).
# Auto-detects Recovery/dualboot mode. One file, zero dependencies.
#
# Usage:
# ./unleash [bypass|suppress|backup|restore|dualboot|status|version|help]
VERSION="1.0.0"
HEADER
echo "" >> "$OUT"
for lib in colors detect validate dscl suppress backup status; do
echo "# === lib/$lib.sh ===" >> "$OUT"
# Remove shebang lines (first line of each lib)
tail -n +2 "$SCRIPT_DIR/lib/$lib.sh" >> "$OUT"
echo "" >> "$OUT"
done
# Append the main script body (skip shebang, skip lib sourcing)
sed -e '1d' -e '/^LIB_DIR=/d' -e '/^for _lib in/,/^done$/d' "$SCRIPT_DIR/unleash" >> "$OUT"
chmod +x "$OUT"
echo "Created: $OUT ($(wc -c < "$OUT") bytes, $(wc -l < "$OUT") lines)"
+30
View File
@@ -0,0 +1,30 @@
#!/bin/bash
# Quickstart examples for unleash
# Copy these one-liners as needed.
# === EXPRESS (from external SSD, no download) ===
# 1. Copy unleash folder to your SSD
# 2. Boot into Recovery
# 3. Terminal ->
# /Volumes/YourSSDName/unleash/unleash
# === ONE-LINER (download + run) ===
# curl -L https://raw.githubusercontent.com/mateussiqueira/unleash/main/unleash -o unleash
# chmod +x unleash && ./unleash bypass
# === DUAL-BOOT ===
# sudo ./unleash dualboot
# === SUPPRESS ONLY ===
# ./unleash suppress
# === BACKUP ===
# ./unleash backup
# === RESTORE ===
# ./unleash restore
# === STATUS ===
# ./unleash status
echo "See the comments in this file for usage examples."