A small, user-friendly GUI that enables debug access (SSH / telnet / qconn) on a
BMW NBT-Evo head unit. It flashes a patched starter.cfg (OPT_DEBUG
STOP -> RUN) directly to the unit's live partition over the diagnostic
network, and can also restore the stock config.
Use at your own risk. This writes to a unit inside a real car. A wrong or version-mismatched file can leave the head unit unable to boot. Recover with Restore factory (revert) first, then serial/eMMC as the last resort.
This tool only enables SSH/debug access. It does not touch certificates or FSC codes (see Background).
- Reaches the HU flash bootloader over BMW HSFZ (TCP 6801; discovery via UDP broadcast on 6811).
- Performs UDS
SecurityAccess 0x27Level 3 using the inlined L3 key. - Writes the OPT_DEBUG
starter.cfgwith LIVE-DIRECT file copy (no signature record, so the SWDL signature check is bypassed). - After the reboot,
sshd(22),telnetd(23) andqconn(8000) come up as root over OBD/ENET.
Supported: NBT-Evo 007.xxx family (007_001_016 / 030 / 039 / 049 / 051).
Do NOT use on a 001_05x unit (different starter.cfg).
- Windows 10/11 (the GUI uses Tkinter, which ships with Python on Windows).
- Python 3.12 (any recent Python 3 works).
- ENET/OBD cable and a network adapter with a
169.254.x.xlink-local address. - The HU powered and reachable (ignition/terminal state as required by your setup).
- Allow Python through the Windows firewall when prompted.
Install Python with winget if needed:
winget install --id Python.Python.3.12 -e --source wingetThen open a new terminal so python / py resolve to the new install.
-
Put both files in the same folder:
nbt_ssh_unlock_gui.py(the GUI)nbt_optdebug_flash.py(the flasher it wraps)
-
Start the GUI:
- double-click
Start_SSH_Unlock.bat, or - run
python nbt_ssh_unlock_gui.py
- double-click
-
Click Offline self-test first. You should see
ALL PASS. -
Connect the ENET cable and make sure your adapter has a
169.254.x.xaddress. -
Click Detect (or type the gateway IP) and then Test. A valid unit returns its VIN.
-
Tick I understand the risk.
-
Click Unlock SSH and type
UNLOCKto confirm. -
Wait ~50 seconds for the HU to reboot, then connect:
ssh root@169.254.199.119Ports
22,23(telnet) and8000(qconn) are open; userroot, no password.
If the unit misbehaves after unlocking, or you simply want to close SSH again:
- Connect to the unit the same way.
- Tick the safety checkbox.
- Click Restore factory (revert) and type
REVERT. - Wait for the reboot and verify that SSH/telnet/qconn are closed.
The revert uses the same LIVE-DIRECT path and writes the byte-exact stock
starter.cfg.
Leave these at their defaults unless you know what you are doing.
| Field | Default | Meaning |
|---|---|---|
| Gateway address | (empty) | Empty = auto-discover via the 6811 broadcast; falls back to 169.254.199.99. |
| Port | 6801 |
HSFZ diagnostic port. |
| LBN (hex) | 0 |
Logical block number for erase / checkMemory. |
| Tester ID (hex) | 00000000 |
UDS tester address used in the L3 seed signature. |
| Controller (hex) | 00001ffd |
Bootloader controller ID (NBT-Evo BTLD 00001FFD). |
| Fingerprint (hex) | 00 x 13 |
Fingerprint written with 2E F15A. |
| Reset timeout (s) | 50 |
How long to wait for the HU to reappear in programming session. |
- Enter the flash bootloader:
10 03->31 01 0F0C 03(EnergyMode=Flash) ->10 02(programming session). The HU reboots into the bootloader. - Authenticate with
27 11/27 12. The key is the L3 BMWSigVerify signature overMD5([UserID][Controller][seed])(RSA-1024, e=3). - SWDL write:
31 FF00erase,34requestDownload,36transferData,37transferExit,31 0202checkMemory. - The container targets
/fs/sda0/opt/sys/etc/starter.cfgLIVE-DIRECT and carries no signature record, so it is applied to the running filesystem. - Finalize: ActivateApplicationMode, clear Energy/ExtendedMode, reset.
The offline self-test verifies the L3 key modulus hash, signs test seeds, and checks the SHA-256 of both inlined containers before any car is touched.
| Symptom | Fix |
|---|---|
No gateway detected |
Check the ENET cable, adapter link-local address (169.254.x.x), and firewall. |
| Detect works but Test fails | Confirm the gateway IP/port and that nothing blocks TCP 6801. |
| Flash aborted | Nothing was written; the existing starter.cfg is intact. Check the log. |
| Unit does not boot after unlock | Run Restore factory (revert); if that is impossible, recover over serial/eMMC. |
| Self-test fails | One of the bundled blobs/key is corrupted; re-download the tool. |
Unlike FDL coding, FSC coding requires a certificate signed by BMW that the NBT checks against a public key stored on the device. One way to make the unit accept a self-signed FSC is to replace the on-device public key with your own CA, then sign FSCs yourself. Enabling SSH is the first step: it gives write access to the filesystem so the CA modulus can be replaced, after which e-sys can apply your own FSC codes. See the original reversing notes in the repository history for the certificate-format details.
This project is for research and personal use on hardware you own. You are responsible for complying with local laws and for any damage to your vehicle or head unit. There is no warranty.