now great. thank you
Vida CEM swapping
- charlie13
- Posts: 46
- Joined: 23 March 2022
- Year and Model: 2009 XC70
- Location: Krakow
- Has thanked: 8 times
- Been thanked: 18 times
What can be changed? It stops in the same place.
SEED 93 7d cb, PIN 00 21 86 25 71, KEY 4e aa cc, 445 pins/s
reply: 02 67 02 00 00 00 00 00
hash collision found
SEED 6c 8c c5, PIN 00 21 86 28 06, KEY ff ba cd, 235 pins/s
Resetting all ECUs.
CAN_HS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
CAN_LS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
SEED 93 7d cb, PIN 00 21 86 25 71, KEY 4e aa cc, 445 pins/s
reply: 02 67 02 00 00 00 00 00
hash collision found
SEED 6c 8c c5, PIN 00 21 86 28 06, KEY ff ba cd, 235 pins/s
Resetting all ECUs.
CAN_HS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
CAN_LS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
-
vtl
- Posts: 4727
- Joined: 16 August 2012
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 114 times
- Been thanked: 606 times
It is done. PIN is 00 21 86 28 06.charlie13 wrote: ↑23 Apr 2022, 05:19 What can be changed? It stops in the same place.
SEED 93 7d cb, PIN 00 21 86 25 71, KEY 4e aa cc, 445 pins/s
reply: 02 67 02 00 00 00 00 00
hash collision found
SEED 6c 8c c5, PIN 00 21 86 28 06, KEY ff ba cd, 235 pins/s
Resetting all ECUs.
CAN_HS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
CAN_LS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
-
Power6
- Posts: 14
- Joined: 7 March 2022
- Year and Model: 2019 S60
- Location: MA
- Has thanked: 1 time
- Been thanked: 12 times
Hey VTL, on P3 with seed/key, this is similar to SPA, how many PINs are you checking in the possible set? The SPA isn't limited to only BCD values within 5 bytes, but I've worked it down to only 3 bytes of unique PINs that are a single match for any possible seed/key. I implemented in the brute force cracker I built to pull encrypted seed/key sample from VIDA logs, will crack a PIN in less than a minute on a small Azure instance, PINMagic https://spaycetech.azurewebsites.net/LogMagic.html
I did much testing against this algorithm, to figure out the limitations. I still have 3 bytes of possibilities in the PIN, which is a problem for brute forcing against the CEM directly on the SPA, ECUs all have anti-hammering (timeout after 3 seed/key tries) so still far too long to check the ~17 million possibilities. But that beats the trillion or so possibilities of the full 40 byte PIN so it's progress.
It seems online VIDA logs using DiCE contain the same captured seed/key info (need to run "Test Configuration" software), so I am going to update PINMagic to work on a DiCE log format when I have a little time. Needing to capture a good seed/key sucks, but it's awfully convenient if you are in the US and have VIDA available, have a DiCE/VOC and a laptop.
I did much testing against this algorithm, to figure out the limitations. I still have 3 bytes of possibilities in the PIN, which is a problem for brute forcing against the CEM directly on the SPA, ECUs all have anti-hammering (timeout after 3 seed/key tries) so still far too long to check the ~17 million possibilities. But that beats the trillion or so possibilities of the full 40 byte PIN so it's progress.
It seems online VIDA logs using DiCE contain the same captured seed/key info (need to run "Test Configuration" software), so I am going to update PINMagic to work on a DiCE log format when I have a little time. Needing to capture a good seed/key sucks, but it's awfully convenient if you are in the US and have VIDA available, have a DiCE/VOC and a laptop.
- charlie13
- Posts: 46
- Joined: 23 March 2022
- Year and Model: 2009 XC70
- Location: Krakow
- Has thanked: 8 times
- Been thanked: 18 times
I didn't know how it works in P3, the first time I did it using a cracker. the pin works, but there are a few others that do. 1844518461 also works weird. Another time thank you very much for your help.vtl wrote: ↑23 Apr 2022, 07:41It is done. PIN is 00 21 86 28 06.charlie13 wrote: ↑23 Apr 2022, 05:19 What can be changed? It stops in the same place.
SEED 93 7d cb, PIN 00 21 86 25 71, KEY 4e aa cc, 445 pins/s
reply: 02 67 02 00 00 00 00 00
hash collision found
SEED 6c 8c c5, PIN 00 21 86 28 06, KEY ff ba cd, 235 pins/s
Resetting all ECUs.
CAN_HS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
CAN_LS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
-
vtl
- Posts: 4727
- Joined: 16 August 2012
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 114 times
- Been thanked: 606 times
This is how a hash function works (in principle, not only in P3): it takes a long argument(s) and reduces it to a short result. Because a part of argument has to be lost, the hash produces the same result for multiple input arguments.
https://en.wikipedia.org/wiki/Hash_function
In the P3 case, there are about 600-700 PINs that produces the same hash result for the same SEED/KEY pair.
- RickHaleParker
- Posts: 7129
- Joined: 25 May 2015
- Year and Model: See Signature below.
- Location: Kansas
- Has thanked: 8 times
- Been thanked: 958 times
It is the same algorithm. Initialized with the same constant.
Are you 100% sure the PIN on the P3 needs to be BCD? I noticed your seed and keys are Hex.
⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙
1998 C70, B5234T3, 16T, AW50-42, Bosch Motronic 4.4, Special Edition package.
2003 S40, B4204T3, 14T twin scroll AW55-50/51SN, Siemens EMS 2000.
2004 S60R, B8444S TF80 AWD. Yamaha V8 conversion
2005 XC90 T6 Executive, B6294T, 4T65 AWD, Bosch Motronic 7.0.
1998 C70, B5234T3, 16T, AW50-42, Bosch Motronic 4.4, Special Edition package.
2003 S40, B4204T3, 14T twin scroll AW55-50/51SN, Siemens EMS 2000.
2004 S60R, B8444S TF80 AWD. Yamaha V8 conversion
2005 XC90 T6 Executive, B6294T, 4T65 AWD, Bosch Motronic 7.0.
-
vtl
- Posts: 4727
- Joined: 16 August 2012
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 114 times
- Been thanked: 606 times
For the hash function it does not matter, it works with the data in a binary form.RickHaleParker wrote: ↑23 Apr 2022, 10:54 Are you 100% sure the PIN on the P3 needs to be BCD? I noticed your seed and keys are Hex.
-
vtl
- Posts: 4727
- Joined: 16 August 2012
- Year and Model: 2005 XC70
- Location: Boston
- Has thanked: 114 times
- Been thanked: 606 times
Any real world examples of SPA pin + seed + key?vtl wrote: ↑23 Apr 2022, 11:02For the hash function it does not matter, it works with the data in a binary form.RickHaleParker wrote: ↑23 Apr 2022, 10:54 Are you 100% sure the PIN on the P3 needs to be BCD? I noticed your seed and keys are Hex.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1 Replies
- 6431 Views
-
Last post by RickHaleParker
-
- 5 Replies
- 8699 Views
-
Last post by forumoto






