[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115636":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":11,"stars30d":11,"stars90d":14,"forks30d":14,"starsTrendScore":15,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":8,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":8,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":14,"starSnapshotCount":14,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},115636,"nbt-evo-ssh-unlocker","Xayanix\u002Fnbt-evo-ssh-unlocker","Xayanix",null,"Python",65,9,5,1,0,3,42.4,false,"main",true,[],"2026-11-07 20:06:55","2026-11-23 19:37:40","# NBT-Evo SSH Unlocker\n\nA small, user-friendly GUI that enables debug access (SSH \u002F telnet \u002F qconn) on a\nBMW **NBT-Evo** head unit. It flashes a patched `starter.cfg` (OPT_DEBUG\n`STOP` -> `RUN`) directly to the unit's live partition over the diagnostic\nnetwork, and can also restore the stock config.\n\n> **Use at your own risk.** This writes to a unit inside a real car. A wrong or\n> version-mismatched file can leave the head unit unable to boot. Recover with\n> **Restore factory (revert)** first, then serial\u002FeMMC as the last resort.\n\nThis tool **only enables SSH\u002Fdebug access**. It does not touch certificates or\nFSC codes (see [Background](#background)).\n\n---\n\n## What it does\n\n- Reaches the HU flash bootloader over BMW **HSFZ** (TCP 6801; discovery via\n  UDP broadcast on 6811).\n- Performs UDS `SecurityAccess 0x27` Level 3 using the inlined L3 key.\n- Writes the OPT_DEBUG `starter.cfg` with **LIVE-DIRECT** file copy (no\n  signature record, so the SWDL signature check is bypassed).\n- After the reboot, `sshd` (22), `telnetd` (23) and `qconn` (8000) come up as\n  **root** over OBD\u002FENET.\n\nSupported: **NBT-Evo 007.xxx** family (`007_001_016 \u002F 030 \u002F 039 \u002F 049 \u002F 051`).\n**Do NOT use on a `001_05x` unit** (different `starter.cfg`).\n\n---\n\n## Requirements\n\n- Windows 10\u002F11 (the GUI uses Tkinter, which ships with Python on Windows).\n- Python 3.12 (any recent Python 3 works).\n- ENET\u002FOBD cable and a network adapter with a `169.254.x.x` link-local address.\n- The HU powered and reachable (ignition\u002Fterminal state as required by your setup).\n- Allow Python through the Windows firewall when prompted.\n\nInstall Python with winget if needed:\n\n```powershell\nwinget install --id Python.Python.3.12 -e --source winget\n```\n\nThen open a **new** terminal so `python` \u002F `py` resolve to the new install.\n\n---\n\n## Quick start\n\n1. Put both files in the same folder:\n   - `nbt_ssh_unlock_gui.py` (the GUI)\n   - `nbt_optdebug_flash.py` (the flasher it wraps)\n2. Start the GUI:\n   - double-click `Start_SSH_Unlock.bat`, or\n   - run `python nbt_ssh_unlock_gui.py`\n3. Click **Offline self-test** first. You should see `ALL PASS`.\n4. Connect the ENET cable and make sure your adapter has a `169.254.x.x` address.\n5. Click **Detect** (or type the gateway IP) and then **Test**. A valid unit\n   returns its VIN.\n6. Tick **I understand the risk**.\n7. Click **Unlock SSH** and type `UNLOCK` to confirm.\n8. Wait ~50 seconds for the HU to reboot, then connect:\n\n   ```\n   ssh root@169.254.199.119\n   ```\n\n   Ports `22`, `23` (telnet) and `8000` (qconn) are open; user `root`, no password.\n\n---\n\n## Restoring the factory config\n\nIf the unit misbehaves after unlocking, or you simply want to close SSH again:\n\n1. Connect to the unit the same way.\n2. Tick the safety checkbox.\n3. Click **Restore factory (revert)** and type `REVERT`.\n4. Wait for the reboot and verify that SSH\u002Ftelnet\u002Fqconn are closed.\n\nThe revert uses the same LIVE-DIRECT path and writes the byte-exact stock\n`starter.cfg`.\n\n---\n\n## Advanced fields\n\nLeave these at their defaults unless you know what you are doing.\n\n| Field | Default | Meaning |\n| --- | --- | --- |\n| Gateway address | *(empty)* | Empty = auto-discover via the 6811 broadcast; falls back to `169.254.199.99`. |\n| Port | `6801` | HSFZ diagnostic port. |\n| LBN (hex) | `0` | Logical block number for erase \u002F checkMemory. |\n| Tester ID (hex) | `00000000` | UDS tester address used in the L3 seed signature. |\n| Controller (hex) | `00001ffd` | Bootloader controller ID (NBT-Evo BTLD `00001FFD`). |\n| Fingerprint (hex) | `00` x 13 | Fingerprint written with `2E F15A`. |\n| Reset timeout (s) | `50` | How long to wait for the HU to reappear in programming session. |\n\n---\n\n## How it works (short version)\n\n1. Enter the flash bootloader: `10 03` -> `31 01 0F0C 03` (EnergyMode=Flash) ->\n   `10 02` (programming session). The HU reboots into the bootloader.\n2. Authenticate with `27 11` \u002F `27 12`. The key is the L3 BMWSigVerify signature\n   over `MD5([UserID][Controller][seed])` (RSA-1024, e=3).\n3. SWDL write: `31 FF00` erase, `34` requestDownload, `36` transferData,\n   `37` transferExit, `31 0202` checkMemory.\n4. The container targets `\u002Ffs\u002Fsda0\u002Fopt\u002Fsys\u002Fetc\u002Fstarter.cfg` **LIVE-DIRECT** and\n   carries no signature record, so it is applied to the running filesystem.\n5. Finalize: ActivateApplicationMode, clear Energy\u002FExtendedMode, reset.\n\nThe offline **self-test** verifies the L3 key modulus hash, signs test seeds,\nand checks the SHA-256 of both inlined containers before any car is touched.\n\n---\n\n## Troubleshooting\n\n| Symptom | Fix |\n| --- | --- |\n| `No gateway detected` | Check the ENET cable, adapter link-local address (`169.254.x.x`), and firewall. |\n| Detect works but **Test** fails | Confirm the gateway IP\u002Fport and that nothing blocks TCP 6801. |\n| Flash aborted | Nothing was written; the existing `starter.cfg` is intact. Check the log. |\n| Unit does not boot after unlock | Run **Restore factory (revert)**; if that is impossible, recover over serial\u002FeMMC. |\n| Self-test fails | One of the bundled blobs\u002Fkey is corrupted; re-download the tool. |\n\n---\n\n## Background\n\nUnlike FDL coding, FSC coding requires a certificate signed by BMW that the NBT\nchecks against a public key stored on the device. One way to make the unit\naccept a self-signed FSC is to replace the on-device public key with your own\nCA, then sign FSCs yourself. Enabling SSH is the first step: it gives write\naccess to the filesystem so the CA modulus can be replaced, after which e-sys\ncan apply your own FSC codes. See the original reversing notes in the repository\nhistory for the certificate-format details.\n\n---\n\n## Disclaimer\n\nThis project is for research and personal use on hardware you own. You are\nresponsible for complying with local laws and for any damage to your vehicle or\nhead unit. There is no warranty.\n","这是一个专为宝马NBT-Evo车载主机（007.xxx固件系列）设计的图形化工具，用于安全启用SSH、Telnet和qconn等调试访问功能。它通过HSFZ协议连接主机，执行UDS安全访问认证后，以LIVE-DIRECT方式向运行分区写入已打补丁的starter.cfg配置文件（启用OPT_DEBUG），绕过SWDL签名校验；支持一键恢复原始配置。整个过程无需拆机或串口介入，仅依赖ENET\u002FOBD诊断线缆与Windows本地网络环境。适用于汽车电子工程师、售后调试人员及合规的车载系统研究人员在受控环境下进行底层诊断与功能验证。",2,"2026-11-24 04:51:38","CREATED_QUERY"]