]> git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdhf15.c
ADD: added a lot of ic ids to cmdhf15.c Thanks to Asper for the list.
[proxmark3-svn] / client / cmdhf15.c
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3 // Modified 2010-2012 by <adrian -at- atrox.at>
4 // Modified 2012 by <vsza at vsza.hu>
5 //
6 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
7 // at your option, any later version. See the LICENSE.txt file for the text of
8 // the license.
9 //-----------------------------------------------------------------------------
10 // High frequency ISO15693 commands
11 //-----------------------------------------------------------------------------
12 // There are three basic operation modes, depending on which device (proxmark/pc)
13 // the signal processing, (de)modulation, transmission protocol and logic is done.
14 // Mode 1:
15 // All steps are done on the proxmark, the output of the commands is returned via
16 // USB-debug-print commands.
17 // Mode 2:
18 // The protocol is done on the PC, passing only Iso15693 data frames via USB. This
19 // allows direct communication with a tag on command level
20 // Mode 3:
21 // The proxmark just samples the antenna and passes this "analog" data via USB to
22 // the client. Signal Processing & decoding is done on the pc. This is the slowest
23 // variant, but offers the possibility to analyze the waveforms directly.
24
25 #include <stdio.h>
26 #include <stdlib.h>
27 #include <string.h>
28 #include <stdint.h>
29
30 #include "proxmark3.h"
31 #include "data.h"
32 #include "graph.h"
33 #include "ui.h"
34 #include "cmdparser.h"
35 #include "cmdhf15.h"
36 #include "../common/iso15693tools.h"
37 #include "cmdmain.h"
38
39 #define FrameSOF Iso15693FrameSOF
40 #define Logic0 Iso15693Logic0
41 #define Logic1 Iso15693Logic1
42 #define FrameEOF Iso15693FrameEOF
43
44 #define Crc(data,datalen) Iso15693Crc(data,datalen)
45 #define AddCrc(data,datalen) Iso15693AddCrc(data,datalen)
46 #define sprintUID(target,uid) Iso15693sprintUID(target,uid)
47 #define TRACE_BUFF_SIZE 12000
48
49 // structure and database for uid -> tagtype lookups
50 typedef struct {
51 uint64_t uid;
52 int mask; // how many MSB bits used
53 char* desc;
54 } productName;
55
56
57 const productName uidmapping[] = {
58
59 // UID, #significant Bits, "Vendor(+Product)"
60 { 0xE001000000000000LL, 16, "Motorola UK" },
61
62 // E0 02 xx
63 // 02 = ST Microelectronics
64 // XX = IC id (Chip ID Family)
65 { 0xE002000000000000LL, 16, "ST Microelectronics SA France" },
66 { 0xE002050000000000LL, 24, "ST Microelectronics; LRI64 [IC id = 05]"},
67 { 0xE002080000000000LL, 24, "ST Microelectronics; LRI2K [IC id = 08]"},
68 { 0xE0020A0000000000LL, 24, "ST Microelectronics; LRIS2K [IC id = 10]"},
69 { 0xE002440000000000LL, 24, "ST Microelectronics; LRIS64K [IC id = 68]"},
70
71 { 0xE003000000000000LL, 16, "Hitachi, Ltd Japan" },
72
73 // E0 04 xx
74 // 04 = Manufacturer code (Philips/NXP)
75 // XX = IC id (Chip ID Family)
76 //I-Code SLI SL2 ICS20 [IC id = 01]
77 //I-Code SLI-S [IC id = 02]
78 //I-Code SLI-L [IC id = 03]
79 //I-Code SLIX [IC id = 01 + bit36 set to 1 (starting from bit0 - different from normal SLI)]
80 //I-Code SLIX-S [IC id = 02 + bit36 set to 1]
81 //I-Code SLIX-L [IC id = 03 + bit36 set to 1]
82 { 0xE004000000000000LL, 16, "NXP Semiconductors Germany (Philips)" },
83 { 0xE004010000000000LL, 24, "NXP(Philips); IC SL2 ICS20/ICS21(SLI) ICS2002/ICS2102(SLIX)" },
84 { 0xE004020000000000LL, 24, "NXP(Philips); IC SL2 ICS53/ICS54(SLI-S) ICS5302/ICS5402(SLIX-S)" },
85 { 0xE004030000000000LL, 24, "NXP(Philips); IC SL2 ICS50/ICS51(SLI-L) ICS5002/ICS5102(SLIX-L)" },
86
87 // E0 05 XX .. .. ..
88 // 05 = Manufacturer code (Infineon)
89 // XX = IC id (Chip ID Family)
90 { 0xE005000000000000LL, 16, "Infineon Technologies AG Germany" },
91 { 0xE005A10000000000LL, 24, "Infineon; SRF55V01P [IC id = 161] plain mode 1kBit"},
92 { 0xE005A80000000000LL, 24, "Infineon; SRF55V01P [IC id = 168] pilot series 1kBit"},
93 { 0xE005400000000000LL, 24, "Infineon; SRF55V02P [IC id = 64] plain mode 2kBit"},
94 { 0xE005000000000000LL, 24, "Infineon; SRF55V10P [IC id = 00] plain mode 10KBit"},
95 { 0xE005500000000000LL, 24, "Infineon; SRF55V02S [IC id = 80] secure mode 2kBit"},
96 { 0xE005100000000000LL, 24, "Infineon; SRF55V10S [IC id = 16] secure mode 10KBit"},
97 { 0xE0051E0000000000LL, 23, "Infineon; SLE66r01P [IC id = 3x = My-d Move or My-d move NFC]"},
98 { 0xE005200000000000LL, 21, "Infineon; SLE66r01P [IC id = 3x = My-d Move or My-d move NFC]"},
99
100 { 0xE006000000000000LL, 16, "Cylink USA" },
101
102
103 // E0 07 xx
104 // 07 = Texas Instruments
105 // XX = from bit 41 to bit 43 = product configuration - from bit 44 to bit 47 IC id (Chip ID Family)
106 //Tag IT RFIDType-I Plus, 2kBit, TI Inlay
107 //Tag-it HF-I Plus Inlay [IC id = 00] -> b'0000 000 2kBit
108 //Tag-it HF-I Plus Chip [IC id = 64] -> b'1000 000 2kBit
109 //Tag-it HF-I Standard Chip / Inlays [IC id = 96] -> b'1100 000 256Bit
110 //Tag-it HF-I Pro Chip / Inlays [IC id = 98] -> b'1100 010 256Bit, Password protection
111 { 0xE007000000000000LL, 16, "Texas Instrument France" },
112 { 0xE007000000000000LL, 20, "Texas Instrument; Tag-it HF-I Plus Inlay; 64x32bit" },
113 { 0xE007100000000000LL, 20, "Texas Instrument; Tag-it HF-I Plus Chip; 64x32bit" },
114 { 0xE007800000000000LL, 23, "Texas Instrument; Tag-it HF-I Plus (RF-HDT-DVBB tag or Third Party Products)" },
115 { 0xE007C00000000000LL, 23, "Texas Instrument; Tag-it HF-I Standard; 8x32bit" },
116 { 0xE007C40000000000LL, 23, "Texas Instrument; Tag-it HF-I Pro; 8x23bit; password" },
117
118 { 0xE008000000000000LL, 16, "Fujitsu Limited Japan" },
119 { 0xE009000000000000LL, 16, "Matsushita Electronics Corporation, Semiconductor Company Japan" },
120 { 0xE00A000000000000LL, 16, "NEC Japan" },
121 { 0xE00B000000000000LL, 16, "Oki Electric Industry Co. Ltd Japan" },
122 { 0xE00C000000000000LL, 16, "Toshiba Corp. Japan" },
123 { 0xE00D000000000000LL, 16, "Mitsubishi Electric Corp. Japan" },
124 { 0xE00E000000000000LL, 16, "Samsung Electronics Co. Ltd Korea" },
125 { 0xE00F000000000000LL, 16, "Hynix / Hyundai, Korea" },
126 { 0xE010000000000000LL, 16, "LG-Semiconductors Co. Ltd Korea" },
127 { 0xE011000000000000LL, 16, "Emosyn-EM Microelectronics USA" },
128
129 { 0xE012000000000000LL, 16, "HID Corporation" },
130 { 0xE012000000000000LL, 16, "INSIDE Technology France" },
131 { 0xE013000000000000LL, 16, "ORGA Kartensysteme GmbH Germany" },
132 { 0xE014000000000000LL, 16, "SHARP Corporation Japan" },
133 { 0xE015000000000000LL, 16, "ATMEL France" },
134
135 { 0xE016000000000000LL, 16, "EM Microelectronic-Marin SA Switzerland (Skidata)" },
136 { 0xE016040000000000LL, 24, "EM-Marin SA (Skidata Keycard-eco); EM4034? no 'read', just 'readmulti'" },
137 { 0xE0160c0000000000LL, 24, "EM-Marin SA; EM4035?" },
138 { 0xE016100000000000LL, 24, "EM-Marin SA (Skidata); EM4135; 36x64bit start page 13" },
139 { 0xE016940000000000LL, 24, "EM-Marin SA (Skidata); 51x64bit" },
140
141 { 0xE017000000000000LL, 16, "KSW Microtec GmbH Germany" },
142 { 0xE018000000000000LL, 16, "ZMD AG Germany" },
143 { 0xE019000000000000LL, 16, "XICOR, Inc. USA" },
144 { 0xE01A000000000000LL, 16, "Sony Corporation Japan Identifier Company Country" },
145 { 0xE01B000000000000LL, 16, "Malaysia Microelectronic Solutions Sdn. Bhd Malaysia" },
146 { 0xE01C000000000000LL, 16, "Emosyn USA" },
147 { 0xE01D000000000000LL, 16, "Shanghai Fudan Microelectronics Co. Ltd. P.R. China" },
148 { 0xE01E000000000000LL, 16, "Magellan Technology Pty Limited Australia" },
149 { 0xE01F000000000000LL, 16, "Melexis NV BO Switzerland" },
150 { 0xE020000000000000LL, 16, "Renesas Technology Corp. Japan" },
151 { 0xE021000000000000LL, 16, "TAGSYS France" },
152 { 0xE022000000000000LL, 16, "Transcore USA" },
153 { 0xE023000000000000LL, 16, "Shanghai belling corp., ltd. China" },
154 { 0xE024000000000000LL, 16, "Masktech Germany Gmbh Germany" },
155 { 0xE025000000000000LL, 16, "Innovision Research and Technology Plc UK" },
156 { 0xE026000000000000LL, 16, "Hitachi ULSI Systems Co., Ltd. Japan" },
157 { 0xE027000000000000LL, 16, "Cypak AB Sweden" },
158 { 0xE028000000000000LL, 16, "Ricoh Japan" },
159 { 0xE029000000000000LL, 16, "ASK France" },
160 { 0xE02A000000000000LL, 16, "Unicore Microsystems, LLC Russian Federation" },
161 { 0xE02B000000000000LL, 16, "Dallas Semiconductor/Maxim USA" },
162 { 0xE02C000000000000LL, 16, "Impinj, Inc. USA" },
163 { 0xE02D000000000000LL, 16, "RightPlug Alliance USA" },
164 { 0xE02E000000000000LL, 16, "Broadcom Corporation USA" },
165 { 0xE02F000000000000LL, 16, "MStar Semiconductor, Inc Taiwan, ROC" },
166 { 0xE030000000000000LL, 16, "BeeDar Technology Inc. USA" },
167 { 0xE031000000000000LL, 16, " RFIDsec Denmark" },
168 { 0xE032000000000000LL, 16, " Schweizer Electronic AG Germany" },
169 { 0xE033000000000000LL, 16, " AMIC Technology Corp Taiwan" },
170 { 0xE034000000000000LL, 16, "Mikron JSC Russia" },
171 { 0xE035000000000000LL, 16, "Fraunhofer Institute for Photonic Microsystems Germany" },
172 { 0xE036000000000000LL, 16, "IDS Microchip AG Switzerland" },
173 { 0xE037000000000000LL, 16, "Kovio USA" },
174 { 0xE038000000000000LL, 16, "HMT Microelectronic Ltd Switzerland Identifier Company Country" },
175 { 0xE039000000000000LL, 16, "Silicon Craft Technology Thailand" },
176 { 0xE03A000000000000LL, 16, "Advanced Film Device Inc. Japan" },
177 { 0xE03B000000000000LL, 16, "Nitecrest Ltd UK" },
178 { 0xE03C000000000000LL, 16, "Verayo Inc. USA" },
179 { 0xE03D000000000000LL, 16, "HID Global USA" },
180 { 0xE03E000000000000LL, 16, "Productivity Engineering Gmbh Germany" },
181 { 0xE03F000000000000LL, 16, "Austriamicrosystems AG (reserved) Austria" },
182 { 0xE040000000000000LL, 16, "Gemalto SA France" },
183 { 0xE041000000000000LL, 16, "Renesas Electronics Corporation Japan" },
184 { 0xE042000000000000LL, 16, "3Alogics Inc Korea" },
185 { 0xE043000000000000LL, 16, "Top TroniQ Asia Limited Hong Kong" },
186 { 0xE044000000000000LL, 16, "Gentag Inc (USA) USA" },
187 { 0,0,"no tag-info available" } // must be the last entry
188 };
189
190
191 // fast method to just read the UID of a tag (collission detection not supported)
192 // *buf should be large enough to fit the 64bit uid
193 // returns 1 if suceeded
194 int getUID(uint8_t *buf)
195 {
196 UsbCommand resp;
197 uint8_t *recv;
198 UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
199 uint8_t *req=c.d.asBytes;
200 int reqlen=0;
201
202 for (int retry=0;retry<3; retry++) { // don't give up the at the first try
203
204 req[0]= ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH |
205 ISO15_REQ_INVENTORY | ISO15_REQINV_SLOT1;
206 req[1]=ISO15_CMD_INVENTORY;
207 req[2]=0; // mask length
208 reqlen=AddCrc(req,3);
209 c.arg[0]=reqlen;
210
211 SendCommand(&c);
212
213 if (WaitForResponseTimeout(CMD_ACK,&resp,1000)) {
214 recv = resp.d.asBytes;
215 if (resp.arg[0]>=12 && ISO15_CRC_CHECK==Crc(recv,12)) {
216 memcpy(buf,&recv[2],8);
217 return 1;
218 }
219 }
220 } // retry
221 return 0;
222 }
223
224
225
226 // get a product description based on the UID
227 // uid[8] tag uid
228 // returns description of the best match
229 static char* getTagInfo(uint8_t *uid) {
230 uint64_t myuid,mask;
231 int i=0, best=-1;
232 memcpy(&myuid,uid,sizeof(uint64_t));
233 while (uidmapping[i].mask>0) {
234 mask=(~0LL) <<(64-uidmapping[i].mask);
235 if ((myuid & mask) == uidmapping[i].uid) {
236 if (best==-1) {
237 best=i;
238 } else {
239 if (uidmapping[i].mask > uidmapping[best].mask) {
240 best=i;
241 }
242 }
243 }
244 i++;
245 }
246
247 if (best>=0) return uidmapping[best].desc;
248
249 return uidmapping[i].desc;
250 }
251
252
253 // return a clear-text message to an errorcode
254 static char* TagErrorStr(uint8_t error) {
255 switch (error) {
256 case 0x01: return "The command is not supported";
257 case 0x02: return "The command is not recognised";
258 case 0x03: return "The option is not supported.";
259 case 0x0f: return "Unknown error.";
260 case 0x10: return "The specified block is not available (doesn’t exist).";
261 case 0x11: return "The specified block is already -locked and thus cannot be locked again";
262 case 0x12: return "The specified block is locked and its content cannot be changed.";
263 case 0x13: return "The specified block was not successfully programmed.";
264 case 0x14: return "The specified block was not successfully locked.";
265 default: return "Reserved for Future Use or Custom command error.";
266 }
267 }
268
269
270 // Mode 3
271 int CmdHF15Demod(const char *Cmd)
272 {
273 // The sampling rate is 106.353 ksps/s, for T = 18.8 us
274
275 int i, j;
276 int max = 0, maxPos = 0;
277
278 int skip = 4;
279
280 if (GraphTraceLen < 1000) return 0;
281
282 // First, correlate for SOF
283 for (i = 0; i < 100; i++) {
284 int corr = 0;
285 for (j = 0; j < arraylen(FrameSOF); j += skip) {
286 corr += FrameSOF[j] * GraphBuffer[i + (j / skip)];
287 }
288 if (corr > max) {
289 max = corr;
290 maxPos = i;
291 }
292 }
293 PrintAndLog("SOF at %d, correlation %d", maxPos,
294 max / (arraylen(FrameSOF) / skip));
295
296 i = maxPos + arraylen(FrameSOF) / skip;
297 int k = 0;
298 uint8_t outBuf[20];
299 memset(outBuf, 0, sizeof(outBuf));
300 uint8_t mask = 0x01;
301 for (;;) {
302 int corr0 = 0, corr1 = 0, corrEOF = 0;
303 for (j = 0; j < arraylen(Logic0); j += skip) {
304 corr0 += Logic0[j] * GraphBuffer[i + (j / skip)];
305 }
306 for (j = 0; j < arraylen(Logic1); j += skip) {
307 corr1 += Logic1[j] * GraphBuffer[i + (j / skip)];
308 }
309 for (j = 0; j < arraylen(FrameEOF); j += skip) {
310 corrEOF += FrameEOF[j] * GraphBuffer[i + (j / skip)];
311 }
312 // Even things out by the length of the target waveform.
313 corr0 *= 4;
314 corr1 *= 4;
315
316 if (corrEOF > corr1 && corrEOF > corr0) {
317 PrintAndLog("EOF at %d", i);
318 break;
319 } else if (corr1 > corr0) {
320 i += arraylen(Logic1) / skip;
321 outBuf[k] |= mask;
322 } else {
323 i += arraylen(Logic0) / skip;
324 }
325 mask <<= 1;
326 if (mask == 0) {
327 k++;
328 mask = 0x01;
329 }
330 if ((i + (int)arraylen(FrameEOF)) >= GraphTraceLen) {
331 PrintAndLog("ran off end!");
332 break;
333 }
334 }
335 if (mask != 0x01) {
336 PrintAndLog("error, uneven octet! (discard extra bits!)");
337 PrintAndLog(" mask=%02x", mask);
338 }
339 PrintAndLog("%d octets", k);
340
341 for (i = 0; i < k; i++) {
342 PrintAndLog("# %2d: %02x ", i, outBuf[i]);
343 }
344 PrintAndLog("CRC=%04x", Iso15693Crc(outBuf, k - 2));
345 return 0;
346 }
347
348
349
350 // * Acquire Samples as Reader (enables carrier, sends inquiry)
351 int CmdHF15Read(const char *Cmd)
352 {
353 UsbCommand c = {CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_15693};
354 SendCommand(&c);
355
356 uint8_t data[TRACE_BUFF_SIZE] = {0x00};
357
358 GetFromBigBuf(data,TRACE_BUFF_SIZE,3560); //3560 -- should be offset..
359 WaitForResponseTimeout(CMD_ACK,NULL, 1500);
360
361 for (int j = 0; j < TRACE_BUFF_SIZE; j++) {
362 GraphBuffer[j] = ((int)data[j]) ;
363 }
364 GraphTraceLen = TRACE_BUFF_SIZE;
365 RepaintGraphWindow();
366 return 0;
367 }
368
369 // Record Activity without enabeling carrier
370 int CmdHF15Record(const char *Cmd)
371 {
372 UsbCommand c = {CMD_RECORD_RAW_ADC_SAMPLES_ISO_15693};
373 SendCommand(&c);
374
375 uint8_t data[TRACE_BUFF_SIZE] = {0x00};
376
377 GetFromBigBuf(data,TRACE_BUFF_SIZE,3560); //3560 -- should be offset..
378 WaitForResponseTimeout(CMD_ACK,NULL, 1500);
379
380 for (int j = 0; j < TRACE_BUFF_SIZE; j++) {
381 GraphBuffer[j] = ((int)data[j]) ;
382 }
383 GraphTraceLen = TRACE_BUFF_SIZE;
384 RepaintGraphWindow();
385 return 0;
386 }
387
388 int CmdHF15Reader(const char *Cmd)
389 {
390 UsbCommand c = {CMD_READER_ISO_15693, {strtol(Cmd, NULL, 0), 0, 0}};
391 SendCommand(&c);
392 return 0;
393 }
394
395 // Simulation is still not working very good
396 int CmdHF15Sim(const char *Cmd)
397 {
398 char cmdp = param_getchar(Cmd, 0);
399 uint8_t uid[8] = {0x00};
400
401 //E0 16 24 00 00 00 00 00
402 if (cmdp == 'h' || cmdp == 'H') {
403 PrintAndLog("Usage: hf 15 sim <UID>");
404 PrintAndLog("");
405 PrintAndLog(" sample: hf 15 sim E016240000000000");
406 return 0;
407 }
408
409 if (param_gethex(Cmd, 0, uid, 16)) {
410 PrintAndLog("UID must include 16 HEX symbols");
411 return 0;
412 }
413
414 PrintAndLog("Starting simulating UID %02X %02X %02X %02X %02X %02X %02X %02X",
415 uid[0],uid[1],uid[2],uid[3],uid[4], uid[5], uid[6], uid[7]);
416
417 UsbCommand c = {CMD_SIMTAG_ISO_15693, {0, 0, 0}};
418 memcpy(c.d.asBytes,uid,8);
419
420 SendCommand(&c);
421 return 0;
422 }
423
424 // finds the AFI (Application Family Idendifier) of a card, by trying all values
425 // (There is no standard way of reading the AFI, allthough some tags support this)
426 int CmdHF15Afi(const char *Cmd)
427 {
428 UsbCommand c = {CMD_ISO_15693_FIND_AFI, {strtol(Cmd, NULL, 0), 0, 0}};
429 SendCommand(&c);
430 return 0;
431 }
432
433 // Reads all memory pages
434 int CmdHF15DumpMem(const char*Cmd) {
435 UsbCommand resp;
436 uint8_t uid[8];
437 uint8_t *recv=NULL;
438 UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
439 uint8_t *req=c.d.asBytes;
440 int reqlen=0;
441 int blocknum=0;
442 char output[80];
443
444 if (!getUID(uid)) {
445 PrintAndLog("No Tag found.");
446 return 0;
447 }
448
449 PrintAndLog("Reading memory from tag UID=%s",sprintUID(NULL,uid));
450 PrintAndLog("Tag Info: %s",getTagInfo(uid));
451
452 for (int retry=0; retry<5; retry++) {
453
454 req[0]= ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH |
455 ISO15_REQ_NONINVENTORY | ISO15_REQ_ADDRESS;
456 req[1]=ISO15_CMD_READ;
457 memcpy(&req[2],uid,8);
458 req[10]=blocknum;
459 reqlen=AddCrc(req,11);
460 c.arg[0]=reqlen;
461
462 SendCommand(&c);
463
464 if (WaitForResponseTimeout(CMD_ACK,&resp,1000)) {
465 recv = resp.d.asBytes;
466 if (ISO15_CRC_CHECK==Crc(recv,resp.arg[0])) {
467 if (!(recv[0] & ISO15_RES_ERROR)) {
468 retry=0;
469 *output=0; // reset outputstring
470 sprintf(output, "Block %02x ",blocknum);
471 for ( int i=1; i<resp.arg[0]-2; i++) { // data in hex
472 sprintf(output+strlen(output),"%02X ",recv[i]);
473 }
474 strcat(output," ");
475 for ( int i=1; i<resp.arg[0]-2; i++) { // data in cleaned ascii
476 sprintf(output+strlen(output),"%c",(recv[i]>31 && recv[i]<127)?recv[i]:'.');
477 }
478 PrintAndLog("%s",output);
479 blocknum++;
480 // PrintAndLog("bn=%i",blocknum);
481 } else {
482 PrintAndLog("Tag returned Error %i: %s",recv[1],TagErrorStr(recv[1]));
483 return 0;
484 }
485 } // else PrintAndLog("crc");
486 } // else PrintAndLog("r null");
487 } // retry
488 // TODO: need fix
489 // if (resp.arg[0]<3)
490 // PrintAndLog("Lost Connection");
491 // else if (ISO15_CRC_CHECK!=Crc(resp.d.asBytes,resp.arg[0]))
492 // PrintAndLog("CRC Failed");
493 // else
494 // PrintAndLog("Tag returned Error %i: %s",recv[1],TagErrorStr(recv[1]));
495 return 0;
496 }
497
498
499 // "HF 15" interface
500
501 static command_t CommandTable15[] =
502 {
503 {"help", CmdHF15Help, 1, "This help"},
504 {"demod", CmdHF15Demod, 1, "Demodulate ISO15693 from tag"},
505 {"read", CmdHF15Read, 0, "Read HF tag (ISO 15693)"},
506 {"record", CmdHF15Record, 0, "Record Samples (ISO 15693)"}, // atrox
507 {"reader", CmdHF15Reader, 0, "Act like an ISO15693 reader"},
508 {"sim", CmdHF15Sim, 0, "Fake an ISO15693 tag"},
509 {"cmd", CmdHF15Cmd, 0, "Send direct commands to ISO15693 tag"},
510 {"findafi", CmdHF15Afi, 0, "Brute force AFI of an ISO15693 tag"},
511 {"dumpmemory", CmdHF15DumpMem, 0, "Read all memory pages of an ISO15693 tag"},
512 {NULL, NULL, 0, NULL}
513 };
514
515 int CmdHF15(const char *Cmd)
516 {
517 CmdsParse(CommandTable15, Cmd);
518 return 0;
519 }
520
521 int CmdHF15Help(const char *Cmd)
522 {
523 CmdsHelp(CommandTable15);
524 return 0;
525 }
526
527
528 // "HF 15 Cmd" Interface
529 // Allows direct communication with the tag on command level
530
531 int CmdHF15CmdInquiry(const char *Cmd)
532 {
533 UsbCommand resp;
534 uint8_t *recv;
535 UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
536 uint8_t *req=c.d.asBytes;
537 int reqlen=0;
538
539 req[0]= ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH |
540 ISO15_REQ_INVENTORY | ISO15_REQINV_SLOT1;
541 req[1]=ISO15_CMD_INVENTORY;
542 req[2]=0; // mask length
543 reqlen=AddCrc(req,3);
544 c.arg[0]=reqlen;
545
546 SendCommand(&c);
547
548 if (WaitForResponseTimeout(CMD_ACK,&resp,1000)) {
549 if (resp.arg[0]>=12) {
550 recv = resp.d.asBytes;
551 PrintAndLog("UID=%s",sprintUID(NULL,&recv[2]));
552 PrintAndLog("Tag Info: %s",getTagInfo(&recv[2]));
553 } else {
554 PrintAndLog("Response to short, just %i bytes. No tag?\n",resp.arg[0]);
555 }
556 } else {
557 PrintAndLog("timeout.");
558 }
559 return 0;
560 }
561
562
563 // Turns debugging on(1)/off(0)
564 int CmdHF15CmdDebug( const char *cmd) {
565 int debug=atoi(cmd);
566 if (strlen(cmd)<1) {
567 PrintAndLog("Usage: hf 15 cmd debug <0|1>");
568 PrintAndLog(" 0 no debugging");
569 PrintAndLog(" 1 turn debugging on");
570 return 0;
571 }
572
573 UsbCommand c = {CMD_ISO_15693_DEBUG, {debug, 0, 0}};
574 SendCommand(&c);
575 return 0;
576 }
577
578
579 int CmdHF15CmdRaw (const char *cmd) {
580 UsbCommand resp;
581 uint8_t *recv;
582 UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
583 int reply=1;
584 int fast=1;
585 int crc=0;
586 char buf[5]="";
587 int i=0;
588 uint8_t data[100];
589 unsigned int datalen=0, temp;
590 char *hexout;
591
592
593 if (strlen(cmd)<3) {
594 PrintAndLog("Usage: hf 15 cmd raw [-r] [-2] [-c] <0A 0B 0C ... hex>");
595 PrintAndLog(" -r do not read response");
596 PrintAndLog(" -2 use slower '1 out of 256' mode");
597 PrintAndLog(" -c calculate and append CRC");
598 PrintAndLog(" Tip: turn on debugging for verbose output");
599 return 0;
600 }
601
602 // strip
603 while (*cmd==' ' || *cmd=='\t') cmd++;
604
605 while (cmd[i]!='\0') {
606 if (cmd[i]==' ' || cmd[i]=='\t') { i++; continue; }
607 if (cmd[i]=='-') {
608 switch (cmd[i+1]) {
609 case 'r':
610 case 'R':
611 reply=0;
612 break;
613 case '2':
614 fast=0;
615 break;
616 case 'c':
617 case 'C':
618 crc=1;
619 break;
620 default:
621 PrintAndLog("Invalid option");
622 return 0;
623 }
624 i+=2;
625 continue;
626 }
627 if ((cmd[i]>='0' && cmd[i]<='9') ||
628 (cmd[i]>='a' && cmd[i]<='f') ||
629 (cmd[i]>='A' && cmd[i]<='F') ) {
630 buf[strlen(buf)+1]=0;
631 buf[strlen(buf)]=cmd[i];
632 i++;
633
634 if (strlen(buf)>=2) {
635 sscanf(buf,"%x",&temp);
636 data[datalen]=(uint8_t)(temp & 0xff);
637 datalen++;
638 *buf=0;
639 }
640 continue;
641 }
642 PrintAndLog("Invalid char on input");
643 return 0;
644 }
645 if (crc) datalen=AddCrc(data,datalen);
646
647 c.arg[0]=datalen;
648 c.arg[1]=fast;
649 c.arg[2]=reply;
650 memcpy(c.d.asBytes,data,datalen);
651
652 SendCommand(&c);
653
654 if (reply) {
655 if (WaitForResponseTimeout(CMD_ACK,&resp,1000)) {
656 recv = resp.d.asBytes;
657 PrintAndLog("received %i octets",resp.arg[0]);
658 hexout = (char *)malloc(resp.arg[0] * 3 + 1);
659 if (hexout != NULL) {
660 for (int i = 0; i < resp.arg[0]; i++) { // data in hex
661 sprintf(&hexout[i * 3], "%02X ", recv[i]);
662 }
663 PrintAndLog("%s", hexout);
664 free(hexout);
665 }
666 } else {
667 PrintAndLog("timeout while waiting for reply.");
668 }
669
670 } // if reply
671 return 0;
672 }
673
674
675 /**
676 * parses common HF 15 CMD parameters and prepares some data structures
677 * Parameters:
678 * **cmd command line
679 */
680 int prepareHF15Cmd(char **cmd, UsbCommand *c, uint8_t iso15cmd[], int iso15cmdlen) {
681 int temp;
682 uint8_t *req = c->d.asBytes;
683 uint8_t uid[8] = {0x00};
684 uint32_t reqlen = 0;
685
686 // strip
687 while (**cmd==' ' || **cmd=='\t') (*cmd)++;
688
689 if (strstr(*cmd,"-2")==*cmd) {
690 c->arg[1]=0; // use 1of256
691 (*cmd)+=2;
692 }
693
694 // strip
695 while (**cmd==' ' || **cmd=='\t') (*cmd)++;
696
697 if (strstr(*cmd,"-o")==*cmd) {
698 req[reqlen]=ISO15_REQ_OPTION;
699 (*cmd)+=2;
700 }
701
702 // strip
703 while (**cmd==' ' || **cmd=='\t') (*cmd)++;
704
705 switch (**cmd) {
706 case 0:
707 PrintAndLog("missing addr");
708 return 0;
709 break;
710 case 's':
711 case 'S':
712 // you must have selected the tag earlier
713 req[reqlen++]|= ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH |
714 ISO15_REQ_NONINVENTORY | ISO15_REQ_SELECT;
715 memcpy(&req[reqlen],&iso15cmd[0],iso15cmdlen);
716 reqlen+=iso15cmdlen;
717 break;
718 case 'u':
719 case 'U':
720 // unaddressed mode may not be supported by all vendors
721 req[reqlen++]|= ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH |
722 ISO15_REQ_NONINVENTORY;
723 memcpy(&req[reqlen],&iso15cmd[0],iso15cmdlen);
724 reqlen+=iso15cmdlen;
725 break;
726 case '*':
727 // we scan for the UID ourself
728 req[reqlen++]|= ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH |
729 ISO15_REQ_NONINVENTORY | ISO15_REQ_ADDRESS;
730 memcpy(&req[reqlen],&iso15cmd[0],iso15cmdlen);
731 reqlen+=iso15cmdlen;
732 if (!getUID(uid)) {
733 PrintAndLog("No Tag found");
734 return 0;
735 }
736 memcpy(req+reqlen,uid,8);
737 PrintAndLog("Detected UID %s",sprintUID(NULL,uid));
738 reqlen+=8;
739 break;
740 default:
741 req[reqlen++]|= ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH |
742 ISO15_REQ_NONINVENTORY | ISO15_REQ_ADDRESS;
743 memcpy(&req[reqlen],&iso15cmd[0],iso15cmdlen);
744 reqlen+=iso15cmdlen;
745
746 /* sscanf(cmd,"%hX%hX%hX%hX%hX%hX%hX%hX",
747 (short unsigned int *)&uid[7],(short unsigned int *)&uid[6],
748 (short unsigned int *)&uid[5],(short unsigned int *)&uid[4],
749 (short unsigned int *)&uid[3],(short unsigned int *)&uid[2],
750 (short unsigned int *)&uid[1],(short unsigned int *)&uid[0]); */
751 for (int i=0;i<8 && (*cmd)[i*2] && (*cmd)[i*2+1];i++) { // parse UID
752 sscanf((char[]){(*cmd)[i*2],(*cmd)[i*2+1],0},"%X",&temp);
753 uid[7-i]=temp&0xff;
754 }
755
756 PrintAndLog("Using UID %s",sprintUID(NULL,uid));
757 memcpy(&req[reqlen],&uid[0],8);
758 reqlen+=8;
759 }
760 // skip to next space
761 while (**cmd!=' ' && **cmd!='\t') (*cmd)++;
762 // skip over the space
763 while (**cmd==' ' || **cmd=='\t') (*cmd)++;
764
765 c->arg[0]=reqlen;
766 return 1;
767 }
768
769 /**
770 * Commandline handling: HF15 CMD SYSINFO
771 * get system information from tag/VICC
772 */
773 int CmdHF15CmdSysinfo(const char *Cmd) {
774 UsbCommand resp;
775 uint8_t *recv;
776 UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
777 uint8_t *req=c.d.asBytes;
778 int reqlen=0;
779 char cmdbuf[100];
780 char *cmd=cmdbuf;
781 char output[2048]="";
782 int i;
783
784 strncpy(cmd,Cmd,99);
785
786 // usage:
787 if (strlen(cmd)<1) {
788 PrintAndLog("Usage: hf 15 cmd sysinfo [options] <uid|s|u|*>");
789 PrintAndLog(" options:");
790 PrintAndLog(" -2 use slower '1 out of 256' mode");
791 PrintAndLog(" uid (either): ");
792 PrintAndLog(" <8B hex> full UID eg E011223344556677");
793 PrintAndLog(" s selected tag");
794 PrintAndLog(" u unaddressed mode");
795 PrintAndLog(" * scan for tag");
796 PrintAndLog(" start#: page number to start 0-255");
797 PrintAndLog(" count#: number of pages");
798 return 0;
799 }
800
801 prepareHF15Cmd(&cmd, &c,(uint8_t[]){ISO15_CMD_SYSINFO},1);
802 reqlen=c.arg[0];
803
804 reqlen=AddCrc(req,reqlen);
805 c.arg[0]=reqlen;
806
807 SendCommand(&c);
808
809 if (WaitForResponseTimeout(CMD_ACK,&resp,1000) && resp.arg[0]>2) {
810 recv = resp.d.asBytes;
811 if (ISO15_CRC_CHECK==Crc(recv,resp.arg[0])) {
812 if (!(recv[0] & ISO15_RES_ERROR)) {
813 *output=0; // reset outputstring
814 for ( i=1; i<resp.arg[0]-2; i++) {
815 sprintf(output+strlen(output),"%02X ",recv[i]);
816 }
817 strcat(output,"\n\r");
818 strcat(output,"UID = ");
819 strcat(output,sprintUID(NULL,recv+2));
820 strcat(output,"\n\r");
821 strcat(output,getTagInfo(recv+2)); //ABC
822 strcat(output,"\n\r");
823 i=10;
824 if (recv[1] & 0x01)
825 sprintf(output+strlen(output),"DSFID supported, set to %02X\n\r",recv[i++]);
826 else
827 strcat(output,"DSFID not supported\n\r");
828 if (recv[1] & 0x02)
829 sprintf(output+strlen(output),"AFI supported, set to %03X\n\r",recv[i++]);
830 else
831 strcat(output,"AFI not supported\n\r");
832 if (recv[1] & 0x04) {
833 strcat(output,"Tag provides info on memory layout (vendor dependent)\n\r");
834 sprintf(output+strlen(output)," %i (or %i) bytes/page x %i pages \n\r",
835 (recv[i+1]&0x1F)+1, (recv[i+1]&0x1F), recv[i]+1);
836 i+=2;
837 } else
838 strcat(output,"Tag does not provide information on memory layout\n\r");
839 if (recv[1] & 0x08) sprintf(output+strlen(output),"IC reference given: %02X\n\r",recv[i++]);
840 else strcat(output,"IC reference not given\n\r");
841
842
843 PrintAndLog("%s",output);
844 } else {
845 PrintAndLog("Tag returned Error %i: %s",recv[0],TagErrorStr(recv[0]));
846 }
847 } else {
848 PrintAndLog("CRC failed");
849 }
850 } else {
851 PrintAndLog("timeout: no answer");
852 }
853
854 return 0;
855 }
856
857 /**
858 * Commandline handling: HF15 CMD READMULTI
859 * Read multiple blocks at once (not all tags support this)
860 */
861 int CmdHF15CmdReadmulti(const char *Cmd) {
862 UsbCommand resp;
863 uint8_t *recv;
864 UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
865 uint8_t *req=c.d.asBytes;
866 int reqlen=0, pagenum,pagecount;
867 char cmdbuf[100];
868 char *cmd=cmdbuf;
869 char output[2048]="";
870
871 strncpy(cmd,Cmd,99);
872
873 // usage:
874 if (strlen(cmd)<3) {
875 PrintAndLog("Usage: hf 15 cmd readmulti [options] <uid|s|u|*> <start#> <count#>");
876 PrintAndLog(" options:");
877 PrintAndLog(" -2 use slower '1 out of 256' mode");
878 PrintAndLog(" uid (either): ");
879 PrintAndLog(" <8B hex> full UID eg E011223344556677");
880 PrintAndLog(" s selected tag");
881 PrintAndLog(" u unaddressed mode");
882 PrintAndLog(" * scan for tag");
883 PrintAndLog(" start#: page number to start 0-255");
884 PrintAndLog(" count#: number of pages");
885 return 0;
886 }
887
888 prepareHF15Cmd(&cmd, &c,(uint8_t[]){ISO15_CMD_READMULTI},1);
889 reqlen=c.arg[0];
890
891 pagenum=strtol(cmd,NULL,0);
892
893 // skip to next space
894 while (*cmd!=' ' && *cmd!='\t') cmd++;
895 // skip over the space
896 while (*cmd==' ' || *cmd=='\t') cmd++;
897
898 pagecount=strtol(cmd,NULL,0);
899 if (pagecount>0) pagecount--; // 0 means 1 page, 1 means 2 pages, ...
900
901 req[reqlen++]=(uint8_t)pagenum;
902 req[reqlen++]=(uint8_t)pagecount;
903
904 reqlen=AddCrc(req,reqlen);
905
906 c.arg[0]=reqlen;
907
908 SendCommand(&c);
909
910 if (WaitForResponseTimeout(CMD_ACK,&resp,1000) && resp.arg[0]>2) {
911 recv = resp.d.asBytes;
912 if (ISO15_CRC_CHECK==Crc(recv,resp.arg[0])) {
913 if (!(recv[0] & ISO15_RES_ERROR)) {
914 *output=0; // reset outputstring
915 for ( int i=1; i<resp.arg[0]-2; i++) {
916 sprintf(output+strlen(output),"%02X ",recv[i]);
917 }
918 strcat(output," ");
919 for ( int i=1; i<resp.arg[0]-2; i++) {
920 sprintf(output+strlen(output),"%c",recv[i]>31 && recv[i]<127?recv[i]:'.');
921 }
922 PrintAndLog("%s",output);
923 } else {
924 PrintAndLog("Tag returned Error %i: %s",recv[0],TagErrorStr(recv[0]));
925 }
926 } else {
927 PrintAndLog("CRC failed");
928 }
929 } else {
930 PrintAndLog("no answer");
931 }
932
933 return 0;
934 }
935
936 /**
937 * Commandline handling: HF15 CMD READ
938 * Reads a single Block
939 */
940 int CmdHF15CmdRead(const char *Cmd) {
941 UsbCommand resp;
942 uint8_t *recv;
943 UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
944 uint8_t *req=c.d.asBytes;
945 int reqlen=0, pagenum;
946 char cmdbuf[100];
947 char *cmd=cmdbuf;
948 char output[100]="";
949
950 strncpy(cmd,Cmd,99);
951
952 // usage:
953 if (strlen(cmd)<3) {
954 PrintAndLog("Usage: hf 15 cmd read [options] <uid|s|u|*> <page#>");
955 PrintAndLog(" options:");
956 PrintAndLog(" -2 use slower '1 out of 256' mode");
957 PrintAndLog(" uid (either): ");
958 PrintAndLog(" <8B hex> full UID eg E011223344556677");
959 PrintAndLog(" s selected tag");
960 PrintAndLog(" u unaddressed mode");
961 PrintAndLog(" * scan for tag");
962 PrintAndLog(" page#: page number 0-255");
963 return 0;
964 }
965
966 prepareHF15Cmd(&cmd, &c,(uint8_t[]){ISO15_CMD_READ},1);
967 reqlen=c.arg[0];
968
969 pagenum=strtol(cmd,NULL,0);
970 /*if (pagenum<0) {
971 PrintAndLog("invalid pagenum");
972 return 0;
973 } */
974
975 req[reqlen++]=(uint8_t)pagenum;
976
977 reqlen=AddCrc(req,reqlen);
978
979 c.arg[0]=reqlen;
980
981 SendCommand(&c);
982
983 if (WaitForResponseTimeout(CMD_ACK,&resp,1000) && resp.arg[0]>2) {
984 recv = resp.d.asBytes;
985 if (ISO15_CRC_CHECK==Crc(recv,resp.arg[0])) {
986 if (!(recv[0] & ISO15_RES_ERROR)) {
987 *output=0; // reset outputstring
988 //sprintf(output, "Block %2i ",blocknum);
989 for ( int i=1; i<resp.arg[0]-2; i++) {
990 sprintf(output+strlen(output),"%02X ",recv[i]);
991 }
992 strcat(output," ");
993 for ( int i=1; i<resp.arg[0]-2; i++) {
994 sprintf(output+strlen(output),"%c",recv[i]>31 && recv[i]<127?recv[i]:'.');
995 }
996 PrintAndLog("%s",output);
997 } else {
998 PrintAndLog("Tag returned Error %i: %s",recv[1],TagErrorStr(recv[1]));
999 }
1000 } else {
1001 PrintAndLog("CRC failed");
1002 }
1003 } else {
1004 PrintAndLog("no answer");
1005 }
1006
1007 return 0;
1008 }
1009
1010
1011 /**
1012 * Commandline handling: HF15 CMD WRITE
1013 * Writes a single Block - might run into timeout, even when successful
1014 */
1015 int CmdHF15CmdWrite(const char *Cmd) {
1016 UsbCommand resp;
1017 uint8_t *recv;
1018 UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
1019 uint8_t *req=c.d.asBytes;
1020 int reqlen=0, pagenum, temp;
1021 char cmdbuf[100];
1022 char *cmd=cmdbuf;
1023 char *cmd2;
1024
1025 strncpy(cmd,Cmd,99);
1026
1027 // usage:
1028 if (strlen(cmd)<3) {
1029 PrintAndLog("Usage: hf 15 cmd write [options] <uid|s|u|*> <page#> <hexdata>");
1030 PrintAndLog(" options:");
1031 PrintAndLog(" -2 use slower '1 out of 256' mode");
1032 PrintAndLog(" -o set OPTION Flag (needed for TI)");
1033 PrintAndLog(" uid (either): ");
1034 PrintAndLog(" <8B hex> full UID eg E011223344556677");
1035 PrintAndLog(" s selected tag");
1036 PrintAndLog(" u unaddressed mode");
1037 PrintAndLog(" * scan for tag");
1038 PrintAndLog(" page#: page number 0-255");
1039 PrintAndLog(" hexdata: data to be written eg AA BB CC DD");
1040 return 0;
1041 }
1042
1043 prepareHF15Cmd(&cmd, &c,(uint8_t[]){ISO15_CMD_WRITE},1);
1044 reqlen=c.arg[0];
1045
1046 // *cmd -> page num ; *cmd2 -> data
1047 cmd2=cmd;
1048 while (*cmd2!=' ' && *cmd2!='\t' && *cmd2) cmd2++;
1049 *cmd2=0;
1050 cmd2++;
1051
1052 pagenum=strtol(cmd,NULL,0);
1053 /*if (pagenum<0) {
1054 PrintAndLog("invalid pagenum");
1055 return 0;
1056 } */
1057 req[reqlen++]=(uint8_t)pagenum;
1058
1059
1060 while (cmd2[0] && cmd2[1]) { // hexdata, read by 2 hexchars
1061 if (*cmd2==' ') {
1062 cmd2++;
1063 continue;
1064 }
1065 sscanf((char[]){cmd2[0],cmd2[1],0},"%X",&temp);
1066 req[reqlen++]=temp & 0xff;
1067 cmd2+=2;
1068 }
1069
1070 reqlen=AddCrc(req,reqlen);
1071
1072 c.arg[0]=reqlen;
1073
1074 SendCommand(&c);
1075
1076 if (WaitForResponseTimeout(CMD_ACK,&resp,2000) && resp.arg[0]>2) {
1077 recv = resp.d.asBytes;
1078 if (ISO15_CRC_CHECK==Crc(recv,resp.arg[0])) {
1079 if (!(recv[0] & ISO15_RES_ERROR)) {
1080 PrintAndLog("OK");
1081 } else {
1082 PrintAndLog("Tag returned Error %i: %s",recv[1],TagErrorStr(recv[1]));
1083 }
1084 } else {
1085 PrintAndLog("CRC failed");
1086 }
1087 } else {
1088 PrintAndLog("timeout: no answer - data may be written anyway");
1089 }
1090
1091 return 0;
1092 }
1093
1094
1095
1096 static command_t CommandTable15Cmd[] =
1097 {
1098 {"help", CmdHF15CmdHelp, 1, "This Help"},
1099 {"inquiry", CmdHF15CmdInquiry, 0, "Search for tags in range"},
1100 /*
1101 {"select", CmdHF15CmdSelect, 0, "Select an tag with a specific UID for further commands"},
1102 */
1103 {"read", CmdHF15CmdRead, 0, "Read a block"},
1104 {"write", CmdHF15CmdWrite, 0, "Write a block"},
1105 {"readmulti",CmdHF15CmdReadmulti, 0, "Reads multiple Blocks"},
1106 {"sysinfo",CmdHF15CmdSysinfo, 0, "Get Card Information"},
1107 {"raw", CmdHF15CmdRaw, 0, "Send raw hex data to tag"},
1108 {"debug", CmdHF15CmdDebug, 0, "Turn debugging on/off"},
1109 {NULL, NULL, 0, NULL}
1110 };
1111
1112 int CmdHF15Cmd(const char *Cmd)
1113 {
1114 CmdsParse(CommandTable15Cmd, Cmd);
1115 return 0;
1116 }
1117
1118 int CmdHF15CmdHelp(const char *Cmd)
1119 {
1120 CmdsHelp(CommandTable15Cmd);
1121 return 0;
1122 }
1123
Impressum, Datenschutz