Last active
August 1, 2019 09:19
-
-
Save doegox/c35925b14c7b8dc4baf42d61d9c71f1b to your computer and use it in GitHub Desktop.
Testing script for Proxmark3 RDV4 external flash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for ((i=0; i<100; i++)); do | |
| echo -e "\n\nIteration $i" | |
| rm -f test_flash_in.bin test_flash_out.bin | |
| dd if=/dev/urandom of=test_flash_in.bin bs=65536 count=3 | |
| ./proxmark3.sh -c " | |
| mem wipe p 0; | |
| mem wipe p 1; | |
| mem wipe p 2; | |
| mem load f test_flash_in o 0; | |
| mem dump f test_flash_out o 0 l 196608" | |
| rm test_flash_out.eml | |
| HASH1=$(cat test_flash_in.bin|sha1sum) | |
| HASH2=$(cat test_flash_out.bin|sha1sum) | |
| if [ "$HASH1" != "$HASH2" ]; then | |
| echo FAIL | |
| exit 1 | |
| fi | |
| rm -f test_flash_in.bin test_flash_out.bin | |
| done | |
| echo SUCCESS |
Author
Author
updated with msleep command
Author
removed msleep as now BUSY_TIMEOUT was increased
you can remove that sleep command you added ;)
Look at those semi colons... mm mm mm
Author
you can remove that sleep command you added ;)
already done tonight, sir...
mem save no longer works, replaced it with mem dump : )
Author
my bad, fixed, thanks @luminouw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @iceman1001 as said in RfidResearchGroup/proxmark3#244 we've still the issue that we should add some delay after erase and write operations, still need to figure how much...
So the easy trick was to call
mem wipein several calls to the client.I'll add a
msleepcommand in the client commands, it'll ease scripts.