mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix hf mf csetuid --gdm
This commit is contained in:
parent
766a91d865
commit
97953d1ef3
1 changed files with 1 additions and 1 deletions
|
@ -1144,7 +1144,7 @@ int mf_chinese_set_uid(uint8_t *uid, uint8_t uidlen, const uint8_t *atqa, const
|
||||||
|
|
||||||
res = mf_chinese_set_block(0, block0, NULL, params);
|
res = mf_chinese_set_block(0, block0, NULL, params);
|
||||||
if (res == PM3_SUCCESS) {
|
if (res == PM3_SUCCESS) {
|
||||||
params = MAGIC_SINGLE | MAGIC_WUPC;
|
params = MAGIC_SINGLE | (gdm ? MAGIC_GDM_ALT_WUPC : MAGIC_WUPC);
|
||||||
memset(block0, 0, sizeof(block0));
|
memset(block0, 0, sizeof(block0));
|
||||||
res = mf_chinese_get_block(0, block0, params);
|
res = mf_chinese_get_block(0, block0, params);
|
||||||
if (res == 0) {
|
if (res == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue