feat: examples, standalone, monitor-install, quickstart

- auto-bypass-usb.sh: one-click bypass from SSD
- prepare-ssd.sh: prepare the SSD before you need it
- build-standalone.sh: now bundles all 12 lib modules (+check, +monitor)
- runaway-standalone.sh: v1.2.0, 1958 lines, all commands included
- monitor-install / monitor-uninstall: monitor as persistent LaunchDaemon
- QUICKSTART.md: Portuguese/English quick reference for SSD
- Responded to 8 more bypass-mdm issues
- Attached standalone to Release v1.2.0
This commit is contained in:
2026-06-20 12:14:26 -03:00
parent 7c66f6bd8f
commit 8defc9c7cc
8 changed files with 2144 additions and 65 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# auto-bypass-usb.sh
# Drop this on an external SSD. Boot to Recovery, run it.
# No typing, no prompts — just bypass.
#
# Usage from Recovery Terminal:
# chmod +x "/Volumes/YourSSD/auto-bypass-usb.sh"
# "/Volumes/YourSSD/auto-bypass-usb.sh"
UNLEASH_DIR="$(cd "$(dirname "$0")" && pwd)"
UNLEASH="$UNLEASH_DIR/unleash"
if [ ! -f "$UNLEASH" ]; then
echo "unleash not found at $UNLEASH"
echo "Copy the entire unleash/ folder alongside this script."
exit 1
fi
"$UNLEASH" bypass
+9 -22
View File
@@ -1,35 +1,22 @@
#!/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'
VERSION="$(grep '^VERSION=' "$SCRIPT_DIR/unleash" | head -1 | cut -d'"' -f2)"
[ -z "$VERSION" ] && VERSION="1.0.0"
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"
VERSION="$VERSION"
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"
for lib in colors detect validate dscl suppress backup status heal firewall harden whitelist check monitor; do
tail -n +1 "$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"
sed -e '1,/_lib in /d' -e '/^done$/,$!d' -e '/^done$/d' "$SCRIPT_DIR/unleash" >> "$OUT"
chmod +x "$OUT"
echo "Created: $OUT ($(wc -c < "$OUT") bytes, $(wc -l < "$OUT") lines)"
echo "Created: $OUT (v$VERSION, $(wc -c < "$OUT") bytes, $(wc -l < "$OUT") lines)"
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
# prepare-ssd.sh
# Prepares an external SSD with unleash + auto-bypass script.
# Run this on a working Mac, before you need the bypass.
#
# Usage:
# sudo bash prepare-ssd.sh /Volumes/MySSD
SSD="${1:-}"
[ -z "$SSD" ] && { echo "Usage: $0 /Volumes/YourSSD"; exit 1; }
[ -d "$SSD" ] || { echo "SSD not mounted at $SSD"; exit 1; }
SRC="$(cd "$(dirname "$0")/.." && pwd)"
echo "Copying unleash to $SSD..."
cp -R "$SRC" "$SSD/unleash"
cp "$SRC/examples/auto-bypass-usb.sh" "$SSD/auto-bypass-usb.sh"
chmod +x "$SSD/auto-bypass-usb.sh" "$SSD/unleash/unleash"
echo ""
echo "✅ SSD ready at $SSD"
echo ""
echo "To bypass:"
echo " 1. Boot to Recovery (hold Power on AS, Cmd+R on Intel)"
echo " 2. Open Terminal"
echo " 3. Run:"
echo " chmod +x \"${SSD}/auto-bypass-usb.sh\""
echo " \"${SSD}/auto-bypass-usb.sh\""
+18 -28
View File
@@ -1,30 +1,20 @@
#!/bin/bash
# Quickstart examples for unleash
# Copy these one-liners as needed.
# Usage examples for unleash — copy/paste what you need.
# === 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."
echo "=== unleash quick examples ==="
echo ""
echo "From Recovery (external SSD):"
echo ' "/Volumes/YourSSD/unleash/unleash" bypass'
echo ""
echo "From Recovery (one-liner, needs internet):"
echo " curl -L https://raw.githubusercontent.com/mateussiqueira/unleash/main/unleash -o /tmp/unleash && chmod +x /tmp/unleash && /tmp/unleash bypass"
echo ""
echo "From booted system (sudo needed):"
echo " sudo ./unleash heal # fix after update"
echo " sudo ./unleash harden # cleanup live MDM artifacts"
echo " sudo ./unleash audit # deep scan"
echo " sudo ./unleash check # pre-format report"
echo " sudo ./unleash monitor # watch MDM in background"
echo " sudo ./unleash persist # auto-heal on every boot"
echo " sudo ./unleash firewall # pf kernel block"
echo " sudo ./unleash whitelist # block MDM only, keep iCloud"