Skip to content

Commit

Permalink
fix: Mfkey corrupting user dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
Slipn3r committed Sep 25, 2023
1 parent c1c6091 commit 8008481
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/pages/NfcTools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ export default defineComponent({
this.mfkeyStatus = `Attacking nonce ${i + 1} of ${nonces.length}`
try {
const key = await this.mfkey(args)
keys.add(key)
if (!key.startsWith('Error')) {
keys.add(key)
}
this.$emit('log', {
level: 'debug',
message: `${this.componentName}: cracked nonce: ${args}, key: ${key}`
Expand Down Expand Up @@ -205,6 +207,7 @@ export default defineComponent({
}
}
dictionary = dictionary.filter(e => e !== 'Error: mfkey run killed on timeout')
dictionary = new Set(dictionary)
const dictLength = Array.from(dictionary).length
for (const key of keys) {
Expand Down

0 comments on commit 8008481

Please sign in to comment.