projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ADD: `hf 14a read` - now can detect the newer magic generation 1b. In output 1A...
[proxmark3-svn]
/
client
/
scripts
/
mifare_autopwn.lua
diff --git
a/client/scripts/mifare_autopwn.lua
b/client/scripts/mifare_autopwn.lua
index f7edfd08d90bbf3ad2071cc56466455b8a32cfe9..eb93669c7cef8cbf55f65e6d2e0a78d4953c3cdf 100644
(file)
--- a/
client/scripts/mifare_autopwn.lua
+++ b/
client/scripts/mifare_autopwn.lua
@@
-4,8
+4,6
@@
local cmds = require('commands')
example = "script run mifare_autopwn"
author = "Martin Holst Swende"
example = "script run mifare_autopwn"
author = "Martin Holst Swende"
-
-
desc =
[[
This is a which automates cracking and dumping mifare classic cards. It sets itself into
desc =
[[
This is a which automates cracking and dumping mifare classic cards. It sets itself into
@@
-28,6
+26,8
@@
Output files from this operation:
-- Some utilities
-------------------------------
local DEBUG = false
-- Some utilities
-------------------------------
local DEBUG = false
+local MIFARE_AUTH_KEYA = 0x60
+local MIFARE_AUTH_KEYB = 0x61
---
-- A debug printout-function
function dbg(args)
---
-- A debug printout-function
function dbg(args)
@@
-66,7
+66,7
@@
end
function mfcrack()
core.clearCommandBuffer()
-- Build the mifare-command
function mfcrack()
core.clearCommandBuffer()
-- Build the mifare-command
- local cmd = Command:new{cmd = cmds.CMD_READER_MIFARE, arg1 = 1, arg2 = 0}
+ local cmd = Command:new{cmd = cmds.CMD_READER_MIFARE, arg1 = 1, arg2 = 0
, arg3 = MIFARE_AUTH_KEYA
}
local retry = true
while retry do
local retry = true
while retry do
@@
-78,7
+78,7
@@
function mfcrack()
if errormessage then return nil, errormessage end
-- Try again..set arg1 to 0 this time.
if errormessage then return nil, errormessage end
-- Try again..set arg1 to 0 this time.
- cmd = Command:new{cmd = cmds.CMD_READER_MIFARE, arg1 = 0, arg2 = 0}
+ cmd = Command:new{cmd = cmds.CMD_READER_MIFARE, arg1 = 0, arg2 = 0
, arg3 = MIFARE_AUTH_KEYA
}
end
return nil, "Aborted by user"
end
end
return nil, "Aborted by user"
end
Impressum
,
Datenschutz