mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 17:56:53 +08:00
fixes to ndef
This commit is contained in:
parent
f4b75d7f5b
commit
ea7ad8cbc6
1 changed files with 3 additions and 3 deletions
|
@ -92,7 +92,7 @@ end
|
||||||
local function getBlock(blockno)
|
local function getBlock(blockno)
|
||||||
local block, err
|
local block, err
|
||||||
local c = Command:newMIX{cmd = cmds.CMD_MIFAREU_READBL, arg1 = blockno, data = 0}
|
local c = Command:newMIX{cmd = cmds.CMD_MIFAREU_READBL, arg1 = blockno, data = 0}
|
||||||
block, err = getblockdata(c:scr(false))
|
block, err = getblockdata(c:sendMIX(false))
|
||||||
if not block then return oops(err) end
|
if not block then return oops(err) end
|
||||||
|
|
||||||
if #block < 32 then
|
if #block < 32 then
|
||||||
|
@ -191,8 +191,8 @@ local function main( args)
|
||||||
print('Manufacturer', info.manufacturer)
|
print('Manufacturer', info.manufacturer)
|
||||||
print('Type ', info.name)
|
print('Type ', info.name)
|
||||||
|
|
||||||
|
local ndefdata = table.concat(blockData, '', 5)
|
||||||
core.ndefparse( t5tarea, true, blockData);
|
core.ndefparse(t5tarea, 1, ndefdata)
|
||||||
|
|
||||||
for k,v in ipairs(blockData) do
|
for k,v in ipairs(blockData) do
|
||||||
print(string.format('Block %02x: %02x %02x %02x %02x', k-1, string.byte(v, 1,4)))
|
print(string.format('Block %02x: %02x %02x %02x %02x', k-1, string.byte(v, 1,4)))
|
||||||
|
|
Loading…
Reference in a new issue