fix: 'script run mifare_autopwn.lua' - wrong bool comparision
This commit is contained in:
@@ -110,15 +110,13 @@ end
|
|||||||
--
|
--
|
||||||
-- performs a test if tag nonce uses weak or hardend prng
|
-- performs a test if tag nonce uses weak or hardend prng
|
||||||
local function perform_prng_test()
|
local function perform_prng_test()
|
||||||
|
|
||||||
local isweak = core.detect_prng()
|
local isweak = core.detect_prng()
|
||||||
if isweak == 1 then
|
if isweak then
|
||||||
dbg('PRNG detection : WEAK nonce detected')
|
dbg('PRNG detection : WEAK nonce detected')
|
||||||
return true
|
else
|
||||||
|
dbg('PRNG detection : HARDEND nonce detected')
|
||||||
end
|
end
|
||||||
|
return isweak
|
||||||
dbg('PRNG detection : HARDEND nonce detected')
|
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
---
|
---
|
||||||
-- The main entry point
|
-- The main entry point
|
||||||
|
|||||||
Reference in New Issue
Block a user