RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.89k stars 1.03k forks source link

Hitag eload segmentation fault #1325

Closed mekhalleh closed 3 years ago

mekhalleh commented 3 years ago

Describe the bug The command: lf hitag eload -f filename.bin produce a segmentation fault

To Reproduce The binary dump used: image

The JSON format is:

{
    "Created": "proxmark3",
    "FileType": "hitag",
    "Card": {
      "UID": "12345678"
    },
    "blocks": {
      "0": "12345678",
      "1": "4D494B52",
      "2": "20F04F4E",
      "3": "06AA4854",
      "4": "575F4F4B",
      "5": "55555555",
      "6": "AAAAAAAA",
      "7": "55555555",
      "8": "00000000",
      "9": "00000000",
      "10": "00000000",
      "11": "00000000"
    }
}

Steps to reproduce the behavior:

  1. Go to pm3
  2. Load dump lf hitag eload -2 -f /home/mekhalleh/Desktop/hitag2/lf-hitag-12345678-dump.bin

image

This crash is on the memcpy call, then, I have tested to modify by the following code.

image

image

However, the command lf hitag sim -2 does not reflect the dump now.

image

Any suggestion?

Desktop (please complete the following information):

(*) Q factor must be measured without tag on the antenna

[+] Displaying LF tuning graph. Divisor 88 (blue) is 134.83 kHz, 95 (red) is 125.00 kHz.

iceman1001 commented 3 years ago

lf hitag eload isn't really implemented yet. The lf hitag * commands need much more love.

iceman1001 commented 3 years ago

I pushed a fix for the crash, but lf hitag simulation doesn't work regardless. There are quite a number of open issues in terms of hitag commands.