iceman1001 / proxmark3

[Deprecated] Iceman Fork, the most totally wicked fork around if you are into proxmark3
http://www.icedev.se/pm3.aspx
GNU General Public License v2.0
464 stars 116 forks source link

Lua hard script #98

Closed MaBi6411 closed 7 years ago

MaBi6411 commented 7 years ago

I can't use lua hard script. It hasn't responses for every block: https://pastebin.com/Fr1gasZ7. But when I use single command (hardnested) it works well: https://pastebin.com/qjjceq06. Which is the problem?

iceman1001 commented 7 years ago

Great question. I also noticed this when I created the script. Thought it was related to memleaks when running the cmd several Times in a row

On 7 Apr 2017, at 15:05, MaBi6411 notifications@github.com wrote:

I can't use lua hard script. It hasn't responses for every block: https://pastebin.com/Fr1gasZ7. But when I use single command (hardnested) it works well: https://pastebin.com/qjjceq06. Which is the problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

MaBi6411 commented 7 years ago

Oh yes. It happens with core.hardnested function... I have tried to edit script using string command with core.console (local cmdHardNested = "hf mf hardnested 0 A "..key.." "..tostring(trgblockno).." A") and loop "works" without reporting values in final table.

Why does hardnested command seem to ignore key arguments? pm3 --> hf mf hardnested 0 A a0a1a2a3a4a5 4 A --target block no: 4, target key type:A, known target key: 0x000000000000 (not set), file action: none, Slow: No, Tests: 0

iceman1001 commented 7 years ago

Indeed. I needed to implement the core.hardnested to get the found key. The loop with core.console will work.

The key is in the details, the output refers to a targetkey when you know it. Not the key used to run hardnested. Try calling hardnested with that option and you will see the output matches.

On 8 Apr 2017, at 09:03, MaBi6411 notifications@github.com wrote:

Oh yes. It happens with core.hardnested function... I have tried to edit script using string command with core.console (local cmdHardNested = "hf mf hardnested 0 A "..key.." "..tostring(trgblockno).." A") and loop "works" without reporting values in final table.

Why does hardnested command seem to ignore key arguments? pm3 --> hf mf hardnested 0 A a0a1a2a3a4a5 4 A --target block no: 4, target key type:A, known target key: 0x000000000000 (not set), file action: none, Slow: No, Tests: 0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

iceman1001 commented 7 years ago

I'll have a look at it in a week or two. I'm out of office.

MaBi6411 commented 7 years ago

iceman, there's no rush. I can only say thank you

iceman1001 commented 7 years ago

This version of the script is outdated, since @piwi released an improved version of the hardnested attack implementation.