| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- --
- -- Copyright (c) 2019 Clementine Computing LLC.
- --
- -- This file is part of PopuFare.
- --
- -- PopuFare is free software: you can redistribute it and/or modify
- -- it under the terms of the GNU Affero General Public License as published by
- -- the Free Software Foundation, either version 3 of the License, or
- -- (at your option) any later version.
- --
- -- PopuFare is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU Affero General Public License for more details.
- --
- -- You should have received a copy of the GNU Affero General Public License
- -- along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
- --
- local cmds = require('commands')
- local getopt = require('getopt')
- local bin = require('bin')
- local utils = require('utils')
- local format=string.format
- local floor=math.floor
- local os = require("os")
- function sleep (a)
- local sec = tonumber(os.clock() + a);
- while (os.clock() < sec) do
- end
- end
- local function main(args)
- print( string.rep('--',30) )
- print( string.rep('--',30) )
- -- core.console will go async when waiting for the proxmark to return
- -- so need to wait for a response (sleep)
- core.console('lf hid read')
- -- sleep(30) -- run for 30 seconds
- os.execute("sleep 30")
-
- print( string.rep('--',30) )
- end
- main(args)
|