SecOC Key Extractor
This repository contains scripts to extract SecOC keys. See the related blog post for more details. Confirmed working by users on the following vehicles:
With the vehicle completely off and the brake pedal not pressed, press the power button twice to get the car into "IGNITION ON" without the green [READY] light also being on. You can then run the script. Example:
…This step is not necessary to extract the keys, as a pre-built payload is included in the repository.
The shellcode can be found in shellcode/main.c. The folder also contains scripts and Dockerfiles needed to build a cross compiler and compile the code. Run ./build_docker.sh to do this automatically.
After compiling the shellcode the payload has to be built. This can be done using the build_payload.py script. The script needs a secret from the firmware to derive the encryption key. Obtaining this key is left as an exercise to the reader.
./build_payload.py -s "ffffffffffffffffffffffffffffffff" shellcode/main.binNo open issues yet, or sync has not completed.