File tree Expand file tree Collapse file tree 3 files changed +5
-26
lines changed Expand file tree Collapse file tree 3 files changed +5
-26
lines changed Original file line number Diff line number Diff line change @@ -182,9 +182,9 @@ def get_secoc_key(key_struct):
182
182
erase = b"\x31 \x01 \xff \x00 " + data
183
183
panda .isotp_send (ADDR , erase , bus = BUS )
184
184
185
- print ("\n Dumping keys ..." )
186
- start = 0xfebe6e34
187
- end = 0xfebe6ff4
185
+ print ("\n Dumping dataflash ..." )
186
+ start = 0xff200000
187
+ end = 0xff208000
188
188
189
189
extracted = b""
190
190
@@ -213,24 +213,3 @@ def get_secoc_key(key_struct):
213
213
214
214
start += 4
215
215
pbar .update (4 )
216
-
217
- key_1_ok = verify_checksum (get_key_struct (extracted , 1 ))
218
- key_4_ok = verify_checksum (get_key_struct (extracted , 4 ))
219
-
220
- if not key_1_ok or not key_4_ok :
221
- print ("SecOC key checksum verification failed!" )
222
- exit (1 )
223
-
224
- key_1 = get_secoc_key (get_key_struct (extracted , 1 ))
225
- key_4 = get_secoc_key (get_key_struct (extracted , 4 ))
226
-
227
- print ("\n ECU_MASTER_KEY " , key_1 .hex ())
228
- print ("SecOC Key (KEY_4)" , key_4 .hex ())
229
-
230
- try :
231
- from openpilot .common .params import Params
232
- params = Params ()
233
- params .put ("SecOCKey" , key_4 .hex ())
234
- print ("\n SecOC key written to param successfully!" )
235
- except Exception :
236
- print ("\n Failed to write SecOCKey param" )
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ void exploit() {
10
10
11
11
asm("di" );
12
12
13
- int * addr = 0xfebe6e34 ;
14
- while (addr < 0xfebe6ff4 ) {
13
+ int * addr = 0xff200000 ;
14
+ while (addr < 0xff208000 ) {
15
15
int i = 0x10 ;
16
16
17
17
if ((* (RSCFDnCFDTMSTSp + i ) & 0b110 ) != 0 ) {
You can’t perform that action at this time.
0 commit comments