add updated sim module firmware v4.13, this is breaking change for smart category commands

This commit is contained in:
iceman1001
2022-12-09 07:36:02 +01:00
parent 9a76ec8fb0
commit e364d7e03d
10 changed files with 837 additions and 17 deletions
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
3bb6cbd893ce07720d8514d00706b230b4026a54d6c4dc068ca294beea3f3735c75dae65bc153f573b7b891753c85860f6427fb0ad7edb804d58925c50d1fc76 *sim013.bin
+1 -1
View File
@@ -522,7 +522,7 @@ static int CmdSmartUpgrade(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "smart upgrade",
"Upgrade RDV4 sim module firmware",
"smart upgrade -f sim012.bin"
"smart upgrade -f sim013.bin"
);
void *argtable[] = {
+1 -1
View File
@@ -713,7 +713,7 @@ pm3 --> mem load -f iclass_default_keys --iclass
Upgrade Sim Module firmware
```
pm3 --> smart upgrade -f sim012.bin
pm3 --> smart upgrade -f sim013.bin
```
## Smart Card
@@ -161,9 +161,9 @@ proxmark3 <YOUR_PORT_HERE> --flash --image /usr/local/share/proxmark3/firmware/f
proxmark3 <YOUR_PORT_HERE> --flash --image /usr/share/proxmark3/firmware/fullimage.elf
using the script:
pm3 --> smart upgrade -f /usr/local/share/proxmark3/firmware/sim012.bin
pm3 --> smart upgrade -f /usr/local/share/proxmark3/firmware/sim013.bin
<>
pm3 --> smart upgrade -f /usr/share/proxmark3/firmware/sim012.bin
pm3 --> smart upgrade -f /usr/share/proxmark3/firmware/sim013.bin
```
If you didn't install the PRoxmark but you're working from the sources directory and depending how you launch the client, your working directory might be the root of the repository:
@@ -186,7 +186,7 @@ client/proxmark3 <YOUR_PORT_HERE> --flash --image armsrc/obj/fullimage.elf
<>
./proxmark3 <YOUR_PORT_HERE> --flash --image ../armsrc/obj/fullimage.elf
pm3 --> smart upgrade -f sim012.bin
pm3 --> smart upgrade -f sim013.bin
```
etc.
@@ -61,23 +61,23 @@ or
These versions is obsolete.
If you didn't download sim012.bin from the RRG Repo be aware that it might be corrupted or faulty.
If you didn't download sim013.bin from the RRG Repo be aware that it might be corrupted or faulty.
You find a hash text file in this folder. It was generated with the following linux command.
```
sha512sum -b sim012.bin > sim012.sha512.txt
sha512sum -b sim013.bin > sim013.sha512.txt
```
You should validate the sim012.bin file against this hash file in order to be sure the file is not corrupted or faulty.
You should validate the sim013.bin file against this hash file in order to be sure the file is not corrupted or faulty.
The following command upgrades your device sim module firmware.
Don't not turn off your device during the execution of this command!!
Even its a quite fast command you should be warned. You may brick it if you interrupt it.
```
[usb] pm3 --> smart upgrade -f /usr/local/share/proxmark3/firmware/sim012.bin
[usb] pm3 --> smart upgrade -f /usr/local/share/proxmark3/firmware/sim013.bin
# or if from local repo
[usb] pm3 --> smart upgrade -f sim012.bin
[usb] pm3 --> smart upgrade -f sim013.bin
```
You get the following output if the execution was successful:
@@ -88,10 +88,10 @@ You get the following output if the execution was successful:
[!] ⚠️ A dangerous command, do wrong and you could brick the sim module
[=] -------------------------------------------------------------------
[=] firmware file sim012.bin
[=] Checking integrity sim012.sha512.txt
[+] loaded 864 bytes from binary file sim012.bin
[+] loaded 141 bytes from binary file sim012.sha512.txt
[=] firmware file sim013.bin
[=] Checking integrity sim013.sha512.txt
[+] loaded 866 bytes from binary file sim013.bin
[+] loaded 141 bytes from binary file sim013.sha512.txt
[=] Don't turn off your PM3!
[+] Sim module firmware uploading to PM3...
🕑 864 bytes sent
+1 -1
View File
@@ -64,7 +64,7 @@ The recovery / firmware files will be copied to
```
* Proxmark3 firmware: `bootrom.elf`, `fullimage.elf`, `proxmark3_recovery.bin` (used for JTAG)
* SIM firmware: `sim012.bin`, `sim012.sha512.txt`
* SIM firmware: `sim013.bin`, `sim013.sha512.txt`
## Traces
+1 -1
View File
@@ -122,7 +122,7 @@ def pm3_lf_t55xx(child):
def pm3_flash_sm(child):
try:
print("[+] Updating smart card fw")
child.sendline('smart upgrade -f sim012.bin')
child.sendline('smart upgrade -f sim013.bin')
i = child.expect('pm3 --> ')
msg = escape_ansi(str(child.before))
print("================")
+1 -1
View File
@@ -236,7 +236,7 @@ while true; do
if $TESTALL || $TESTCOMMON; then
echo -e "\n${C_BLUE}Testing common:${C_NC}"
if ! CheckFileExist "hardnested tables exists" "$RESOURCEPATH/hardnested_tables/bitflip_0_001_states.bin.bz2"; then break; fi
if ! CheckFileExist "simmodule fw file exists" "$RESOURCEPATH/sim011.bin"; then break; fi
if ! CheckFileExist "simmodule fw file exists" "$RESOURCEPATH/sim013.bin"; then break; fi
if ! CheckFileExist "iCLASS dictionary exists" "$DICPATH/iclass_default_keys.dic"; then break; fi
if ! CheckFileExist "MFC dictionary exists" "$DICPATH/mfc_default_keys.dic"; then break; fi
if ! CheckFileExist "MFDES dictionary exists" "$DICPATH/mfdes_default_keys.dic"; then break; fi
File diff suppressed because it is too large Load Diff