Skip to content

Commit 24adc08

Browse files
committed
LF config file
1 parent d56c5f8 commit 24adc08

File tree

7 files changed

+274
-166
lines changed

7 files changed

+274
-166
lines changed

config/config_official.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"//": "Based on Proxmark3 official repo v3.1.0, commit 6116334",
3+
"//": "You can change this file if the command format of client changes",
24
"mifare classic": {
35
"nested": {
46
"cmd": "hf mf nested <card type> *",
@@ -102,6 +104,7 @@
102104
"cmd": "hf mf cgetsc <sector>",
103105
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
104106
},
107+
"//": "When writing a block, if the result is not empty and doesn't contain the failed flag, the function will return true",
105108
"normal write block": {
106109
"cmd": "hf mf wrbl <block> <key type> <key> <data>",
107110
"key type": {
@@ -135,5 +138,58 @@
135138
"Magic Card set parameter": {
136139
"cmd": "hf mf csetuid <uid> <atqa> <sak>"
137140
}
141+
},
142+
"lf": {
143+
"read": {
144+
"cmd": "lf read",
145+
"show cmd": "data plot"
146+
},
147+
"sniff": {
148+
"cmd": "lf snoop",
149+
"show cmd": "data plot"
150+
},
151+
"search": {
152+
"cmd": "lf search u"
153+
},
154+
"tune": {
155+
"cmd": "hw tune l"
156+
},
157+
"get config": {
158+
"cmd": "hw status",
159+
"field start": "LF Sampling config:",
160+
"field end": "USB Speed:",
161+
"divisor": {
162+
"flag": "divisor:",
163+
"pattern": "\\d+"
164+
},
165+
"bits per sample": {
166+
"flag": "bps:",
167+
"pattern": "\\d+"
168+
},
169+
"decimation": {
170+
"flag": "decimation:",
171+
"pattern": "\\d+"
172+
},
173+
"averaging": {
174+
"flag": "averaging:",
175+
"pattern": "\\d+"
176+
},
177+
"trigger threshold": {
178+
"flag": "trigger threshold:",
179+
"pattern": "\\d+"
180+
},
181+
"samples to skip": {
182+
"flag": "samples to skip:",
183+
"pattern": "\\d+"
184+
},
185+
"//": "execute 'cmd' then find parameters between 'field stard' and 'field end'",
186+
"//": "for each line, if the line doesn't have any flag, skip",
187+
"//": "otherwise, delete characters before 'flag' and 'flag' itself, then use 'pattern' to get the parameter",
188+
"//": "If 'replace' dict exists, replace all keys with respective values before getting parameters"
189+
},
190+
"set config": {
191+
"cmd": "lf config q <divisor> b <bits per sample> d <decimation> a <averaging> t <trigger threshold> s <samples to skip>",
192+
"divisor cmd": "hw setlfdivisor <divisor>"
193+
}
138194
}
139195
}

config/config_rrgv4.13.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"//": "Based on Proxmark3 rrg repo v4.13441, commit 35ddebc",
3+
"//": "You can change this file if the command format of client changes",
24
"mifare classic": {
35
"nested": {
46
"cmd": "hf mf nested --<card type> --blk <block> -<key type> -k <key>",
@@ -102,6 +104,7 @@
102104
"cmd": "hf mf cgetsc --sec <sector>",
103105
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
104106
},
107+
"//": "When writing a block, if the result is not empty and doesn't contain the failed flag, the function will return true",
105108
"normal write block": {
106109
"cmd": "hf mf wrbl --blk <block> -<key type> -k <key> -d <data>",
107110
"key type": {
@@ -137,5 +140,64 @@
137140
"Magic Card set parameter": {
138141
"cmd": "hf mf csetuid --uid <uid> --atqa <atqa> --sak <sak>"
139142
}
143+
},
144+
"lf": {
145+
"read": {
146+
"cmd": "lf read -v",
147+
"show cmd": "data plot"
148+
},
149+
"sniff": {
150+
"cmd": "lf sniff -v",
151+
"show cmd": "data plot"
152+
},
153+
"search": {
154+
"cmd": "lf search -u"
155+
},
156+
"tune": {
157+
"cmd": "lf tune --divisor <divisor>"
158+
},
159+
"get config": {
160+
"cmd": "hw status",
161+
"field start": "LF Sampling config",
162+
"field end": "LF Sampling Stack",
163+
"divisor": {
164+
"flag": "divisor",
165+
"pattern": "\\d+"
166+
},
167+
"bits per sample": {
168+
"flag": "bits per sample",
169+
"pattern": "\\d+"
170+
},
171+
"decimation": {
172+
"flag": "decimation",
173+
"pattern": "\\d+"
174+
},
175+
"averaging": {
176+
"flag": "averaging",
177+
"pattern": "\\d+",
178+
"replace": {
179+
"yes": "1",
180+
"no": "0",
181+
"Yes": "1",
182+
"No": "0"
183+
}
184+
},
185+
"trigger threshold": {
186+
"flag": "trigger threshold",
187+
"pattern": "\\d+"
188+
},
189+
"samples to skip": {
190+
"flag": "samples to skip",
191+
"pattern": "\\d+"
192+
},
193+
"//": "execute 'cmd' then find parameters between 'field stard' and 'field end'",
194+
"//": "for each line, if the line doesn't have any flag, skip",
195+
"//": "otherwise, delete characters before 'flag' and 'flag' itself, then use 'pattern' to get the parameter",
196+
"//": "If 'replace' dict exists, replace all keys with respective values before getting parameters"
197+
},
198+
"set config": {
199+
"cmd": "lf config --divisor <divisor> --bps <bits per sample> --dec <decimation> --avg <averaging> --trig <trigger threshold> --skip <samples to skip>",
200+
"divisor cmd": "hw setlfdivisor -d <divisor>"
201+
}
140202
}
141203
}

0 commit comments

Comments
 (0)