瀏覽代碼

infinite wait and better starting markers for lua proxmark3 script

abe 5 年之前
父節點
當前提交
84fb5f3acf
共有 2 個文件被更改,包括 23 次插入12 次删除
  1. 9 12
      busunit-PIU/scripts/proxmark3-lf-hid-read.lua
  2. 14 0
      busunit-PIU/scripts/proxmark3.log

+ 9 - 12
busunit-PIU/scripts/proxmark3-lf-hid-read.lua

@@ -17,6 +17,11 @@
 -- along with PopuFare.  If not, see <https://www.gnu.org/licenses/>.
 --
 
+-- example usage:
+--
+-- stdbuf -eL -oL ./proxmark3 /dev/ttyACM0 -l lf-hid-read.lua | tee lf-hid-read.log
+--
+
 local cmds = require('commands')
 local getopt = require('getopt')
 local bin = require('bin')
@@ -25,23 +30,15 @@ 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) )
+  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")
+  os.execute("sleep infinity")
   
-  print( string.rep('--',30) )
-
 end
 main(args)

+ 14 - 0
busunit-PIU/scripts/proxmark3.log

@@ -0,0 +1,14 @@
+Prox/RFID mark3 RFID instrument
+bootrom: master/v3.1.0-191-g5bc3841-suspect 2020-03-26 01:43:17
+os: master/v3.1.0-191-g5bc3841-suspect 2020-03-26 01:43:31
+fpga_lf.bit built for 2s30vq100 on 2019/11/21 at 09:02:37
+fpga_hf.bit built for 2s30vq100 on 2019/11/13 at 14:52:19
+SmartCard Slot: not available
+
+uC: AT91SAM7S256 Rev C
+Embedded Processor: ARM7TDMI
+Nonvolatile Program Memory Size: 256K bytes. Used: 208937 bytes (80%). Free: 53207 bytes (20%).
+Second Nonvolatile Program Memory Size: None
+Internal SRAM Size: 64K bytes
+Architecture Identifier: AT91SAM7Sxx Series
+Nonvolatile Program Memory Type: Embedded Flash Memory