Update tnp3clone.lua

Cleanup
This commit is contained in:
Iceman 2019-01-20 23:55:11 +01:00 committed by GitHub
parent 6e99b1e49b
commit 6f3940b221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,17 +141,6 @@ local function main(args)
end
core.clearCommandBuffer()
local b3 = readblock(3, keyA)
if not b3 then
print('[-] failed reading block with factorydefault key. Trying chinese magic read.')
b3, err = readmagicblock(0)
if not b3 then
oops('[!] '..err)
return oops('[!] failed reading block with chinese magic command. Quitting...')
end
end
core.clearCommandBuffer()
-- wipe card.
local cmd = (csetuid..'%s %s %s w'):format(result.uid, atqa, sak)
core.console(cmd)