forked from RfidResearchGroup/proxmark3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.json
12071 lines (12071 loc) · 578 KB
/
commands.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"commands": {
"analyse a": {
"command": "analyse a",
"description": "Iceman's personal garbage test command",
"notes": [
"analyse a -d 137AF00A0A0D"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --data <hex> bytes to manipulate"
],
"usage": "analyse a [-h] -d <hex>"
},
"analyse chksum": {
"command": "analyse chksum",
"description": "The bytes will be added with eachother and than limited with the applied mask Finally compute ones' complement of the least significant bytes.",
"notes": [
"analyse chksum -d 137AF00A0A0D -> expected output: 0x61",
"analyse chksum -d 137AF00A0A0D -m FF"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --data <hex> bytes to calc checksum",
"-m, --mask <hex> bit mask to limit the output (4 hex bytes max)",
"-v, --verbose verbose"
],
"usage": "analyse chksum [-hv] -d <hex> [-m <hex>]"
},
"analyse crc": {
"command": "analyse crc",
"description": "A stub method to test different crc implementations inside the PM3 sourcecode. Just because you figured out the poly, doesn't mean you get the desired output",
"notes": [
"analyse crc -d 137AF00A0A0D"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --data <hex> bytes to calc crc"
],
"usage": "analyse crc [-h] -d <hex>"
},
"analyse dates": {
"command": "analyse dates",
"description": "Tool to look for date/time stamps in a given array of bytes",
"notes": [
"analyse dates"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "analyse dates [-h]"
},
"analyse demodbuff": {
"command": "analyse demodbuff",
"description": "loads a binary string into DemodBuffer",
"notes": [
"analyse demodbuff -d 0011101001001011"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --data <bin> binary string to load"
],
"usage": "analyse demodbuff [-h] -d <bin>"
},
"analyse foo": {
"command": "analyse foo",
"description": "experiments of cliparse",
"notes": [
"analyse foo -r a0000000a0002021"
],
"offline": true,
"options": [
"-h, --help This help",
"-r, --raw <hex> raw bytes"
],
"usage": "analyse foo [-h] -r <hex>"
},
"analyse freq": {
"command": "analyse freq",
"description": "calc wave lengths",
"notes": [
"analyse freq"
],
"offline": true,
"options": [
"-h, --help This help",
"-F, --freq <int> resonating frequency F in hertz (Hz)",
"-L, --cap <int> capacitance C in micro farads (F)",
"-C, --ind <int> inductance in micro henries (H)"
],
"usage": "analyse freq [-h] [-F <int>] [-L <int>] [-C <int>]"
},
"analyse lcr": {
"command": "analyse lcr",
"description": "Specifying the bytes of a UID with a known LRC will find the last byte value needed to generate that LRC with a rolling XOR. All bytes should be specified in HEX.",
"notes": [
"analyse lcr -d 04008064BA -> Target (BA) requires final LRC XOR byte value: 5A"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --data <hex> bytes to calc missing XOR in a LCR"
],
"usage": "analyse lcr [-h] -d <hex>"
},
"analyse lfsr": {
"command": "analyse lfsr",
"description": "looks at LEGIC Prime's lfsr, iterates the first 48 values",
"notes": [
"analyse lfsr --iv 55"
],
"offline": true,
"options": [
"-h, --help This help",
"--iv <hex> init vector data (1 hex byte)",
"--find <hex> lfsr data to find (1 hex byte)"
],
"usage": "analyse lfsr [-h] --iv <hex> [--find <hex>]"
},
"analyse nuid": {
"command": "analyse nuid",
"description": "Generate 4byte NUID from 7byte UID",
"notes": [
"analyse nuid -d 11223344556677"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --data <hex> bytes to send",
"-t, --test self test"
],
"usage": "analyse nuid [-ht] [-d <hex>]"
},
"analyse units": {
"command": "analyse units",
"description": "experiments of unit conversions found in HF. ETU (1/13.56mhz), US or SSP_CLK (1/3.39MHz)",
"notes": [
"analyse uints --etu 10",
"analyse uints --us 100"
],
"offline": true,
"options": [
"-h, --help This help",
"--etu <dec> number in ETU",
"--us <dec> number in micro seconds (us)",
"-t, --selftest self tests"
],
"usage": "analyse units [-ht] [--etu <dec>] [--us <dec>]"
},
"auto": {
"command": "auto",
"description": "Run LF SEARCH / HF SEARCH / DATA PLOT / DATA SAVE",
"notes": [
"auto"
],
"offline": false,
"options": [
"-h, --help This help",
"-c Continue searching even after a first hit"
],
"usage": "auto [-hc]"
},
"clear": {
"command": "clear",
"description": "Clear the Proxmark3 client terminal screen",
"notes": [
"clear -> clear the terminal screen",
"clear -b -> clear the terminal screen and the scrollback buffer"
],
"offline": true,
"options": [
"-h, --help This help",
"-b, --back also clear the scrollback buffer"
],
"usage": "clear [-hb]"
},
"data askedgedetect": {
"command": "data askedgedetect",
"description": "Adjust Graph for manual ASK demod using the length of sample differences to detect the edge of a wave",
"notes": [
"data askedgedetect -t 20"
],
"offline": true,
"options": [
"-h, --help This help",
"-t, --thres <dec> threshold, use 20 - 45 (def 25)"
],
"usage": "data askedgedetect [-h] [-t <dec>]"
},
"data asn1": {
"command": "data asn1",
"description": "Decode ASN1 bytearray",
"notes": [
"data asn1 -d 303381050186922305a5020500a6088101010403030008a7188516eeee4facacf4fbde5e5c49d95e55bfbca74267b02407a9020500"
],
"offline": true,
"options": [
"-h, --help This help",
"-d <hex> ASN1 encoded byte array",
"-t, --test perform selftest"
],
"usage": "data asn1 [-ht] [-d <hex>]"
},
"data atr": {
"command": "data atr",
"description": "look up ATR record from bytearray",
"notes": [
"data atr -d 3B6B00000031C064BE1B0100079000"
],
"offline": true,
"options": [
"-h, --help This help",
"-d <hex> ASN1 encoded byte array"
],
"usage": "data atr [-h] [-d <hex>]"
},
"data autocorr": {
"command": "data autocorr",
"description": "Autocorrelate over window is used to detect repeating sequences. We use it as detection of how long in bits a message inside the signal is",
"notes": [
"data autocorr -w 4000",
"data autocorr -w 4000 -g"
],
"offline": true,
"options": [
"-h, --help This help",
"-g save back to GraphBuffer (overwrite)",
"-w, --win <dec> window length for correlation. def 4000"
],
"usage": "data autocorr [-hg] [-w <dec>]"
},
"data bin2hex": {
"command": "data bin2hex",
"description": "This function converts binary to hexadecimal. It will ignore all characters not 1 or 0 but stop reading on whitespace",
"notes": [
"data bin2hex -d 0101111001010"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --data <bin> binary string to convert"
],
"usage": "data bin2hex [-h] -d <bin>"
},
"data biphaserawdecode": {
"command": "data biphaserawdecode",
"description": "Biphase decode binary stream in DemodBuffer Converts 10 or 01 -> 1 and 11 or 00 -> 0 - must have binary sequence in DemodBuffer (run `data rawdemod --ar` before) - invert for Conditional Dephase Encoding (CDP) AKA Differential Manchester",
"notes": [
"data biphaserawdecode -> decode biphase bitstream from the DemodBuffer",
"data biphaserawdecode -oi -> decode biphase bitstream from the DemodBuffer, adjust offset, and invert output"
],
"offline": true,
"options": [
"-h, --help This help",
"-o, --offset set to adjust decode start position",
"-i, --inv invert output",
"--err <dec> set max errors tolerated (def 20)"
],
"usage": "data biphaserawdecode [-hoi] [--err <dec>]"
},
"data bitsamples": {
"command": "data bitsamples",
"description": "Get raw samples from device as bitstring",
"notes": [
"data bitsamples"
],
"offline": false,
"options": [
"-h, --help This help"
],
"usage": "data bitsamples [-h]"
},
"data bmap": {
"command": "data bmap",
"description": "Breaks down a hex value to binary according a template data bmap -d 16 -m 4,4 This will give two rows each with four bits",
"notes": [
"data bmap -d 3B",
"data bmap -d 3B -m 2,5,1"
],
"offline": true,
"options": [
"-h, --help This help",
"-d <hex> hex string",
"-m <str> binary template"
],
"usage": "data bmap [-h] [-d <hex>] [-m <str>]"
},
"data clear": {
"command": "data clear",
"description": "This function clears the bigbuff on deviceside and graph window",
"notes": [
"data clear"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data clear [-h]"
},
"data convertbitstream": {
"command": "data convertbitstream",
"description": "Convert GraphBuffer's 0|1 values to 127|-127",
"notes": [
"data convertbitstream"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data convertbitstream [-h]"
},
"data cthreshold": {
"command": "data cthreshold",
"description": "Inverse of dirty threshold command, all values between up and down will be average out",
"notes": [
"data cthreshold -u 10 -d -10"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --down <dec> threshold down",
"-u, --up <dec> threshold up"
],
"usage": "data cthreshold [-h] -d <dec> -u <dec>"
},
"data decimate": {
"command": "data decimate",
"description": "Performs decimation, by reducing samples N times in the grapbuf. Good for PSK",
"notes": [
"data decimate",
"data decimate -n 4"
],
"offline": true,
"options": [
"-h, --help This help",
"-n <dec> factor to reduce sample set (default 2)"
],
"usage": "data decimate [-h] [-n <dec>]"
},
"data detectclock": {
"command": "data detectclock",
"description": "Detect ASK, FSK, NRZ, PSK clock rate of wave in GraphBuffer",
"notes": [
"data detectclock --ask",
"data detectclock --nzr -> detect clock of an nrz/direct wave in GraphBuffer"
],
"offline": true,
"options": [
"-h, --help This help",
"--ask specify ASK modulation clock detection",
"--fsk specify FSK modulation clock detection",
"--nzr specify NZR/DIRECT modulation clock detection",
"--psk specify PSK modulation clock detection"
],
"usage": "data detectclock [-h] [--ask] [--fsk] [--nzr] [--psk]"
},
"data diff": {
"command": "data diff",
"description": "Diff takes a multitude of input data and makes a binary compare. It accepts filenames (filesystem or RDV4 flashmem SPIFFS), emulator memory, magic gen1",
"notes": [
"data diff -w 4 -a hf-mfu-01020304.bin -b hf-mfu-04030201.bin",
"data diff -a fileA -b fileB",
"data diff -a fileA --eb",
"data diff --fa fileA -b fileB",
"data diff --fa fileA --fb fileB"
],
"offline": true,
"options": [
"-h, --help This help",
"-a <fn> input file name A",
"-b <fn> input file name B",
"--eb emulator memory <hf mf esave>",
"--fa <fn> input spiffs file A",
"--fb <fn> input spiffs file B",
"-w <4|8|16> Width of data output"
],
"usage": "data diff [-h] [-a <fn>] [-b <fn>] [--eb] [--fa <fn>] [--fb <fn>] [-w <4|8|16>]"
},
"data dirthreshold": {
"command": "data dirthreshold",
"description": "Max rising higher up-thres/ Min falling lower down-thres, keep rest as prev.",
"notes": [
"data dirthreshold -u 10 -d -10"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --down <dec> threshold down",
"-u, --up <dec> threshold up"
],
"usage": "data dirthreshold [-h] -d <dec> -u <dec>"
},
"data envelope": {
"command": "data envelope",
"description": "Create an square envelop of the samples",
"notes": [
"data envelop"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data envelop [-h]"
},
"data fsktonrz": {
"command": "data fsktonrz",
"description": "Convert fsk2 to nrz wave for alternate fsk demodulating (for weak fsk) Omitted values are autodetect instead",
"notes": [
"data fsktonrz",
"data fsktonrz -c 32 --low 8 --hi 10"
],
"offline": true,
"options": [
"-h, --help This help",
"-c, --clk <dec> clock",
"--low <dec> low field clock",
"--hi <dec> high field clock"
],
"usage": "data fsktonrz [-h] [-c <dec>] [--low <dec>] [--hi <dec>]"
},
"data getbitstream": {
"command": "data getbitstream",
"description": "Convert GraphBuffer's value accordingly - larger or equal to ONE becomes ONE - less than ONE becomes ZERO",
"notes": [
"data getbitstream"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data getbitstream [-h]"
},
"data grid": {
"command": "data grid",
"description": "This function overlay grid on graph plot window. use zero value to turn off either",
"notes": [
"data grid -> turn off",
"data grid -x 64 -y 50"
],
"offline": true,
"options": [
"-h, --help This help",
"-x <dec> plot grid X coord",
"-y <dec> plot grid Y coord"
],
"usage": "data grid [-h] [-x <dec>] [-y <dec>]"
},
"data hex2bin": {
"command": "data hex2bin",
"description": "This function converts hexadecimal to binary. It will ignore all non-hexadecimal characters but stop reading on whitespace",
"notes": [
"data hex2bin -d 01020304"
],
"offline": true,
"options": [
"-h, --help This help",
"-d, --data <hex> bytes to convert"
],
"usage": "data hex2bin [-h] [-d <hex>]"
},
"data hexsamples": {
"command": "data hexsamples",
"description": "Dump big buffer as hex bytes",
"notes": [
"data hexsamples -n 128 -> dumps 128 bytes from offset 0"
],
"offline": false,
"options": [
"-h, --help This help",
"-b, --breaks <dec> row break, def 16",
"-n <dec> num of bytes to download",
"-o, --offset <hex> offset in big buffer"
],
"usage": "data hexsamples [-h] [-b <dec>] [-n <dec>] [-o <hex>]"
},
"data hide": {
"command": "data hide",
"description": "Show graph window",
"notes": [
"data hide"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data hide [-h]"
},
"data hpf": {
"command": "data hpf",
"description": "Remove DC offset from trace. It should centralize around 0",
"notes": [
"data hpf"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data hpf [-h]"
},
"data iir": {
"command": "data iir",
"description": "Apply IIR buttersworth filter on plot data",
"notes": [
"data iir -n 2"
],
"offline": true,
"options": [
"-h, --help This help",
"-n <dec> factor n"
],
"usage": "data iir [-h] -n <dec>"
},
"data load": {
"command": "data load",
"description": "This command loads the contents of a pm3 file into graph window",
"notes": [
"data load -f myfilename"
],
"offline": true,
"options": [
"-h, --help This help",
"-f, --file <fn> file to load",
"-b, --bin binary file",
"-n, --no-fix Load data from file without any transformations"
],
"usage": "data load [-hbn] -f <fn>"
},
"data ltrim": {
"command": "data ltrim",
"description": "Trim samples from left of trace",
"notes": [
"data ltrim -i 300 -> keep 300 - end"
],
"offline": true,
"options": [
"-h, --help This help",
"-i, --idx <dec> from index to beginning trace"
],
"usage": "data ltrim [-h] -i <dec>"
},
"data manrawdecode": {
"command": "data manrawdecode",
"description": "Manchester decode binary stream in DemodBuffer Converts 10 and 01 and converts to 0 and 1 respectively - must have binary sequence in DemodBuffer (run `data rawdemod --ar` before)",
"notes": [
"data manrawdecode"
],
"offline": true,
"options": [
"-h, --help This help",
"-i, --inv invert output",
"--err <dec> set max errors tolerated (def 20)"
],
"usage": "data manrawdecode [-hi] [--err <dec>]"
},
"data modulation": {
"command": "data modulation",
"description": "search LF signal after clock and modulation",
"notes": [
"data modulation"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data modulation [-h]"
},
"data mtrim": {
"command": "data mtrim",
"description": "Trim out samples from the specified start to the specified end point",
"notes": [
"data mtrim -s 1000 -e 2000 -> keep between 1000 and 2000"
],
"offline": true,
"options": [
"-h, --help This help",
"-s, --start <dec> start point",
"-e, --end <dec> end point"
],
"usage": "data mtrim [-h] -s <dec> -e <dec>"
},
"data norm": {
"command": "data norm",
"description": "Normalize max/min to +/-128",
"notes": [
"data norm"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data norm [-h]"
},
"data num": {
"command": "data num",
"description": "Function takes a decimal or hexdecimal number and print it in decimal/hex/binary Will print message if number is a prime number",
"notes": [
"data num --dec 2023",
"data num --hex 0x1000"
],
"offline": true,
"options": [
"-h, --help This help",
"--dec <dec> decimal value",
"--hex <hex> hexadecimal value",
"--bin <bin> binary value",
"-i print inverted value"
],
"usage": "data num [-hi] [--dec <dec>] [--hex <hex>] [--bin <bin>]"
},
"data plot": {
"command": "data plot",
"description": "Show graph window hit 'h' in window for detail keystroke help available",
"notes": [
"data plot"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data plot [-h]"
},
"data print": {
"command": "data print",
"description": "Print the data in the DemodBuffer as hex or binary. Defaults to binary output",
"notes": [
"data print"
],
"offline": true,
"options": [
"-h, --help This help",
"-i, --inv invert DemodBuffer before printing",
"-o, --offset <dec> offset in # of bits",
"-s, --strip strip leading zeroes, i.e. set offset to first bit equal to one",
"-x, --hex output in hex (omit for binary output)"
],
"usage": "data print [-hisx] [-o <dec>]"
},
"data rawdemod": {
"command": "data rawdemod",
"description": "Demodulate the data in the GraphBuffer and output binary",
"notes": [
"data rawdemod --fs -> demod FSK - autodetect",
"data rawdemod --ab -> demod ASK/BIPHASE - autodetect",
"data rawdemod --am -> demod ASK/MANCHESTER - autodetect",
"data rawdemod --ar -> demod ASK/RAW - autodetect",
"data rawdemod --nr -> demod NRZ/DIRECT - autodetect",
"data rawdemod --p1 -> demod PSK1 - autodetect",
"data rawdemod --p2 -> demod PSK2 - autodetect"
],
"offline": true,
"options": [
"-h, --help This help",
"--ab ASK/Biphase demodulation",
"--am ASK/Manchester demodulation",
"--ar ASK/Raw demodulation",
"--fs FSK demodulation",
"--nr NRZ/Direct demodulation",
"--p1 PSK 1 demodulation",
"--p2 PSK 2 demodulation",
"<params> params for sub command"
],
"usage": "data rawdemod [-h] [--ab] [--am] [--ar] [--fs] [--nr] [--p1] [--p2] [<params>]..."
},
"data rtrim": {
"command": "data rtrim",
"description": "Trim samples from right of trace",
"notes": [
"data rtrim -i 4000 -> keep 0 - 4000"
],
"offline": true,
"options": [
"-h, --help This help",
"-i, --idx <dec> from index to end trace"
],
"usage": "data rtrim [-h] -i <dec>"
},
"data samples": {
"command": "data samples",
"description": "Get raw samples for graph window (GraphBuffer) from device. If 0, then get whole big buffer from device.",
"notes": [
"data samples",
"data samples -n 10000"
],
"offline": false,
"options": [
"-h, --help This help",
"-n <dec> num of samples (512 - 40000)",
"-v, --verbose verbose output"
],
"usage": "data samples [-hv] [-n <dec>]"
},
"data save": {
"command": "data save",
"description": "Save signal trace from graph window , i.e. the GraphBuffer This is a text file with number -127 to 127. With the option `w` you can save it as wave file Filename should be without file extension",
"notes": [
"data save -f myfilename -> save graph buffer to file",
"data save --wave -f myfilename -> save graph buffer to wave file"
],
"offline": true,
"options": [
"-h, --help This help",
"-w, --wave save as wave format (.wav)",
"-f, --file <fn w/o ext> save file name"
],
"usage": "data save [-hw] -f <fn w/o ext>"
},
"data setdebugmode": {
"command": "data setdebugmode",
"description": "Set debugging level on client side",
"notes": [
"data setdebugmode"
],
"offline": true,
"options": [
"-h, --help This help",
"-0 no debug messages",
"-1 debug",
"-2 verbose debugging"
],
"usage": "data setdebugmode [-h012]"
},
"data setgraphmarkers": {
"command": "data setgraphmarkers",
"description": "Set blue and orange marker in graph window",
"notes": [
"data setgraphmarkers -> turn off",
"data setgraphmarkers -a 64 -b 50"
],
"offline": true,
"options": [
"-h, --help This help",
"-a <dec> orange marker",
"-b <dec> blue marker"
],
"usage": "data setgraphmarkers [-h] [-a <dec>] [-b <dec>]"
},
"data shiftgraphzero": {
"command": "data shiftgraphzero",
"description": "Shift 0 for Graphed wave + or - shift value",
"notes": [
"data shiftgraphzero -n 10 -> shift 10 points",
"data shiftgraphzero -n -22 -> shift negative 22 points"
],
"offline": true,
"options": [
"-h, --help This help",
"-n <dec> shift + or -"
],
"usage": "data shiftgraphzero [-h] -n <dec>"
},
"data timescale": {
"command": "data timescale",
"description": "Set cursor display timescale. Setting the timescale makes the differential `dt` reading between the yellow and purple markers meaningful. once the timescale is set, the differential reading between brackets can become a time duration.",
"notes": [
"data timescale --sr 125 -u ms -> for LF sampled at 125 kHz. Reading will be in milliseconds",
"data timescale --sr 1.695 -u us -> for HF sampled at 16 * fc/128. Reading will be in microseconds",
"data timescale --sr 16 -u ETU -> for HF with 16 samples per ETU (fc/128). Reading will be in ETUs"
],
"offline": true,
"options": [
"-h, --help This help",
"--sr <float> sets timescale factor according to sampling rate",
"-u, --unit <string> time unit to display (max 10 chars)"
],
"usage": "data timescale [-h] --sr <float> [-u <string>]"
},
"data tune": {
"command": "data tune",
"description": "Measure tuning of device antenna. Results shown in graph window. This command doesn't actively tune your antennas, it's only informative by measuring voltage that the antennas will generate",
"notes": [
"data tune"
],
"offline": false,
"options": [
"-h, --help This help"
],
"usage": "data tune [-h]"
},
"data undecimate": {
"command": "data undecimate",
"description": "Performs un-decimation, by repeating each sample N times in the graphbuf",
"notes": [
"data undecimate",
"data undecimate -n 4"
],
"offline": true,
"options": [
"-h, --help This help",
"-n <dec> factor to repeat each sample (default 2)"
],
"usage": "data undecimate [-h] [-n <dec>]"
},
"data zerocrossings": {
"command": "data zerocrossings",
"description": "Count time between zero-crossings",
"notes": [
"data zerocrossings"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "data zerocrossings [-h]"
},
"emv challenge": {
"command": "emv challenge",
"description": "Executes Generate Challenge command. It returns 4 or 8-byte random number from card. Needs a EMV applet to be selected and GPO to be executed.",
"notes": [
"emv challenge -> get challenge",
"emv challenge -k -> get challenge, keep filled ON"
],
"offline": false,
"options": [
"-h, --help This help",
"-k, --keep Keep field ON for next command",
"-a, --apdu Show APDU requests and responses",
"-w, --wired Send data via contact (iso7816) interface. (def: Contactless interface)"
],
"usage": "emv challenge [-hkaw]"
},
"emv exec": {
"command": "emv exec",
"description": "Executes EMV contactless transaction",
"notes": [
"emv exec -sat -> select card, execute MSD transaction, show APDU and TLV",
"emv exec -satc -> select card, execute CDA transaction, show APDU and TLV"
],
"offline": false,
"options": [
"-h, --help This help",
"-s, --select Activate field and select card",
"-a, --apdu Show APDU requests and responses",
"-t, --tlv TLV decode results",
"-j, --jload Load transaction parameters from `emv_defparams.json` file",
"--force Force search AID. Search AID instead of execute PPSE",
"By default: Transaction type - MSD",
"-v, --qvsdc Transaction type - qVSDC or M/Chip",
"-c, --qvsdccda Transaction type - qVSDC or M/Chip plus CDA (SDAD generation)",
"-x, --vsdc Transaction type - VSDC. For test only. Not a standard behavior",
"-g, --acgpo VISA. generate AC from GPO",
"-w, --wired Send data via contact (iso7816) interface. (def: Contactless interface)"
],
"usage": "emv exec [-hsatjvcxgw] [--force] By default:"
},
"emv genac": {
"command": "emv genac",
"description": "Generate Application Cryptogram command. It returns data in TLV format. Needs a EMV applet to be selected and GPO to be executed.",
"notes": [
"emv genac -k 0102 -> generate AC with 2-byte CDOLdata and keep field ON after command",
"emv genac -t 01020304 -> generate AC with 4-byte CDOL data, show result in TLV",
"emv genac -Daac 01020304 -> generate AC with 4-byte CDOL data and terminal decision 'declined'",
"emv genac -pmt 9F 37 04 -> load params from file, make CDOL data from CDOL, generate AC with CDOL, show result in TLV"
],
"offline": false,
"options": [
"-h, --help This help",
"-k, --keep Keep field ON for next command",
"-c, --cda Executes CDA transaction. Needs to get SDAD in results.",
"-d, --decision <aac|tc|arqc> Terminal decision. aac - declined, tc - approved, arqc - online authorisation requested",
"-p, --params Load parameters from `emv_defparams.json` file for CDOLdata making from CDOL and parameters",
"-m, --make Make CDOLdata from CDOL (tag 8C and 8D) and parameters (def: use default parameters)",
"-a, --apdu Show APDU requests and responses",
"-t, --tlv TLV decode results of selected applets",
"-w, --wired Send data via contact (iso7816) interface. (def: Contactless interface)",
"<hex> CDOLdata/CDOL"
],
"usage": "emv genac [-hkcpmatw] [-d <aac|tc|arqc>] <hex> [<hex>]..."
},
"emv gpo": {
"command": "emv gpo",
"description": "Executes Get Processing Options command. It returns data in TLV format (0x77 - format2) or plain format (0x80 - format1). Needs a EMV applet to be selected.",
"notes": [
"emv gpo -k -> execute GPO",
"emv gpo -t 01020304 -> execute GPO with 4-byte PDOL data, show result in TLV",
"emv gpo -pmt 9F 37 04 -> load params from file, make PDOL data from PDOL, execute GPO with PDOL, show result in TLV"
],
"offline": false,
"options": [
"-h, --help This help",
"-k, --keep Keep field ON for next command",
"-p, --params Load parameters from `emv_defparams.json` file for PDOLdata making from PDOL and parameters",
"-m, --make Make PDOLdata from PDOL (tag 9F38) and parameters (def: uses default parameters)",
"-a, --apdu Show APDU requests and responses",
"-t, --tlv TLV decode results of selected applets",
"-w, --wired Send data via contact (iso7816) interface. (def: Contactless interface)",
"<hex> PDOLdata/PDOL"
],
"usage": "emv gpo [-hkpmatw] [<hex>]..."
},
"emv intauth": {
"command": "emv intauth",
"description": "Generate Internal Authenticate command. Usually needs 4-byte random number. It returns data in TLV format . Needs a EMV applet to be selected and GPO to be executed.",
"notes": [
"emv intauth -k 01020304 -> execute Internal Authenticate with 4-byte DDOLdata and keep field ON after command",
"emv intauth -t 01020304 -> execute Internal Authenticate with 4-byte DDOL data, show result in TLV",
"emv intauth -pmt 9F 37 04 -> load params from file, make DDOL data from DDOL, Internal Authenticate with DDOL, show result in TLV"
],
"offline": false,
"options": [
"-h, --help This help",
"-k, --keep Keep field ON for next command",
"-p, --params Load parameters from `emv_defparams.json` file for DDOLdata making from DDOL and parameters",
"-m, --make Make DDOLdata from DDOL (tag 9F49) and parameters (def: use default parameters)",
"-a, --apdu Show APDU requests and responses",
"-t, --tlv TLV decode results of selected applets",
"-w, --wired Send data via contact (iso7816) interface. (def: Contactless interface)",
"<hex> DDOLdata/DDOL"
],
"usage": "emv intauth [-hkpmatw] <hex> [<hex>]..."
},
"emv list": {
"command": "emv list",
"description": "Alias of `trace list -t 7816` with selected protocol data to annotate trace buffer You can load a trace from file (see `trace load -h`) or it be downloaded from device by default It accepts all other arguments of `trace list`. Note that some might not be relevant for this specific protocol",
"notes": [
"emv list --frame -> show frame delay times",
"emv list -1 -> use trace buffer"
],
"offline": true,
"options": [
"-h, --help This help",
"-1, --buffer use data from trace buffer",
"--frame show frame delay times",
"-c mark CRC bytes",
"-r show relative times (gap and duration)",
"-u display times in microseconds instead of clock cycles",
"-x show hexdump to convert to pcap(ng)",
"or to import into Wireshark using encapsulation type \"ISO 14443\"",
"-f, --file <fn> filename of dictionary"
],
"usage": "emv list [-h1crux] [--frame] [-f <fn>]"
},
"emv pse": {
"command": "emv pse",
"description": "Executes PSE/PPSE select command. It returns list of applet on the card:",
"notes": [
"emv pse -s1 -> select, get pse",
"emv pse -st2 -> select, get ppse, show result in TLV"
],
"offline": false,
"options": [
"-h, --help This help",
"-s, --select Activate field and select card",
"-k, --keep Keep field ON for next command",
"-1, --pse PSE (1PAY.SYS.DDF01) mode",
"-2, --ppse PPSE (2PAY.SYS.DDF01) mode (def)",
"-a, --apdu Show APDU requests and responses",
"-t, --tlv TLV decode results of selected applets",
"-w, --wired Send data via contact (iso7816) interface. (def: Contactless interface)"
],
"usage": "emv pse [-hsk12atw]"
},
"emv reader": {
"command": "emv reader",
"description": "Act as a EMV reader to identify tag. Look for EMV tags until Enter or the pm3 button is pressed In `verbose` mode it will also try to extract and decode the transaction logs stored on card in either channel.",
"notes": [
"emv reader",
"emv reader -v",
"emv reader -@ -> Continuous mode"
],
"offline": false,
"options": [
"-h, --help This help",
"-w, --wired Send data via contact (iso7816) interface. (def: Contactless interface)",
"-v, --verbose verbose",
"-@ continuous reader mode"
],
"usage": "emv reader [-hwv@]"
},
"emv readrec": {
"command": "emv readrec",
"description": "Executes Read Record command. It returns data in TLV format. Needs a bank applet to be selected and sometimes needs GPO to be executed.",
"notes": [
"emv readrec -k 0101 -> read file SFI=01, SFIrec=01",
"emv readrec -kt 0201 -> read file 0201 and show result in TLV"
],
"offline": false,
"options": [
"-h, --help This help",
"-k, --keep Keep field ON for next command",
"-a, --apdu Show APDU requests and responses",
"-t, --tlv TLV decode results of selected applets",
"-w, --wired Send data via contact (iso7816) interface. (def: Contactless interface)",
"<hex> <SFI 1 byte><SFIrecord 1 byte"
],
"usage": "emv readrec [-hkatw] <hex> [<hex>]..."
},
"emv roca": {
"command": "emv roca",
"description": "Tries to extract public keys and run the ROCA test against them.",
"notes": [
"emv roca -w -> select --CONTACT-- card and run test",
"emv roca -> select --CONTACTLESS-- card and run test"
],
"offline": false,
"options": [