]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/scripts/tracetest.lua
CHG: minor modification to "hf mf csetblk" The usuage of UID array is not needed.
[proxmark3-svn] / client / scripts / tracetest.lua
index f17f75672814ba7ce2b45e5926d6506cfdd48377..e4a9215cb0a74bb0c877c0f636c4097a1031c721 100644 (file)
@@ -74,7 +74,7 @@ local function main(args)
        local outputTemplate = os.date("testtest_%Y-%m-%d_%H%M%S")
 
        -- Arguments for the script
-       for o, arg in getopt.getopt(args, 'hk:no:') do
+       for o, arg in getopt.getopt(args, 'ho:') do
                if o == "h" then return help() end              
                if o == "o" then outputTemplate = arg end               
        end
@@ -84,18 +84,20 @@ local function main(args)
        local files = {}
        
        -- Find a set of traces staring with EM
-       local p = io.popen(tracesEM)
+       local p = assert( io.popen(tracesEM))
        for file in p:lines() do
                table.insert(files, file)
        end
+       p.close();
        
        -- Find a set of traces staring with MOD
-       p = io.popen(tracesMOD)
+       p = assert( io.popen(tracesMOD) )
        for file in p:lines() do
                table.insert(files, file)
        end
-
-       local cmdLFSEARCH = "lf search" 
+       p.close();
+       
+       local cmdLFSEARCH = "lf search 1" 
        
        -- main loop
        io.write('Starting to test traces > ')
Impressum, Datenschutz