Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error write dump Mifare 4k #37

Closed
GiorgioRoma opened this issue May 18, 2017 · 3 comments
Closed

Error write dump Mifare 4k #37

GiorgioRoma opened this issue May 18, 2017 · 3 comments

Comments

@GiorgioRoma
Copy link

When i used mfoc to read dump of mifare classic 4k, read all 256 block, but don't write dump.
The error is: Error, cannot write dump

@gudata
Copy link

gudata commented May 19, 2017

check free space disk :)

@GiorgioRoma
Copy link
Author

:-) no no, the disk is empty.....
I use mfoc with Kali Linux that run on Virtual box (the real os is OSX 10.12.4).
Mfoc, reads and writes correctly the 1k mifare, but does not write on the mifare 4k.
This is the code that generates the error (I think there is a problem with the dump size check):

// Finally save all keys + data to file uint16_t dump_size = (t.num_blocks + 1) * 16; if (fwrite(&mtDump, 1, dump_size, pfDump) != dump_size) { fprintf(stdout, "Error, cannot write dump\n"); fclose(pfDump); goto error; } fclose(pfDump);

(I'm trying to use mfoc directly from mac, but i have another error):

mfoc -O tes.mfd
error libnfc.driver.acr122_usb Unable to claim USB interface (Permission denied)
No NFC device found.

nfc-list
nfc-list uses libnfc 1.7.1
error libnfc.driver.acr122_usb Unable to claim USB interface (Permission denied)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:020:012
NFC device: ACS ACR122U / ACR122U214 opened
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
ATQA (SENS_RES): xx xx
UID (NFCID1): xx xx xx xx
SAK (SEL_RES): xx

@GiorgioRoma
Copy link
Author

Update:
I managed to use mfoc from mac osx, no dump writing error even with 4k mifare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants