mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
em tearoff: fix initial read val
This commit is contained in:
parent
863eaf1c8f
commit
755a6cab49
1 changed files with 7 additions and 2 deletions
|
@ -104,7 +104,12 @@ local function main(args)
|
||||||
if err15 then
|
if err15 then
|
||||||
return oops(err15)
|
return oops(err15)
|
||||||
end
|
end
|
||||||
local rd_value = ('%08X'):format(bit.bor(word14,word15))
|
local bit15 = bit.band(0x00008000, word15)
|
||||||
|
if bit15 == 0x00008000 then
|
||||||
|
rd_value = ('%08X'):format(word15)
|
||||||
|
else
|
||||||
|
rd_value = ('%08X'):format(word14)
|
||||||
|
end
|
||||||
local wr_value = '00000000'
|
local wr_value = '00000000'
|
||||||
n = n or 2
|
n = n or 2
|
||||||
sd = sd or 2000
|
sd = sd or 2000
|
||||||
|
@ -187,7 +192,7 @@ local function main(args)
|
||||||
print(('[!] '..ansicolors.red..'TEAR OFF bitflip: '..ansicolors.reset..' 14: %08X 15: %08X'):format(word14, word15))
|
print(('[!] '..ansicolors.red..'TEAR OFF bitflip: '..ansicolors.reset..' 14: %08X 15: %08X'):format(word14, word15))
|
||||||
|
|
||||||
|
|
||||||
local bit15 = bit.band(0x00008000, word15)
|
bit15 = bit.band(0x00008000, word15)
|
||||||
if bit15 == 0x00008000 then
|
if bit15 == 0x00008000 then
|
||||||
return exit_msg()
|
return exit_msg()
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue