chg: 'script run mfkeys' - use fast push mode.

This commit is contained in:
iceman1001 2019-04-30 13:27:19 +02:00
parent 7ee6125ef6
commit 937d839c6a

View file

@ -206,6 +206,10 @@ local function perform_check(numsectors)
keys[i] = {0,0,'',''}
end
core.fast_push_mode(true)
local start_time = os.time()
for sector = 0, #keys do
-- Check if user aborted
if core.ukbhit() then
@ -228,6 +232,12 @@ local function perform_check(numsectors)
keys[sector] = {succA, succB, keyA, keyB}
end
local end_time = os.time()
print('')
print('[+] mfkeys - Checkkey execution time: '..os.difftime(end_time, start_time)..' sec')
core.fast_push_mode(false)
display_results(keys)
-- save to dumpkeys.bin
@ -262,7 +272,6 @@ end
-- The main entry point
local function main(args)
local start_time = os.time()
local numSectors = 16
-- Arguments for the script
@ -278,9 +287,6 @@ local function main(args)
numsectors = taginfo(tag)
perform_check(numsectors)
local end_time = os.time()
print('mfkeys - Total execution time: '..os.difftime(end_time, start_time)..' sec')
end
main( args)