Closed simonemarfo closed 6 months ago
Thanks to @taichunmin and @rickNmorty2 for the implementation and the enhancement of fchk and dump commands.
fchk
dump
Add print_mem_dump(bindata, blocksize) in chameleon_util.py to display memory content
print_mem_dump(bindata, blocksize)
chameleon_util.py
Add hf mf eview to display emulation memory content
hf mf eview
[USB] chameleon --> hf mf eview -s 1 [=] ----+-------------------------------------------------+----------------- [=] blk | data | ascii [=] ----+-------------------------------------------------+----------------- [=] 1 | C7 CF 0C 03 07 08 04 00 62 63 64 65 66 67 68 69 | ........bcdefghi [=] 2 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ [=] 3 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ [=] 4 | 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF | .........i...... [=] 5 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ [=] 6 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
Add hf mf view command to display content from:
hf mf view
--dump-file (-d)
--key-file (-k)
[USB] chameleon --> hf mf view -d dump.bin Reading dump file [=] ----+-------------------------------------------------+----------------- [=] blk | data | ascii [=] ----+-------------------------------------------------+----------------- [=] 1 | C7 CF 0C 03 07 08 04 00 62 63 64 65 66 67 68 69 | ........bcdefghi [=] 2 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ [=] 3 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ [=] 4 | 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF | .........i...... [=] 5 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
[USB] chameleon --> hf mf view --1k -k recovered_keys Reading tag memory [=] ----+-------------------------------------------------+----------------- [=] blk | data | ascii [=] ----+-------------------------------------------------+----------------- [=] 1 | C7 CF 0C 03 07 08 04 00 62 63 64 65 66 67 68 69 | ........bcdefghi [=] 2 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ [=] 3 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................ [=] 4 | 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF | .........i...... [=] 5 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
You are welcome to add an entry to the CHANGELOG.md as well
Perfect!!!
Thanks to @taichunmin and @rickNmorty2 for the implementation and the enhancement of
fchk
anddump
commands.Display memory function (xxd like)
Add
print_mem_dump(bindata, blocksize)
inchameleon_util.py
to display memory contentDisplay chameleon MIFARE Classic emulation memory
Add
hf mf eview
to display emulation memory contentDisplay content from MIFARE Classic tag or dump file
Add
hf mf view
command to display content from:--dump-file (-d)
fchk
using--key-file (-k)