]> git.zerfleddert.de Git - proxmark3-svn/blame - client/usb_cmd_h2lua.awk
Added mifarePlus.lua script for communication with Mifare Plus. (#593)
[proxmark3-svn] / client / usb_cmd_h2lua.awk
CommitLineData
fb9acd45 1BEGIN {
2 print "--[["
3 print "These are Proxmark command definitions."
4 print "This file is automatically generated from usb_cmd.h - DON'T EDIT MANUALLY."
5 print "--]]"
6 print "local __commands = {"
7}
8
9#$1 ~ /#define/ && $2 ~ /^CMD_([[:alnum:]_])+/ { print $2, "=", $3, "," }
10$1 ~ /#define/ && $2 ~ /^CMD_[A-Za-z0-9_]+/ { sub(/\r/, ""); print $2, "=", $3 "," }
11
12END {
13 print "}"
14 print "return __commands"
15}
Impressum, Datenschutz