projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small fix
[proxmark3-svn]
/
client
/
scripts
/
14araw.lua
diff --git
a/client/scripts/14araw.lua
b/client/scripts/14araw.lua
index 82f30fa870f51ebbef8b39b6a80b09e568e6d73e..e253092960c2c2d92a48b45d47e6a32c450a5433 100644
(file)
--- a/
client/scripts/14araw.lua
+++ b/
client/scripts/14araw.lua
@@
-90,7
+90,7
@@
function main(args)
local no_rats = false
-- Read the parameters
local no_rats = false
-- Read the parameters
- for o, a in getopt.getopt(args, '
corcpxt3:
') do
+ for o, a in getopt.getopt(args, '
orcpx:dt3
') do
if o == "o" then doconnect = false end
if o == "r" then ignore_response = true end
if o == "c" then appendcrc = true end
if o == "o" then doconnect = false end
if o == "r" then ignore_response = true end
if o == "c" then appendcrc = true end
@@
-106,7
+106,7
@@
function main(args)
dbg("doconnect")
-- We reuse the connect functionality from a
-- common library
dbg("doconnect")
-- We reuse the connect functionality from a
-- common library
- info, err = lib14a.read1443a(true, no_rats)
+ info, err = lib14a.read144
4
3a(true, no_rats)
if err then return oops(err) end
print(("Connected to card, uid = %s"):format(info.uid))
if err then return oops(err) end
print(("Connected to card, uid = %s"):format(info.uid))
@@
-114,7
+114,7
@@
function main(args)
-- The actual raw payload, if any
if payload then
-- The actual raw payload, if any
if payload then
- res,err = sendRaw(payload,{ignore_response = ignore_response})
+ res,err = sendRaw(payload,{ignore_response = ignore_response
, topaz_mode = topaz_mode
})
if err then return oops(err) end
if not ignoreresponse then
if err then return oops(err) end
if not ignoreresponse then
@@
-148,7
+148,7
@@
function sendRaw(rawdata, options)
print(">> ", rawdata)
local flags = lib14a.ISO14A_COMMAND.ISO14A_NO_DISCONNECT + lib14a.ISO14A_COMMAND.ISO14A_RAW
print(">> ", rawdata)
local flags = lib14a.ISO14A_COMMAND.ISO14A_NO_DISCONNECT + lib14a.ISO14A_COMMAND.ISO14A_RAW
- if topaz_mode == true then flags = flags + lib14a.ISO14A_COMMAND.ISO14A_TOPAZMODE end
+ if
options.
topaz_mode == true then flags = flags + lib14a.ISO14A_COMMAND.ISO14A_TOPAZMODE end
local command = Command:new{cmd = cmds.CMD_READER_ISO_14443a,
arg1 = flags, -- Send raw
local command = Command:new{cmd = cmds.CMD_READER_ISO_14443a,
arg1 = flags, -- Send raw
Impressum
,
Datenschutz