flipperzero-firmware icon indicating copy to clipboard operation
flipperzero-firmware copied to clipboard

NFC: improve dict attack by trying the last successful key before starting over on next sector

Open u1735067 opened this issue 2 years ago • 4 comments

Describe the enhancement you're suggesting.

Some NFC sectors may share the same NFC key, so in order to reduce dictionary attack time, a simple optimization may be to try the last successful key before starting the full dictionary attack. If it's not the same key, you lose 1 attempt delay, but if it's the same key, you gain position in the list attempts delay.

Another optimization would be to try all previously successful keys for this tag, not just the last one.

Anything else?

No response

u1735067 avatar Aug 04 '22 00:08 u1735067

Please check latest firmware and reopen issue if it persists.

skotopes avatar Sep 06 '22 17:09 skotopes

Can you reopen? It's not implemented, tested with a tag having the same sector key, each sector is going through the full dictionary instead of reusing the previous found key(s) as suggested: g68SJ4B8WUPkeMH.webm

u1735067 avatar Sep 06 '22 21:09 u1735067

Sure. @gornekich Can you take a look?

skotopes avatar Sep 07 '22 01:09 skotopes

We have PR #1488 from community, it is stil WIP. I think I will do it myself, if it is not ready in a few days

gornekich avatar Sep 07 '22 13:09 gornekich

@gornekich , do you know if this PR is still going ?

shelld0n avatar Sep 19 '22 14:09 shelld0n

We are working on it in our team.

gornekich avatar Sep 19 '22 14:09 gornekich

In a different branch

gornekich avatar Sep 19 '22 14:09 gornekich

I believe this issue is fixed by #1822, no ?

EDIT: fix the PR number.

AkechiShiro avatar Oct 18 '22 05:10 AkechiShiro

Seems to be working for me, thank you :)

u1735067 avatar Oct 22 '22 14:10 u1735067