aczid / crypto1_bs

Bitsliced Crypto-1 brute-forcer
205 stars 78 forks source link

Error while collecting nonces #8

Closed khalil00 closed 8 years ago

khalil00 commented 8 years ago

I'm getting this error using libnfc_crypto1_crack :

# ./libnfc_crypto1_crack b0b1b2b3b4b5 0 B 1 BFound tag with uid fbfed8c2, collecting nonces for key B of block 1 using known key B 0000ffffffff for block 0
Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answer transfer error, exiting..Reader-answeCollected 0 nonces... ...

I think that the problem is known key parameter is not correctly read from program args. I have tested with both ACR122U and SCL3711 readers but same result. (compiled with libnfc 1.7.1 under kali linux)

khalil00 commented 8 years ago

found the problem! replace this : known_key = strtoul(argv[1], 0, 16); by known_key = strtoull(argv[1], 0, 16);

at line 589

aczid commented 8 years ago

Cool, thanks!