mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-14 13:44:49 +08:00
a1852eaa4b
Thanks to Debian lintian for the reports: I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 formated formatted I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 succesfully successfully I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 Skiped Skipped I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 standart standard I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 supress suppress I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 successfull successful I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 Succeded Succeeded I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 Overriden Overridden I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 aquire acquire I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 occured occurred I: proxmark3: spelling-error-in-binary usr/bin/proxmark3 delimeter delimiter
35 lines
1 KiB
Lua
35 lines
1 KiB
Lua
--[[
|
|
THIS IS WORK IN PROGREESS, very much not finished.
|
|
|
|
This library utilises other libraries under the hood, but can be used as a generic reader for 13.56MHz tags.
|
|
]]
|
|
|
|
local reader14443A = require('read14a')
|
|
local reader14443B = require('read14b')
|
|
local reader15693 = require('read15')
|
|
|
|
---
|
|
-- This method library can be set waits or a 13.56 MHz tag, and when one is found, returns info about
|
|
-- what tag it is.
|
|
--
|
|
-- @return if successful: an table containing card info
|
|
-- @return if unsuccessful : nil, error
|
|
local function waitForTag()
|
|
print("Waiting for card... press Enter to quit")
|
|
local readers = {reader14443A, reader14443B, reader15693}
|
|
local i = 0;
|
|
while not core.kbd_enter_pressed() do
|
|
i = (i % 3) +1
|
|
r = readers[i]
|
|
print("Reading with ",i)
|
|
res, err = r.read()
|
|
if res then return res end
|
|
print(err)
|
|
-- err means that there was no response from card
|
|
end
|
|
return nil, "Aborted by user"
|
|
end
|
|
|
|
return {
|
|
waitForTag = waitForTag,
|
|
}
|