mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
chg: 'script run mfkeys' - use fast push mode.
This commit is contained in:
parent
7ee6125ef6
commit
937d839c6a
1 changed files with 13 additions and 7 deletions
|
@ -206,6 +206,10 @@ local function perform_check(numsectors)
|
||||||
keys[i] = {0,0,'',''}
|
keys[i] = {0,0,'',''}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
core.fast_push_mode(true)
|
||||||
|
|
||||||
|
local start_time = os.time()
|
||||||
|
|
||||||
for sector = 0, #keys do
|
for sector = 0, #keys do
|
||||||
-- Check if user aborted
|
-- Check if user aborted
|
||||||
if core.ukbhit() then
|
if core.ukbhit() then
|
||||||
|
@ -228,6 +232,12 @@ local function perform_check(numsectors)
|
||||||
keys[sector] = {succA, succB, keyA, keyB}
|
keys[sector] = {succA, succB, keyA, keyB}
|
||||||
end
|
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)
|
display_results(keys)
|
||||||
|
|
||||||
-- save to dumpkeys.bin
|
-- save to dumpkeys.bin
|
||||||
|
@ -262,7 +272,6 @@ end
|
||||||
-- The main entry point
|
-- The main entry point
|
||||||
local function main(args)
|
local function main(args)
|
||||||
|
|
||||||
local start_time = os.time()
|
|
||||||
local numSectors = 16
|
local numSectors = 16
|
||||||
|
|
||||||
-- Arguments for the script
|
-- Arguments for the script
|
||||||
|
@ -278,9 +287,6 @@ local function main(args)
|
||||||
numsectors = taginfo(tag)
|
numsectors = taginfo(tag)
|
||||||
|
|
||||||
perform_check(numsectors)
|
perform_check(numsectors)
|
||||||
|
|
||||||
local end_time = os.time()
|
|
||||||
print('mfkeys - Total execution time: '..os.difftime(end_time, start_time)..' sec')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
main( args)
|
main( args)
|
||||||
|
|
Loading…
Reference in a new issue