feat(bypass): allow --username/--password/--full-name for unattended runs
CI / Bash Syntax Check (push) Successful in 3s
CI / Markdown Lint (push) Successful in 6s
CI / ShellCheck (push) Successful in 2m8s

This commit is contained in:
2026-11-09 11:07:10 +08:00
parent 59487b693e
commit d43c23135f
8 changed files with 183 additions and 34 deletions
+7 -1
View File
@@ -45,7 +45,13 @@ chmod +x /tmp/runaway && /tmp/runaway bypass
./runaway bypass
```
创建临时管理员账户并压制 MDM。具体做这些事:
创建临时管理员账户并压制 MDM。用户名和密码走交互式输入(直接回车用默认值 `Apple` / `1234`);无人值守场景可以用参数直接传入:
```bash
./runaway bypass --username me --password 'hunter2!' --full-name "My Name"
```
注意 `--password` 会留在 shell 历史和进程列表里,手动操作时建议还是用交互输入。具体做这些事:
1. 查找并挂载 macOS 数据卷
2. 需要时解锁 FileVault(会询问密码)