Reputation: 25
I'm attempting to write a program to guess a block key of one of my MIFARE Classic 1K cards.
Is it feasible to to maybe run something like this?
int i = 0x0;
while (true)
{
i += 0x1;
Console.WriteLine(string.Format("0x{0:x8}", i));
}
I understand that there are impracticalities of running a simple count, but would this have any degree of success?
Upvotes: 0
Views: 28254
Reputation: 40831
There is more effective attack methods against MIFARE Classic than simple bruteforce. There is 2^48 possible MIFARE Classic keys so bruteforce would effectively take forever. A faster attack is, for instance, the offline nested attack (see here for an implementation). However, this attack only works if you know at least one key of the card. Another attack is implemented by the MIFARE Classic Universal Toolkit. This attack does not require knowledge of any of the card's keys.
Upvotes: 9