nfc-tools / miLazyCracker

Mifare Classic Plus - Hardnested Attack Implementation for SCL3711 LibNFC USB reader
313 stars 61 forks source link

No way to add key on mfoc #26

Open rfmgob opened 3 years ago

rfmgob commented 3 years ago

Hi.

I've got quite a lot of experience using mfoc, mfcuk, etc., but I've run into some pretty basic issues using miLazyCracker. Basically, I find no way to add a key I already know to the list of default keys that miLazyCracker uses. In the plain Mfoc it would be so easy to add (mfoc -k xxxxxxxxxxxx , being xxxxxxxxxxxx the key I want to add), but on miLazyCracker how am I supposed to add previously known key?

Thanks in advance for your help.

gabrieleaquaro commented 3 years ago

Well, i was trying to do the same thing today and i found a workaround looking at the milazycracker.sh code. If you want to add some key to the default list you can create a file called "extended-std.keys" and paste the keys inside it, one per line. Then you can run the program with "-f extended-std.keys" argument. Probably it's easy to modify the script to read a file of keys with a different name, but at the moment it works only like that.