mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
closing files are use...
This commit is contained in:
parent
80f79b1066
commit
9a2fc52a92
1 changed files with 4 additions and 3 deletions
|
@ -140,6 +140,7 @@ local function main(args)
|
||||||
print(' '..num_dumps..' | '..files[num_dumps])
|
print(' '..num_dumps..' | '..files[num_dumps])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
p.close()
|
||||||
|
|
||||||
if num_dumps == 0 then return oops("Didn't find any dump files") end
|
if num_dumps == 0 then return oops("Didn't find any dump files") end
|
||||||
|
|
||||||
|
@ -151,13 +152,13 @@ local function main(args)
|
||||||
io.write(' --> ')
|
io.write(' --> ')
|
||||||
|
|
||||||
local no = tonumber(io.read())
|
local no = tonumber(io.read())
|
||||||
local dump = assert(io.open('./hf-mf-' .. files[no] .. '-dump.eml', 'r'))
|
|
||||||
|
|
||||||
print(tab)
|
print(tab)
|
||||||
print(' You have been selected card dump ' .. no .. ', with UID : '..files[no])
|
print(' You have been selected card dump ' .. no .. ', with UID : '..files[no])
|
||||||
|
|
||||||
--- Load eml file
|
--- Load eml file
|
||||||
for _ in dump:lines() do table.insert(eml, _); end
|
local dumpfile = assert(io.open('./hf-mf-' .. files[no] .. '-dump.eml', 'r'))
|
||||||
|
for _ in dumpfile:lines() do table.insert(eml, _); end
|
||||||
|
dumpfile.close()
|
||||||
|
|
||||||
--- Extract B key from EML file
|
--- Extract B key from EML file
|
||||||
local b = 0
|
local b = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue