proxmark3 icon indicating copy to clipboard operation
proxmark3 copied to clipboard

Last bit omitted in rawdemod

Open ViRb3 opened this issue 6 years ago • 7 comments
trafficstars

Following @doegox's commands for manually reading a hitag2 UID:

lf cmdread d 50 z 166 o 116 c 000111
data ltrim 200
data norm
data rawdemod am
data printdemodbuffer o 5 x

Using the hitag2 module:

lf hitag read 26
// or
lf hitag info
// or
if hitag read 21 ... (makes dump)

Will result in the same UID, however, the last bit is 0 using the manual read, while it is a 1 using the hitag2 module. I tested this on two different cards, however, I cannot verify which one is the true UID. I suspect the rawdemod is at fault since the hitag2 module data has worked for me so far.

Potentially related:

  • f1a0e57f65fc4715af15c7757d8a26b5df2ebcd
  • https://github.com/RfidResearchGroup/proxmark3/issues/124#issuecomment-472800131

ViRb3 avatar Jul 11 '19 09:07 ViRb3

Good catch, you're right. I tried on a car key to get another ID and by chance its last bit is a 1. My manual steps return an ID=xxxx4D6A but another reader (ACG-LF) returns xxxx4D6B. Here we see the Manchester decoder stopped before the last weaker "1"(HL) bit: Screenshot from 2019-07-11 17-50-46 (note that lf hitag read 26 could not see my key)

doegox avatar Jul 11 '19 16:07 doegox

there are most certain same issues with NR demod ..

iceman1001 avatar Jul 12 '19 08:07 iceman1001

@ViRb3 Some news?

iceman1001 avatar Oct 08 '19 12:10 iceman1001

I'm afraid I'm not competent enough to fix this, at least not without some research that I can't do right now. I was hoping @doegox has a better clue at what's wrong

ViRb3 avatar Oct 08 '19 14:10 ViRb3

😙

doegox avatar Oct 08 '19 17:10 doegox

@doegox what is your output from car key and hitag today?

iceman1001 avatar Sep 10 '20 10:09 iceman1001

Manual decoding gets still last bit wrong, but lf hitag reader works fine

[usb] pm3 --> lf cmdread d 50 z 166 o 116 c 000111
[+] Sending command...
[#] Done, saved 42216 out of 0 seen samples at 8 bits/sample

[+] downloading response signal data
[usb] pm3 --> data ltrim 200
[usb] pm3 --> data norm
[usb] pm3 --> data rawdemod am
11111011100110111101001001101011
0101.0
[usb] pm3 --> data printdemodbuffer o 5 x
[+] DemodBuffer: xxxx4D6A[3]

[usb] pm3 --> lf hitag read 26
[+]  UID: xxxx4d6b

doegox avatar Sep 16 '20 23:09 doegox