mirror of
				https://github.com/RfidResearchGroup/proxmark3.git
				synced 2025-10-31 08:26:15 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			433 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			433 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| --[[
 | |
| A sampe script file on how to implement at cmd line inteface.
 | |
| --]]
 | |
| 
 | |
| 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");
 |