mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-07 15:17:30 -07:00
allowing for more keys
This commit is contained in:
parent
e86eaf105f
commit
d3b6fc6b5a
1 changed files with 14 additions and 1 deletions
|
@ -231,13 +231,26 @@ local function main(args)
|
||||||
print(acblue.."UID: "..tag.uid..acoff)
|
print(acblue.."UID: "..tag.uid..acoff)
|
||||||
print(acblue..string.format("XTEA key: %08X %08X %08X %08X", xteakey[0], xteakey[1], xteakey[2], xteakey[3])..acoff)
|
print(acblue..string.format("XTEA key: %08X %08X %08X %08X", xteakey[0], xteakey[1], xteakey[2], xteakey[3])..acoff)
|
||||||
|
|
||||||
edata, cdata = readtag("415A54454B4D", xteakey)
|
local keys = {
|
||||||
|
"415A54454B4D",
|
||||||
|
"4B6A43059B64",
|
||||||
|
"C8BE6250C9C5",
|
||||||
|
}
|
||||||
|
|
||||||
|
for i, key in ipairs(keys) do
|
||||||
|
edata, cdata = readtag(key, xteakey)
|
||||||
|
if edata and cdata then
|
||||||
|
goto continue
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if edata == nil or cdata == nil then
|
if edata == nil or cdata == nil then
|
||||||
print("ERROR Reading tag!")
|
print("ERROR Reading tag!")
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
::continue::
|
||||||
|
|
||||||
print("Ciphered data:")
|
print("Ciphered data:")
|
||||||
for key,value in ipairs(edata) do
|
for key,value in ipairs(edata) do
|
||||||
print(value)
|
print(value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue