|
@@ -21,15 +21,7 @@
|
|
"execution_count": 1,
|
|
"execution_count": 1,
|
|
"id": "0cccc556",
|
|
"id": "0cccc556",
|
|
"metadata": {},
|
|
"metadata": {},
|
|
- "outputs": [
|
|
|
|
- {
|
|
|
|
- "name": "stderr",
|
|
|
|
- "output_type": "stream",
|
|
|
|
- "text": [
|
|
|
|
- "WARNING:ChipWhisperer Other:ChipWhisperer update available! See https://chipwhisperer.readthedocs.io/en/latest/installing.html for updating instructions\n"
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ "outputs": [],
|
|
"source": [
|
|
"source": [
|
|
"import chipwhisperer as cw\n",
|
|
"import chipwhisperer as cw\n",
|
|
"import time"
|
|
"import time"
|
|
@@ -43,7 +35,8 @@
|
|
"outputs": [],
|
|
"outputs": [],
|
|
"source": [
|
|
"source": [
|
|
"# Path to the Speck .hex file for reflashing\n",
|
|
"# Path to the Speck .hex file for reflashing\n",
|
|
- "PATH=\"/home/msc/documents/obsidian_notes/master-aits/subjects/implementation_attacks_and_countermeasures/praktikum/speck_cpa_cw/cw_firmware/simple-speck-CWLITEARM.hex\""
|
|
|
|
|
|
+ "PATH=\"/home/msc/documents/obsidian_notes/master-aits/subjects/implementation_attacks_and_countermeasures/praktikum/speck_cpa_cw/cw_firmware/simple-speck-CWLITEARM.hex\"\n",
|
|
|
|
+ "PATH=\"/home/juan/documents/master-aits/subjects/implementation_attacks_and_countermeasures/praktikum/speck_cpa_cw/cw_firmware_masked/simple-speck-CWLITEARM.hex\""
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -122,7 +115,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 4,
|
|
|
|
|
|
+ "execution_count": 9,
|
|
"id": "4cc49970",
|
|
"id": "4cc49970",
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"outputs": [],
|
|
@@ -140,7 +133,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 5,
|
|
|
|
|
|
+ "execution_count": 10,
|
|
"id": "de6112ec",
|
|
"id": "de6112ec",
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [
|
|
"outputs": [
|
|
@@ -150,10 +143,10 @@
|
|
"text": [
|
|
"text": [
|
|
"Detected known STMF32: STM32F302xB(C)/303xB(C)\n",
|
|
"Detected known STMF32: STM32F302xB(C)/303xB(C)\n",
|
|
"Extended erase (0x44), this can take ten seconds or more\n",
|
|
"Extended erase (0x44), this can take ten seconds or more\n",
|
|
- "Attempting to program 5431 bytes at 0x8000000\n",
|
|
|
|
|
|
+ "Attempting to program 5455 bytes at 0x8000000\n",
|
|
"STM32F Programming flash...\n",
|
|
"STM32F Programming flash...\n",
|
|
"STM32F Reading flash...\n",
|
|
"STM32F Reading flash...\n",
|
|
- "Verified flash OK, 5431 bytes\n"
|
|
|
|
|
|
+ "Verified flash OK, 5455 bytes\n"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -171,7 +164,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 6,
|
|
|
|
|
|
+ "execution_count": 11,
|
|
"id": "103040b9",
|
|
"id": "103040b9",
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"outputs": [],
|
|
@@ -195,7 +188,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 7,
|
|
|
|
|
|
+ "execution_count": 12,
|
|
"id": "bdfe5aba",
|
|
"id": "bdfe5aba",
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [
|
|
"outputs": [
|
|
@@ -222,15 +215,22 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
- "execution_count": 8,
|
|
|
|
|
|
+ "execution_count": 14,
|
|
"id": "180eb01b",
|
|
"id": "180eb01b",
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [
|
|
"outputs": [
|
|
|
|
+ {
|
|
|
|
+ "name": "stderr",
|
|
|
|
+ "output_type": "stream",
|
|
|
|
+ "text": [
|
|
|
|
+ "WARNING:ChipWhisperer Target:Unexpected start to command: \n"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
{
|
|
{
|
|
"name": "stdout",
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"text": [
|
|
- "CWbytearray(b'5d 7c 46 6d')\n"
|
|
|
|
|
|
+ "None\n"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -4210,7 +4210,7 @@
|
|
"name": "python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"pygments_lexer": "ipython3",
|
|
- "version": "3.9.7"
|
|
|
|
|
|
+ "version": "3.9.6"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat": 4,
|