mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-26 01:53:28 +08:00
Added a PoC script which implements a commandline
This commit is contained in:
parent
a0655c45bd
commit
1ef665776d
1 changed files with 12 additions and 0 deletions
12
client/scripts/cmdline.lua
Normal file
12
client/scripts/cmdline.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
print("This is how a cmd-line interface could be implemented\nPrint 'exit' to exit.\n")
|
||||
local answer
|
||||
repeat
|
||||
io.write("$>")
|
||||
io.flush()
|
||||
answer=io.read()
|
||||
if answer ~= 'exit' then
|
||||
local func = assert(loadstring("return " .. answer))
|
||||
io.write("\n"..tostring(func() or "").."\n");
|
||||
end--]]
|
||||
until answer=="exit"
|
||||
print("Bye\n");
|
Loading…
Reference in a new issue