mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-19 11:33:51 +08:00
fix: 'script run mifare_autopwn.lua' - wrong bool comparision
This commit is contained in:
parent
c808eb0e87
commit
fb4b3502ef
1 changed files with 4 additions and 6 deletions
|
@ -110,15 +110,13 @@ end
|
|||
--
|
||||
-- performs a test if tag nonce uses weak or hardend prng
|
||||
local function perform_prng_test()
|
||||
|
||||
local isweak = core.detect_prng()
|
||||
if isweak == 1 then
|
||||
if isweak then
|
||||
dbg('PRNG detection : WEAK nonce detected')
|
||||
return true
|
||||
else
|
||||
dbg('PRNG detection : HARDEND nonce detected')
|
||||
end
|
||||
|
||||
dbg('PRNG detection : HARDEND nonce detected')
|
||||
return false
|
||||
return isweak
|
||||
end
|
||||
---
|
||||
-- The main entry point
|
||||
|
|
Loading…
Add table
Reference in a new issue