Hi, currently i just tried Lab 3_1A AES256 Bootloader Attack using CWHusky. But unfortunately i wont be able to extract btldr_IV correctly. I just wondering is there any updated notebook version for CWHusky with SAM4S target ?
Moreover, i got error at :
from tqdm.notebook import trange
import numpy as np
import time
traces = []
keys = []
plaintexts = []
if PLATFORM == "CWLITEARM" or PLATFORM == "CW308_STM32F3":
N = 500 # Number of traces
elif PLATFORM == "CWLITEXMEGA" or PLATFORM == "CW303":
N=5000 #oof DPA attacks on XMEGA
for i in trange(N, desc='Capturing traces'):
reset_target(scope)
message = [0x00]
target.read()
key, text = ktp.new_pair() # manual creation of a key, text pair can be substituted here
keys.append(key)
plaintexts.append(text)
message.extend(text)
crc = bl_crc.bit_by_bit(text)
message.append(crc >> 8)
message.append(crc & 0xFF)
scope.arm()
okay = 0
passes = 0
while not okay:
target.write(message)
time.sleep(0.01)
response = target.read()
passes += 1
if response:
if ord(response[0]) == 0xA4:
okay = 1
elif passes >= 100:
break
ret = scope.capture()
if ret:
print('Timeout happened during acquisition')
continue
traces.append(scope.get_last_trace())
(ChipWhisperer Scope WARNING|File _OpenADCInterface.py:732) Timeout in OpenADC capture(), no trigger seen! Trigger forced, data is invalid. Status: 13
(ChipWhisperer Scope WARNING|File _OpenADCInterface.py:732) Timeout in OpenADC capture(), no trigger seen! Trigger forced, data is invalid. Status: 12
Timeout happened during acquisition
Can anyone help me please ?