Merge pull request #2715 from nvx/fix_uscuid_csetuid
fix hf mf csetuid --gdm
This commit is contained in:
1 file changed
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user