mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
added legic view command, and converted OLD -> NG comms
This commit is contained in:
parent
12695a984a
commit
63bc9b5eb2
7 changed files with 262 additions and 92 deletions
|
@ -170,14 +170,9 @@ end
|
|||
-- read LEGIC data
|
||||
local function readlegicdata(offset, length, iv)
|
||||
-- Read data
|
||||
local command = Command:newMIX{
|
||||
cmd = cmds.CMD_HF_LEGIC_READER
|
||||
, arg1 = offset
|
||||
, arg2 = length
|
||||
, arg3 = iv
|
||||
, data = nil
|
||||
}
|
||||
local result, err = command:sendMIX()
|
||||
local d0 = ('%04X%04X%02X'):format(offset, len, iv)
|
||||
local c = Command:newNG{cmd = cmds.CMD_HF_LEGIC_READER, data = d0}
|
||||
local result, err = c:sendNG()
|
||||
if not result then return oops(err) end
|
||||
-- result is a packed data structure, data starts at offset 33
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue