chore: migrate all URLs to git.jskdjs.cn, drop GitHub-specific distribution

This commit is contained in:
2026-11-09 10:31:11 +08:00
parent dd793f24fd
commit b4de699a32
26 changed files with 93 additions and 214 deletions
-1
View File
@@ -1 +0,0 @@
github: [mateussiqueira]
-43
View File
@@ -1,43 +0,0 @@
name: Update Homebrew Formula
on:
release:
types: [published]
jobs:
update-homebrew:
name: Update homebrew-runaway formula
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
repository: mateussiqueira/homebrew-runaway
token: ${{ secrets.GH_PAT || github.token }}
- name: Download release artifact and compute SHA
id: sha
run: |
TAG="${{ github.event.release.tag_name }}"
curl -sL "https://github.com/mateussiqueira/runaway/releases/download/${TAG}/runaway-standalone.sh" -o /tmp/runaway-standalone.sh
SHA=$(shasum -a 256 /tmp/runaway-standalone.sh | cut -d' ' -f1)
echo "sha=${SHA}" >> $GITHUB_OUTPUT
echo "tag=${TAG}" >> $GITHUB_OUTPUT
- name: Update formula URL and SHA
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION="${VERSION#v}"
SHA="${{ steps.sha.outputs.sha }}"
TAG="${{ steps.sha.outputs.tag }}"
sed -i "s|url \".*\"|url \"https://raw.githubusercontent.com/mateussiqueira/runaway/${TAG}/runaway-standalone.sh\"|" Formula/runaway.rb
sed -i "s|version \".*\"|version \"${VERSION}\"|" Formula/runaway.rb
sed -i "s|sha256 \".*\"|sha256 \"${SHA}\"|" Formula/runaway.rb
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add Formula/runaway.rb
git diff --cached --quiet || git commit -m "chore: update formula to ${{ github.event.release.tag_name }}"
git push
+1 -1
View File
@@ -35,7 +35,7 @@ No internet needed. No SIP to disable. No typing long URLs.
If you do have internet in Recovery: If you do have internet in Recovery:
```bash ```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o /tmp/runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o /tmp/runaway
chmod +x /tmp/runaway && /tmp/runaway bypass chmod +x /tmp/runaway && /tmp/runaway bypass
``` ```
+1 -4
View File
@@ -7,11 +7,8 @@ Ferramenta única para bypass/supressão de MDM no macOS. Funciona do Modo de Re
## Instalação rápida ## Instalação rápida
```bash ```bash
# Homebrew (mais fácil)
brew install mateussiqueira/runaway/runaway
# Download direto # Download direto
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway && sudo ./runaway chmod +x runaway && sudo ./runaway
``` ```
+1 -1
View File
@@ -31,7 +31,7 @@ chmod +x "/Volumes/YourSSD/runaway/runaway"
如果恢复模式下有网络,也可以: 如果恢复模式下有网络,也可以:
```bash ```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o /tmp/runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o /tmp/runaway
chmod +x /tmp/runaway && /tmp/runaway bypass chmod +x /tmp/runaway && /tmp/runaway bypass
``` ```
+1 -3
View File
@@ -3,9 +3,7 @@
## Q3 2026 (Jul–Sep) — Foundation ## Q3 2026 (Jul–Sep) — Foundation
### July — v1.7.0 "Solidify" ### July — v1.7.0 "Solidify"
- [ ] **Resolve GitHub Actions billing** — re-enable CI/CD
- [ ] **Fix CI pipeline** — all checks passing on every PR - [ ] **Fix CI pipeline** — all checks passing on every PR
- [ ] **Homebrew audit** — `brew audit --strict` passes on `mateussiqueira/runaway/runaway`
- [ ] **Improve bats test coverage** — mock-based tests for firewall, monitor, vpn modules - [ ] **Improve bats test coverage** — mock-based tests for firewall, monitor, vpn modules
- [ ] **Add `--help` flag** per command (currently only global `-h`) - [ ] **Add `--help` flag** per command (currently only global `-h`)
@@ -59,4 +57,4 @@
## How to contribute ## How to contribute
Pick any unchecked item, open an issue or discussion, and submit a PR. See [CONTRIBUTING.md](https://github.com/mateussiqueira/runaway/blob/main/CONTRIBUTING.md) for guidelines. Pick any unchecked item, open an issue or discussion, and submit a PR. See [CONTRIBUTING.md](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CONTRIBUTING.md) for guidelines.
+1 -2
View File
@@ -13,8 +13,7 @@ This tool modifies system configuration to suppress MDM enrollment. While design
To report a vulnerability: To report a vulnerability:
1. **Do NOT** open a public issue 1. **Do NOT** open a public issue
2. Open a [security advisory](https://github.com/mateussiqueira/runaway/security/advisories) privately 2. Email the maintainer directly: **bunnyruihan@gmail.com**
3. Or email the maintainer directly
## Safety Guarantees ## Safety Guarantees
+2 -2
View File
@@ -16,9 +16,9 @@ pkgs.stdenv.mkDerivation rec {
meta = with pkgs.lib; { meta = with pkgs.lib; {
description = "Single-script MDM bypass for macOS"; description = "Single-script MDM bypass for macOS";
homepage = "https://github.com/mateussiqueira/runaway"; homepage = "https://git.jskdjs.cn/ruihan/runaway";
license = licenses.mit; license = licenses.mit;
platforms = platforms.darwin; platforms = platforms.darwin;
maintainers = [ maintainers.mateussiqueira ]; maintainers = [ ];
}; };
} }
+3 -3
View File
@@ -41,8 +41,8 @@
<a href="/security" data-pt="/pt/security">Security</a> <a href="/security" data-pt="/pt/security">Security</a>
<h3>External</h3> <h3>External</h3>
<a href="https://github.com/mateussiqueira/runaway" target="_blank">GitHub</a> <a href="https://git.jskdjs.cn/ruihan/runaway" target="_blank">GitHub</a>
<a href="https://github.com/mateussiqueira/runaway/blob/main/CHANGELOG.md" target="_blank">Changelog</a> <a href="https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CHANGELOG.md" target="_blank">Changelog</a>
</nav> </nav>
<header class="page-header" role="banner"> <header class="page-header" role="banner">
@@ -64,7 +64,7 @@
{% if site.github.is_project_page %} {% if site.github.is_project_page %}
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span> <span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
{% endif %} {% endif %}
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span> <span class="site-footer-credits">runaway documentation</span>
</footer> </footer>
</main> </main>
+2 -2
View File
@@ -22,7 +22,7 @@ No. The original bypass-mdm scripts (v2, v3, express) only handle DEP markers an
- **Kernel-level pf firewall** (original does not do this) - **Kernel-level pf firewall** (original does not do this)
- **Auto-heal daemon**, **background monitor**, **audit**, **predict**, **remediate**, and 30+ more commands - **Auto-heal daemon**, **background monitor**, **audit**, **predict**, **remediate**, and 30+ more commands
Plus a single-file distribution, Homebrew tap, DONT.md discussions, and GPG-signed releases. Plus a single-file distribution, community discussions, and GPG-signed releases.
### Do I need to disable SIP? ### Do I need to disable SIP?
@@ -54,7 +54,7 @@ Migration Assistant copies user-level caches, preferences, and launch agents fro
### Is there a GUI? ### Is there a GUI?
Not yet. The CLI is the primary interface. A SwiftUI wrapper is on the [roadmap](https://github.com/mateussiqueira/runaway/blob/main/ROADMAP.md). Not yet. The CLI is the primary interface. A SwiftUI wrapper is on the [roadmap](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/ROADMAP.md).
### How is runaway licensed? ### How is runaway licensed?
+10 -15
View File
@@ -38,14 +38,9 @@ runaway replaces the original five bypass-mdm scripts with a single file that ha
## Install ## Install
**Homebrew (easiest)**
```bash
brew install mateussiqueira/runaway/runaway
```
**Direct download** **Direct download**
```bash ```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway chmod +x runaway
``` ```
@@ -451,14 +446,14 @@ Use `--verbose` for debug messages and `--log-file <path>` to write everything t
## Links ## Links
- [GitHub Repository](https://github.com/mateussiqueira/runaway) - [GitHub Repository](https://git.jskdjs.cn/ruihan/runaway)
- [Full README](https://github.com/mateussiqueira/runaway/blob/main/README.md) - [Full README](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/README.md)
- [Architecture Guide](guide) - [Architecture Guide](guide)
- [FAQ](faq) - [FAQ](faq)
- [Quick Reference (QUICKSTART.md)](https://github.com/mateussiqueira/runaway/blob/main/QUICKSTART.md) - [Quick Reference (QUICKSTART.md)](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/QUICKSTART.md)
- [Changelog](https://github.com/mateussiqueira/runaway/blob/main/CHANGELOG.md) - [Changelog](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CHANGELOG.md)
- [Contributing](https://github.com/mateussiqueira/runaway/blob/main/CONTRIBUTING.md) - [Contributing](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CONTRIBUTING.md)
- [Code of Conduct](https://github.com/mateussiqueira/runaway/blob/main/CODE_OF_CONDUCT.md) - [Code of Conduct](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CODE_OF_CONDUCT.md)
- [Security Policy](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md) - [Security Policy](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md)
- [Discussions](https://github.com/mateussiqueira/runaway/discussions) - [Discussions](https://git.jskdjs.cn/ruihan/runaway/discussions)
- [Report a Bug](https://github.com/mateussiqueira/runaway/issues/new?template=bug_report.md) - [Report a Bug](https://git.jskdjs.cn/ruihan/runaway/issues/new?template=bug_report.md)
+3 -15
View File
@@ -5,22 +5,10 @@ title: Installation — runaway
# Installation # Installation
## Homebrew (easiest)
```bash
brew tap mateussiqueira/runaway
brew install runaway
```
Or in one step:
```bash
brew install mateussiqueira/runaway/runaway
```
## Direct download ## Direct download
```bash ```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway chmod +x runaway
sudo ./runaway init sudo ./runaway init
``` ```
@@ -34,14 +22,14 @@ sudo ./runaway init
## Via curl in Recovery (needs internet) ## Via curl in Recovery (needs internet)
```bash ```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway -o /tmp/runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway -o /tmp/runaway
chmod +x /tmp/runaway && /tmp/runaway bypass chmod +x /tmp/runaway && /tmp/runaway bypass
``` ```
## Building from source ## Building from source
```bash ```bash
git clone https://github.com/mateussiqueira/runaway.git git clone https://git.jskdjs.cn/ruihan/runaway.git
cd runaway cd runaway
bash examples/build-standalone.sh bash examples/build-standalone.sh
# Output: runaway-standalone.sh (~3200 lines) # Output: runaway-standalone.sh (~3200 lines)
+1 -1
View File
@@ -54,7 +54,7 @@ O Migration Assistant copia caches, preferências e launch agents do Mac antigo.
### Tem interface gráfica? ### Tem interface gráfica?
Ainda não. A CLI é a interface principal. Um wrapper SwiftUI está no [roadmap](https://github.com/mateussiqueira/runaway/blob/main/ROADMAP.md). Ainda não. A CLI é a interface principal. Um wrapper SwiftUI está no [roadmap](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/ROADMAP.md).
### Qual é a licença? ### Qual é a licença?
+9 -14
View File
@@ -38,14 +38,9 @@ runaway substitui os cinco scripts originais do bypass-mdm em um único arquivo
## Instalar ## Instalar
**Homebrew (mais fácil)**
```bash
brew install mateussiqueira/runaway/runaway
```
**Download direto** **Download direto**
```bash ```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway chmod +x runaway
``` ```
@@ -431,13 +426,13 @@ Use `--verbose` para mensagens de debug e `--log-file <caminho>` para escrever t
## Links ## Links
- [Repositório GitHub](https://github.com/mateussiqueira/runaway) - [Repositório GitHub](https://git.jskdjs.cn/ruihan/runaway)
- [README completo](https://github.com/mateussiqueira/runaway/blob/main/README.md) - [README completo](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/README.md)
- [Guia de Arquitetura](guide) - [Guia de Arquitetura](guide)
- [FAQ](faq) - [FAQ](faq)
- [Changelog](https://github.com/mateussiqueira/runaway/blob/main/CHANGELOG.md) - [Changelog](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CHANGELOG.md)
- [Contribuindo](https://github.com/mateussiqueira/runaway/blob/main/CONTRIBUTING.md) - [Contribuindo](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CONTRIBUTING.md)
- [Código de Conduta](https://github.com/mateussiqueira/runaway/blob/main/CODE_OF_CONDUCT.md) - [Código de Conduta](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CODE_OF_CONDUCT.md)
- [Política de Segurança](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md) - [Política de Segurança](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md)
- [Discussões](https://github.com/mateussiqueira/runaway/discussions) - [Discussões](https://git.jskdjs.cn/ruihan/runaway/discussions)
- [Reportar Bug](https://github.com/mateussiqueira/runaway/issues/new?template=bug_report.md) - [Reportar Bug](https://git.jskdjs.cn/ruihan/runaway/issues/new?template=bug_report.md)
+3 -15
View File
@@ -5,22 +5,10 @@ title: Instalação — runaway
# Instalação # Instalação
## Homebrew (mais fácil)
```bash
brew tap mateussiqueira/runaway
brew install runaway
```
Ou em um passo:
```bash
brew install mateussiqueira/runaway/runaway
```
## Download direto ## Download direto
```bash ```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway chmod +x runaway
sudo ./runaway init sudo ./runaway init
``` ```
@@ -34,14 +22,14 @@ sudo ./runaway init
## Via curl no Recovery (precisa de internet) ## Via curl no Recovery (precisa de internet)
```bash ```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway -o /tmp/runaway curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway -o /tmp/runaway
chmod +x /tmp/runaway && /tmp/runaway bypass chmod +x /tmp/runaway && /tmp/runaway bypass
``` ```
## Compilando a partir do código-fonte ## Compilando a partir do código-fonte
```bash ```bash
git clone https://github.com/mateussiqueira/runaway.git git clone https://git.jskdjs.cn/ruihan/runaway.git
cd runaway cd runaway
bash examples/build-standalone.sh bash examples/build-standalone.sh
# Saída: runaway-standalone.sh (~3200 linhas) # Saída: runaway-standalone.sh (~3200 linhas)
+1 -1
View File
@@ -58,4 +58,4 @@ precisam de acesso à rede.
## Divulgação Responsável ## Divulgação Responsável
Encontrou um problema de segurança? Encontrou um problema de segurança?
Veja a [Política de Segurança](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md). Veja a [Política de Segurança](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md).
+4 -20
View File
@@ -166,7 +166,6 @@ ERROR: Library not found: /path/to/lib/colors.sh
**Solução:** **Solução:**
- Use a versão standalone (`runaway-standalone.sh`) - Use a versão standalone (`runaway-standalone.sh`)
- Ou execute da raiz do repositório onde o diretório `lib/` existe - Ou execute da raiz do repositório onde o diretório `lib/` existe
- Ou instale via Homebrew
--- ---
@@ -207,22 +206,7 @@ O serial fica no ABM para sempre — mas se o dispositivo nunca conectar sem pro
1. Certifique-se de ter `gpg` instalado 1. Certifique-se de ter `gpg` instalado
2. Importe a chave de assinatura: `gpg --keyserver keys.openpgp.org --recv-key <KEY_ID>` 2. Importe a chave de assinatura: `gpg --keyserver keys.openpgp.org --recv-key <KEY_ID>`
3. Tente `sudo ./runaway update` novamente 3. Tente `sudo ./runaway update` novamente
4. Ou baixe manualmente de [GitHub Releases](https://github.com/mateussiqueira/runaway/releases) 4. Ou baixe manualmente de [GitHub Releases](https://git.jskdjs.cn/ruihan/runaway/releases)
---
### Instalação via Homebrew falha
```
Error: ... homebrew-core ...
```
**Solução:** Certifique-se de que o tap está atualizado:
```bash
brew untap mateussiqueira/runaway
brew tap mateussiqueira/runaway
brew install runaway
```
--- ---
@@ -279,6 +263,6 @@ sudo ./runaway demo
## Obtendo Ajuda ## Obtendo Ajuda
- [GitHub Issues](https://github.com/mateussiqueira/runaway/issues) - [Issues](https://git.jskdjs.cn/ruihan/runaway/issues)
- [Discussões](https://github.com/mateussiqueira/runaway/discussions) - [Discussões](https://git.jskdjs.cn/ruihan/runaway/discussions)
- [Política de Segurança](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md) - [Política de Segurança](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md)
+1 -1
View File
@@ -58,4 +58,4 @@ network access.
## Responsible Disclosure ## Responsible Disclosure
Found a security issue? Found a security issue?
See the [Security Policy](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md). See the [Security Policy](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md).
+1 -1
View File
@@ -34,7 +34,7 @@
<text x="600" y="470" fill="#a6e3a1" text-anchor="middle" font-family="SFMono-Regular,Consolas,monospace" font-size="24" font-weight="bold">MDM BYPASSED — reboot and enjoy</text> <text x="600" y="470" fill="#a6e3a1" text-anchor="middle" font-family="SFMono-Regular,Consolas,monospace" font-size="24" font-weight="bold">MDM BYPASSED — reboot and enjoy</text>
<!-- Footer --> <!-- Footer -->
<text x="600" y="560" fill="#6c7086" text-anchor="middle" font-family="SFMono-Regular,Consolas,monospace" font-size="18">github.com/mateussiqueira/runaway</text> <text x="600" y="560" fill="#6c7086" text-anchor="middle" font-family="SFMono-Regular,Consolas,monospace" font-size="18">git.jskdjs.cn/ruihan/runaway</text>
<!-- Cursor blink --> <!-- Cursor blink -->
<rect x="380" y="226" width="14" height="26" fill="#cdd6f4" rx="3"> <rect x="380" y="226" width="14" height="26" fill="#cdd6f4" rx="3">

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

+4 -20
View File
@@ -166,7 +166,6 @@ ERROR: Library not found: /path/to/lib/colors.sh
**Fix:** **Fix:**
- Use the standalone version (`runaway-standalone.sh`) instead - Use the standalone version (`runaway-standalone.sh`) instead
- Or run from the repo root where the `lib/` directory exists - Or run from the repo root where the `lib/` directory exists
- Or install via Homebrew
--- ---
@@ -207,22 +206,7 @@ The serial stays in ABM forever — but if the device never connects without pro
1. Make sure you have `gpg` installed 1. Make sure you have `gpg` installed
2. Import the signing key: `gpg --keyserver keys.openpgp.org --recv-key <KEY_ID>` 2. Import the signing key: `gpg --keyserver keys.openpgp.org --recv-key <KEY_ID>`
3. Try `sudo ./runaway update` again 3. Try `sudo ./runaway update` again
4. Or download manually from [GitHub Releases](https://github.com/mateussiqueira/runaway/releases) 4. Or download manually from [GitHub Releases](https://git.jskdjs.cn/ruihan/runaway/releases)
---
### Homebrew installation fails
```
Error: ... homebrew-core ...
```
**Fix:** Make sure the tap is up to date:
```bash
brew untap mateussiqueira/runaway
brew tap mateussiqueira/runaway
brew install runaway
```
--- ---
@@ -279,6 +263,6 @@ sudo ./runaway demo
## Getting Help ## Getting Help
- [GitHub Issues](https://github.com/mateussiqueira/runaway/issues) - [Issues](https://git.jskdjs.cn/ruihan/runaway/issues)
- [Discussions](https://github.com/mateussiqueira/runaway/discussions) - [Discussions](https://git.jskdjs.cn/ruihan/runaway/discussions)
- [Security Policy](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md) - [Security Policy](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md)
+1 -1
View File
@@ -7,7 +7,7 @@ echo "From Recovery (external SSD):"
echo ' "/Volumes/YourSSD/runaway/runaway" bypass' echo ' "/Volumes/YourSSD/runaway/runaway" bypass'
echo "" echo ""
echo "From Recovery (one-liner, needs internet):" echo "From Recovery (one-liner, needs internet):"
echo " curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway -o /tmp/runaway && chmod +x /tmp/runaway && /tmp/runaway bypass" echo " curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway -o /tmp/runaway && chmod +x /tmp/runaway && /tmp/runaway bypass"
echo "" echo ""
echo "From booted system (sudo needed):" echo "From booted system (sudo needed):"
echo " sudo ./runaway heal # fix after update" echo " sudo ./runaway heal # fix after update"
+1 -1
View File
@@ -108,7 +108,7 @@ run_doctor() {
fi fi
begin "Internet access" begin "Internet access"
if command -v curl &>/dev/null && curl -s --max-time 3 https://github.com >/dev/null 2>&1; then if command -v curl &>/dev/null && curl -s --max-time 3 https://git.jskdjs.cn >/dev/null 2>&1; then
end_ok; echo " Online" end_ok; echo " Online"
else else
end_fail; echo " Offline (expected in Recovery)" end_fail; echo " Offline (expected in Recovery)"
+4 -4
View File
@@ -1,4 +1,4 @@
GPG_KEY_URL="https://raw.githubusercontent.com/mateussiqueira/runaway/main/.github/runaway.gpg" GPG_KEY_URL="https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/.github/runaway.gpg"
import_gpg_key() { import_gpg_key() {
local tmp_key local tmp_key
@@ -36,8 +36,8 @@ do_self_update() {
error_exit "curl required for update" error_exit "curl required for update"
fi fi
local repo="mateussiqueira/runaway" local repo="ruihan/runaway"
local api_url="https://api.github.com/repos/${repo}/releases/latest" local api_url="https://git.jskdjs.cn/api/v1/repos/${repo}/releases/latest"
local tmp_dir local tmp_dir
tmp_dir=$(mktemp -d) tmp_dir=$(mktemp -d)
@@ -63,7 +63,7 @@ do_self_update() {
info "Updating from v$VERSION to v$latest_tag..." info "Updating from v$VERSION to v$latest_tag..."
begin "Downloading latest runaway" begin "Downloading latest runaway"
local dl_url="https://raw.githubusercontent.com/${repo}/main/runaway" local dl_url="https://git.jskdjs.cn/${repo}/raw/branch/main/runaway"
local sig_url="${dl_url}.sig" local sig_url="${dl_url}.sig"
local tmp="$tmp_dir/runaway" local tmp="$tmp_dir/runaway"
local sig_tmp="$tmp_dir/runaway.sig" local sig_tmp="$tmp_dir/runaway.sig"
+3 -8
View File
@@ -24,12 +24,7 @@ telemetry_is_enabled() {
telemetry_send() { telemetry_send() {
telemetry_is_enabled || return 0 telemetry_is_enabled || return 0
local event="$1" # Upstream telemetry collector removed in this fork; nothing is sent.
local data="${2:-{}}" # Kept as a no-op so opt-in state and call sites keep working.
local url="https://runaway-telemetry.mateussiqueira.workers.dev/event" return 0
local payload
payload=$(printf '{"event":"%s","version":"%s","arch":"%s","os":"%s","data":%s}' \
"$event" "$VERSION" "$(uname -m)" "$(uname -s)" "$data")
curl -s -o /dev/null -w "" -H "Content-Type: application/json" \
-d "$payload" "$url" 2>/dev/null || true
} }
+34 -34
View File
@@ -379,6 +379,21 @@ find_available_uid() {
echo 501 echo 501
} }
hide_user() {
local node="$1"
local data_mount="$2"
local username="$3"
info "Hiding user account: $username"
check_user_exists "$node" "$username" || error_exit "Could not find user '$username'"
dscl -f "$node" localhost -create "/Local/Default/Users/$username" IsHidden "1" 2>/dev/null
chflags hidden "$data_mount/Users/$username"
success "User '$username' hidden"
}
delete_user() { delete_user() {
local node="$1" local node="$1"
local data_mount="$2" local data_mount="$2"
@@ -423,21 +438,6 @@ create_admin_user() {
success "Admin '$username' created (UID $uid)" success "Admin '$username' created (UID $uid)"
} }
hide_user() {
local node="$1"
local data_mount="$2"
local username="$3"
info "Hiding user account: $username"
check_user_exists "$node" "$username" || error_exit "Could not find user '$username'"
dscl -f "$node" localhost -create "/Local/Default/Users/$username" IsHidden "1" 2>/dev/null
chflags hidden "$data_mount/Users/$username"
success "User '$username' hidden"
}
add_to_filevault() { add_to_filevault() {
local username="$1" local username="$1"
if command -v fdesetup &>/dev/null \ if command -v fdesetup &>/dev/null \
@@ -2015,7 +2015,7 @@ run_doctor() {
fi fi
begin "Internet access" begin "Internet access"
if command -v curl &>/dev/null && curl -s --max-time 3 https://github.com >/dev/null 2>&1; then if command -v curl &>/dev/null && curl -s --max-time 3 https://git.jskdjs.cn >/dev/null 2>&1; then
end_ok; echo " Online" end_ok; echo " Online"
else else
end_fail; echo " Offline (expected in Recovery)" end_fail; echo " Offline (expected in Recovery)"
@@ -2090,7 +2090,7 @@ run_doctor() {
echo -e "${CYAN}╚══════════════════════════════════════╝${NC}" echo -e "${CYAN}╚══════════════════════════════════════╝${NC}"
} }
GPG_KEY_URL="https://raw.githubusercontent.com/mateussiqueira/runaway/main/.github/runaway.gpg" GPG_KEY_URL="https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/.github/runaway.gpg"
import_gpg_key() { import_gpg_key() {
local tmp_key local tmp_key
@@ -2128,8 +2128,8 @@ do_self_update() {
error_exit "curl required for update" error_exit "curl required for update"
fi fi
local repo="mateussiqueira/runaway" local repo="ruihan/runaway"
local api_url="https://api.github.com/repos/${repo}/releases/latest" local api_url="https://git.jskdjs.cn/api/v1/repos/${repo}/releases/latest"
local tmp_dir local tmp_dir
tmp_dir=$(mktemp -d) tmp_dir=$(mktemp -d)
@@ -2155,7 +2155,7 @@ do_self_update() {
info "Updating from v$VERSION to v$latest_tag..." info "Updating from v$VERSION to v$latest_tag..."
begin "Downloading latest runaway" begin "Downloading latest runaway"
local dl_url="https://raw.githubusercontent.com/${repo}/main/runaway" local dl_url="https://git.jskdjs.cn/${repo}/raw/branch/main/runaway"
local sig_url="${dl_url}.sig" local sig_url="${dl_url}.sig"
local tmp="$tmp_dir/runaway" local tmp="$tmp_dir/runaway"
local sig_tmp="$tmp_dir/runaway.sig" local sig_tmp="$tmp_dir/runaway.sig"
@@ -2843,7 +2843,7 @@ show_cmd_help() {
case "$1" in case "$1" in
bypass) echo "Bypass MDM from Recovery. Creates admin user." ;; bypass) echo "Bypass MDM from Recovery. Creates admin user." ;;
suppress) echo "Suppress enrollment without creating a user." ;; suppress) echo "Suppress enrollment without creating a user." ;;
admin) echo "Create an admin user without suppressing enrollment." ;; admin) echo "Create an admin user without suppressing enrollment." ;;
heal) echo "Re-apply suppression after macOS updates." ;; heal) echo "Re-apply suppression after macOS updates." ;;
persist) echo "Install auto-heal LaunchDaemon." ;; persist) echo "Install auto-heal LaunchDaemon." ;;
unpersist) echo "Remove auto-heal LaunchDaemon." ;; unpersist) echo "Remove auto-heal LaunchDaemon." ;;
@@ -2899,7 +2899,7 @@ Bypass / suppress / monitor MDM enrollment on macOS.
Core: Core:
bypass Full MDM bypass from Recovery (creates admin user) bypass Full MDM bypass from Recovery (creates admin user)
suppress Silence enrollment, no user created suppress Silence enrollment, no user created
admin Create a local admin user without suppressing enrollment admin Create an admin user without suppressing enrollment
heal Check + re-apply suppression after macOS updates heal Check + re-apply suppression after macOS updates
Persistence: Persistence:
@@ -3023,6 +3023,13 @@ cmd_suppress() {
suppress_only_mode "$data_mount" suppress_only_mode "$data_mount"
} }
cmd_backup() {
header "Backup"
local data_mount
data_mount=$(resolve_data_volume)
backup_state "$data_mount"
}
cmd_admin() { cmd_admin() {
if ! is_recovery; then if ! is_recovery; then
error_exit "Admin creation must run from Recovery mode." error_exit "Admin creation must run from Recovery mode."
@@ -3037,13 +3044,6 @@ cmd_admin() {
admin_only_mode "$data_mount" admin_only_mode "$data_mount"
} }
cmd_backup() {
header "Backup"
local data_mount
data_mount=$(resolve_data_volume)
backup_state "$data_mount"
}
cmd_restore() { cmd_restore() {
header "Restore" header "Restore"
restore_state restore_state
@@ -3280,7 +3280,7 @@ cmd_interactive_recovery() {
local options=( local options=(
"Full bypass (create admin + suppress MDM)" "Full bypass (create admin + suppress MDM)"
"Suppress enrollment only" "Suppress enrollment only"
"Create local admin user only" "Create local admin user only"
"Auto-heal" "Auto-heal"
"Install pf firewall" "Install pf firewall"
"Remove pf firewall" "Remove pf firewall"
@@ -3303,9 +3303,9 @@ cmd_interactive_recovery() {
"Suppress enrollment only") "Suppress enrollment only")
suppress_only_mode "$data_mount" suppress_only_mode "$data_mount"
;; ;;
"Create local admin user only") "Create local admin user only")
admin_only_mode "$data_mount" admin_only_mode "$data_mount"
;; ;;
"Auto-heal") "Auto-heal")
heal_suppress "$data_mount" heal_suppress "$data_mount"
;; ;;
@@ -3423,7 +3423,7 @@ main() {
case "${1:-}" in case "${1:-}" in
bypass|by) cmd_bypass ;; bypass|by) cmd_bypass ;;
suppress|sv) cmd_suppress ;; suppress|sv) cmd_suppress ;;
admin|adm) cmd_admin ;; admin|adm) cmd_admin ;;
heal) cmd_heal ;; heal) cmd_heal ;;
persist) cmd_persist ;; persist) cmd_persist ;;
unpersist) cmd_unpersist ;; unpersist) cmd_unpersist ;;
+1 -1
View File
@@ -2,7 +2,7 @@
@test "Recovery download runs without a library directory" { @test "Recovery download runs without a library directory" {
local repo="$BATS_TEST_DIRNAME/.." artifact target="$BATS_TEST_TMPDIR/recovery" local repo="$BATS_TEST_DIRNAME/.." artifact target="$BATS_TEST_TMPDIR/recovery"
artifact=$(sed -n 's|^curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/\([^ ]*\) -o /tmp/runaway$|\1|p' "$repo/README.md") artifact=$(sed -n 's|^curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/\([^ ]*\) -o /tmp/runaway$|\1|p' "$repo/README.md")
[ -n "$artifact" ] [ -n "$artifact" ]
mkdir -p "$target" mkdir -p "$target"
cp "$repo/$artifact" "$target/runaway" cp "$repo/$artifact" "$target/runaway"