Merge branch 'RfidResearchGroup:master' into master

This commit is contained in:
team-orangeBlue 2023-04-11 17:49:32 +03:00 committed by GitHub
commit 364c047503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 218 additions and 13361 deletions

23
.github/workflows/uniq.yaml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Check uniq keys
on:
push:
paths:
- 'client/dictionaries/**'
pull_request:
paths:
- 'client/dictionaries/**'
workflow_dispatch:
jobs:
check-unique:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: check unique keys in dic files
shell: bash
run: |
find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | grep -v '#' | sort | uniq -i -d -c | sort -n -r "
if [[ $(find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | grep -v '#' | sort | uniq -i -d -c | sort -n -r " | grep -v "./" | wc -l) -gt 0 ]]; then exit 1; fi

View file

@ -47,6 +47,7 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac
- Added `hf legic info` command for other sources (@0xdeb)
- Added `hf legic einfo` - views emulator menory (@0xdeb)
- Changed `hf legic view` - now also print the decoded info of the dump file (@0xdeb)
- Now `script run hf_mf_ultimatecard.lua -u` supports 10bytes UID (@alejandro12120)
## [Nitride.4.16191][2023-01-29]
- Changed `build_all_firmwares.sh` to fit GENERIC 256kb firmware images (@doegox)

View file

@ -241,9 +241,7 @@
50524f445543544944323046
504f57455252414e47455253
504f5745524c494654494e47
4e4554574f524b494e475045
4d4152494e414d4152494e41
4c454156454d45414c4f4e45
494445444556494345503054
4855414e474a494e31393837
4845415254425245414b4552
@ -372,7 +370,6 @@
563830393533303534343634
554e494e5354414c4c504552
544551554945524f4d554348
54454d5050415353574f5244
53545241544f564152495553
535441525453455256494345
534f4e595049435455524553
@ -503,7 +500,6 @@
51415a575358313233454443
513141325a33573453355836
5043524d43464e534f51572b
50415353574f524431323334
50414d454c41524146544552
4f5645525748454c4d494e47
4e594d50484554414d494e45
@ -549,14 +545,12 @@
44425a555253495445535558
434f4f4c45524d4153544552
434f4e46494755524154494f
434f4e46494755524154494f
434f4d4d554e49434154494f
434e464853514746484a4b4d
434c494547414c4941534553
434c41535344455343524950
434954594f46414e47454c53
4349414f4349414f31323334
4348524953544f5048455231
434845454b594d4f4e4b4559
42555454455253434f544348
4255544c4552414e44534c59
@ -627,7 +621,6 @@
535353535353535353535353
5350494445524d414e313233
534f53434136363631323534
534f4e594552494353534f4e
534f4c444154454e4b4f3230
5349474e4154555245363733
53455645524f4456494e534b
@ -653,13 +646,11 @@
51415a575358313233313233
51415a31323351415a313233
514138393136383230313233
513157324533523454355936
513141315a31573253325832
505345545550494e49545245
50524f4752414d4d41424c45
505245434f4d50494c494e47
504c484644434e4445514e54
504c415953544154494f4e33
50485a544341363346395a55
504554524f5a41564f44534b
504349494445304348414e4e
@ -670,7 +661,6 @@
4e5552524547554c4c453935
4e4f424f44594e4f424f4459
4e494748545354414c4b4552
4d534f52434c4f4c45444252
4d534a45544f4c4544423430
4d4f544f524f4c4131323334
4d4d4d4d4d4d4d4d4d4d4d4d
@ -702,7 +692,6 @@
4a4156415849534856494c49
4a414e45544a41434b534f4e
4950574e524f42454e313233
494e54454c4c4947454e4345
494e5354414c4c5045525349
494e495449414c495a415449
494c4f5645594f55504b4552
@ -743,7 +732,6 @@
44594e414d49435550444154
4452495645525349474e494e
445245524847454547454852
444b464c425642484a445946
4449534b5354333132303032
44464b54594e425931393836
444644444446343546444748
@ -872,7 +860,6 @@
54494d454b494c4c45525353
535645544c414e4131393834
535645544c414e4131393830
53555045524e41545552414c
53555045524d414e32303130
53554d455254494d45313137
535548313538344453574b39
@ -934,13 +921,11 @@
515745313233343536373839
515741535a58313233343536
5155455354504953544f4c53
51415a575358454443313233
51415a575358434445564652
513151325133513151325133
505946565459424e4a434e4d
505552455246353435343534
50524f53544f595041524f4c
50524f46455353494f4e414c
505249564554505249564554
505249564154454a41594c41
504f4f504945425241494e53
@ -949,7 +934,6 @@
504f4c494e41504f4c494e41
50485a5635525446504b5743
50484f544f47524150484552
5048494c4144454c50484941
504159434f4d303133303032
50415353574f524432303039
50415353574f524431393831
@ -1063,7 +1047,6 @@
4742504c54574742504c5457
47414c415441534152415932
465955544b42594632303037
46594e465946594648424445
46594c485451353535373236
4652494544434849434b454e
464f554e5441494e48454144
@ -1071,7 +1054,6 @@
464c4154524f4e4637323042
464c4154524f4e4637303042
464c414d455448524f574552
46494e414c46414e54415359
46474a52464b42474e425246
4647484a524342564657425a
464544434241414243444546
@ -1100,7 +1082,6 @@
444f4954594f555253454c46
444f44474543554d4d494e53
444e413132335a4542524131
444b464c425642484a444258
444b464c4256424831393838
444a444648454b424e434743
44494d4144494d4144494d41
@ -1124,7 +1105,6 @@
435553544f4d4d4152534841
435448555451534552474559
435241534833383233373736
434f52504552464d4f4e5359
434f4f4c4552424c494b3536
434f4e46494757495a415244
434f4d4d4f4e5745414c5448
@ -1133,7 +1113,6 @@
434e48544b4d5942524a4446
4348524953544f4646455231
4348495945554d494e48454d
434845535445524649454c44
4347464342554a43474a4c42
434552464345524643455246
43414c434156454343484941
@ -1211,7 +1190,6 @@
353535353535353535353535
353335313438333236313539
353031383737353031383737
34524656355447423659484e
343630353730383835333431
343536383532343536383532
343530353132343530383234
@ -1231,7 +1209,6 @@
32323850415049524f53494d
323031313230313132303131
3151574532415344335a5843
3151415a3257535833454443
31513241335a345735533658
314752495a5a4c5932303030
3147524545444953474f4f44
@ -1250,7 +1227,6 @@
313539333537303530353035
3133363636313347524f4d46
313234353738393836353332
3132335157454153445a5843
31323351415a343536575358
31323347454e495953333231
313233414243313233414243
@ -1281,12 +1257,10 @@
5a5843565a5843565a584356
5a584356424e5a584356424e
5a584356424e4d3132333435
5a584356424e4d3132333435
5a5843445341515745524656
5a5843445341515745333231
5a5843313233415344343536
5a5834353438383845424159
5a544e33544f55524e455931
5a4b454e4d49545854564e53
5a455a494d415a455a494d41
5a43465653515248454e4a51
@ -1316,7 +1290,6 @@
5941524f534c415632303131
594150494c4f4c494b313535
59414c55424c555345425941
593654355234453357325131
59305338344a4b58525a5451
585949565a4c4f4d41455348
5858584d4953544552585858
@ -1347,7 +1320,6 @@
56544e465641544e46564259
564f564144494d4132383139
564c454f4644484748585850
564c4144494d49524f564e41
564c4144494d495232303131
564b4f4e54414b5445313131
564a514e544b54414a593533
@ -1415,7 +1387,6 @@
54484543484f53454e4f4e45
544841495345555445414d4f
544553544f535445524f4e45
544551554945524f4d554348
54454c45564f434f4d49474f
544543484e4f4c4f47494553
544455545942513132333435
@ -1435,7 +1406,6 @@
535550455243484152474544
535452554354505446434f52
535452415742455252593132
53545241544f434153544552
535452414e47455239303030
53544f4e45434f4c44333136
53544c4b50534b33554f4349
@ -1449,9 +1419,6 @@
534f554e44424c4153544552
534f52424f4e4e4532303131
534f504849454b495454454e
534f4e594552494353534f4e
534f4e594552494353534f4e
534f4e4e454e53434845494e
534f4e493433363334323535
534f4d4553574f5244313233
534f4d4550415353574f5244
@ -1547,11 +1514,9 @@
5157504f41534c4b5a584d4e
5157455254594f4e4c494e45
515745525459313530323730
515745525459313233343536
515745515745515745313233
515745515745313233313233
515745504f49313233303938
5157454153445a5843313233
515741535a58585a53415751
5155414e5434333032303030
515541445249464f474c494f
@ -1572,7 +1537,6 @@
513839353030323832323934
513830363639373037313637
51375458464f464758305142
513157324533523454355936
513157324533413153324433
513157314531523154315931
513151315131513151315131
@ -1617,7 +1581,6 @@
50415353574f524432303033
50415353574f524431393936
50415353574f524431393932
50415353574f524431393932
504152414d4f524531323334
504152414449534552494f53
504150494e41444f43484b41
@ -1643,7 +1606,6 @@
4f4c4f4c4f54524f4c4f4c4f
4f4c45473132333435363738
4f444e4f4b4c4153534e494b
4e5554544552544f4f4c5331
4e544b54414a593132343135
4e4f564f4752414432303131
4e4f5649454d425245323031
@ -1672,7 +1634,6 @@
4d594c454e454641524d4552
4d5939353038363639323532
4d555354414e474754353030
4d555354414e474754353030
4d5553494349534d594c4946
4d554c544946554e4354494f
4d4f554e5441494e42494b45
@ -1703,7 +1664,6 @@
4d4153545552424143495941
4d41535445524b4559313233
4d4153544552424c41535445
4d415353494d494c49414e4f
4d41534c454e4e494b4f5641
4d41524d454c41444f344b41
4d41524c4f4e4252414e444f
@ -2252,13 +2212,10 @@
313238343132383431323030
313234353738323335363839
313234353738313234353738
3132335157454153445a5843
3132335157454153445a5843
313233515745313233415344
31323351415a313233575358
313233455751313233455751
313233454443585a41515753
313233343536515745525459
313233343536414141414141
313233343536375341534841
3132333435363738564f5641
@ -2319,10 +2276,7 @@
5a5843564644534151574552
5a584356424e4e425643585a
5a584356424e4d5157415341
5a584356424e313233343536
5a5843415344515745333231
5a5843415344515745333231
5a5843415344515745313233
5a5843415344515745313131
5a5843415344313233515745
5a5843393738353039303039
@ -2365,10 +2319,8 @@
5a4152494e41455231333538
5a4152454348494531393638
5a4152415a415a4152415a41
5a4151585357434445564652
5a4151585357313233343536
5a415157535858535751415a
5a4151315853573243444533
5a4151314d4a553756465234
5a414c494e415a414c494e41
5a414941534f4c4e43453836
@ -2415,7 +2367,6 @@
594b414e464c435141444855
594a594c54524d4b50324350
594a56544849524a4b423232
594a4453514746484a4b4d31
594a4453515f4746484a4b4d
594a444a5854485246434352
594a444a484a434342514352
@ -2481,7 +2432,6 @@
57554c465641524c4f4b4131
57535852465659484e373737
575358454443524656544742
5753345a564d383556535551
575249544552535041434531
57524553544c494e47313233
574f57303731373839373838
@ -2538,7 +2488,6 @@
57414c54455257414c544552
57414c4c494e47544f4e3434
57414c4b494554414c4b4945
57414954414e44424c454544
5741434854574f4f52443132
573931343033393135363057
565731373432565731373432
@ -2601,7 +2550,6 @@
56494b544f52494131393933
56494b544f52323030383038
56494b544f52303138343230
56494b4156494b4156494b41
56494b4156494b4131393934
56494b413139393656494b41
56494b413135303331393936
@ -2659,7 +2607,6 @@
564552494649434154494f4e
5645524554454e4e494b4f56
56454e474c4f56534b415941
56454c4f4349524150544f52
564548464e4e423132333435
564548454645434f4d495449
56445744514b5147355a4e46
@ -2712,7 +2659,6 @@
554e49564552534954415249
554e4956455253414c373737
554e495445444b494e444f4d
554e494e5354414c4c53514c
554e44455254414b45523230
554e44455254414b45523135
554e44455247524f554e4431
@ -2730,7 +2676,6 @@
554455424a465242505a4257
554452454e414c494e453230
554446484c54514352465a35
554348494841534153554b45
554348494841495441434849
554259425a4e454b4b425946
55425052514d534933524452
@ -2850,7 +2795,6 @@
54424a485642373856523834
54415459414e413132333435
5441545549524f565348494b
5441534b464f524345313431
5441524153414b4134373437
544152414b4153484b415941
54414e4e454e4241554d3037
@ -3050,7 +2994,6 @@
53494c564552464953483830
53494c564552434841495238
53494c564130353037313939
53494c4d4152494c4c494f4e
53494c4c5942464554495348
53494c49434f4e42524f5354
53494c454e544b494c4c4552
@ -3079,7 +3022,6 @@
534845524c4f434b32323142
534843595851565450444c54
534841574e414e444e415445
534841525053484f4f544552
534841524f395441594c4f52
534841524f365441594c4f52
534841504553484946544552
@ -3139,7 +3081,6 @@
5345434f4e445345434f4e44
53454241535449414e313938
53454241535449414e313233
53454241535449414e313233
53454241535449414e303037
5345415045434b5348524950
534541435343494c414e5931
@ -3172,7 +3113,6 @@
534155484152443131464f4f
534154484553484b554d4152
534154414e41533639303931
534153554b45554348494841
5341534b415443484557414e
534153484157574531393937
53415348414e454348414556
@ -3183,7 +3123,6 @@
53415241414c564553313233
5341505048495245424c5545
53414e54414352555a323031
53414e4652414e434953434f
53414e454b33303536393839
53414e4452494e4142415241
53414e444545503132333435
@ -3388,7 +3327,6 @@
515745525459553132333435
5157455254594e425643585a
5157455254594d414e49414b
515745525459415344464748
515745525459373834353132
515745525459323030393931
515745525459315132573345
@ -3409,7 +3347,6 @@
515745415344415344515745
515745373839515745373839
51574531415344325a584333
515741535a58455244464356
515734383135313632333432
515733345254363755493930
515655555351414451493236
@ -3434,7 +3371,6 @@
51415a5a415151415a5a4151
51415a585357313233313233
51415a575358515745525459
51415a575358454443524656
51415a57535845444351415a
51415a575358454443373737
51415a575358454443313539
@ -3458,8 +3394,6 @@
513839323134303931343137
513757384539413453354436
513159365732543545335234
513157324533523454355936
513157324533523454355936
513157324533523433343532
513157324533345235543659
513157324533313233515745
@ -3472,7 +3406,6 @@
505759454f39385a53463452
50555441515545504152494c
50555353594d554e43484552
50555353594d4f4e53544552
5055535359434154444f4c4c
505553535941535354495453
505552504c4550454f504c45
@ -3482,7 +3415,6 @@
50554d5045524e49434b454c
50554c4c41504f494b413132
505546595354494b32353137
505459424e58545647424a59
50544b54594a554b4650465a
50544b5459465a4e48464446
50535943484f4c4f47495354
@ -3768,7 +3700,6 @@
4e4947485450524f574c4552
4e494748544d415245313233
4e4947485443524f574c4552
4e49474854435241574c4552
4e4947474552464147474f54
4e49455749454d4a414b4945
4e49454c534953434f4f4c31
@ -3817,7 +3748,6 @@
4e454944453036313137322e
4e45485256545942434e4659
4e45444c4f47333331393936
4e4543524f4e4f4d49434f4e
4e4458383736423346354748
4e4256464e42313233343536
4e425133555535534d584947
@ -3894,9 +3824,6 @@
4d5057504a5155394a45564b
4d50474f454c575958595136
4d4f544f5253434f4f544552
4d4f544845524655434b4552
4d4f544845524655434b4552
4d4f544845524655434b4552
4d4f53484154494e4b4f5233
4d4f53434f574d4f53434f57
4d4f524e494e47474c4f5259
@ -3940,7 +3867,6 @@
4d4952414e44414d45524945
4d494e5954414e4144594139
4d494e494d414c495354494b
4d494e454352414654313233
4d494e454352414654303037
4d494e44465245414b313233
4d494c594153494b32303036
@ -4045,7 +3971,6 @@
4d41524959414d4152495941
4d41524954494d5553313233
4d4152494e45434f52505332
4d4152494e414d4152494e41
4d4152494e41323030353931
4d4152494e41313331313933
4d4152494e41313233343536
@ -4114,7 +4039,6 @@
4d32304d32304d32304d3230
4d3141324b33533453355336
4d3141324b33533449354d36
4d3141324b33533449354d36
4d314131523149314e314131
4d31355331354d3134453137
4d3131313232323333334141
@ -4164,7 +4088,6 @@
4c4f56313233343536373839
4c4f554748424f524f554748
4c4f535450524f5048455453
4c4f535450524f5048455453
4c4f5354494e414c41534b41
4c4f53454b4f4b4f544f5345
4c4f524e45594c4f524e4559
@ -4183,7 +4106,6 @@
4c4f4c494b554c4131393938
4c4f4c353332393535363935
4c4f4c3132334c4f4c343536
4c4f4c313233343536373839
4c4f4b4f4d4f544956313233
4c4f4b4f494c4f5645594f55
4c4f4b494c4f4c3132333435
@ -4196,7 +4118,6 @@
4c4a524e4a484c4250544b4d
4c4a524e4a48373832323835
4c4a4b554a4748454c595351
4c4a4b554a4748454c595351
4c4a434e454750465248534e
4c49584c49584c49584c4958
4c49565245505241564f4152
@ -4477,7 +4398,6 @@
4a56514f555a53444232534e
4a55535450415353574f5244
4a555354494e4a555354494e
4a555354494e424945424552
4a5550494c455250494e4b45
4a554e4e452e57494c534f4e
4a554e494f52464c4f524553
@ -4560,7 +4480,6 @@
4a4152454447414d45533232
4a414e4147414e414d414e41
4a414d455343484146464559
4a414d4553424f4e44303037
4a414d313233343536373839
4a414c564159555649484152
4a41434f424f424f32313132
@ -4735,7 +4654,6 @@
484950484f50484950484f50
48494f52544844414d49454e
48494e445155415254455253
48494c544f4e505446434f52
48494c4c544f503335323437
48494c464947455232303030
48494c444547415244313233
@ -4812,7 +4730,6 @@
47544e484a435a594a444258
47544d56504a56553732445a
47544854524854434e4a5237
475448444a47484258425946
475444425746564652434256
475441313232393633303034
475352425649454837414d4a
@ -5069,7 +4986,6 @@
464b54524346594c484a4459
464b54524346594c48373737
464b54524346594c48313233
464b54524346594c48313233
464b544946474a474a444258
464b4b4a4c534a594b465159
464b42594a58524631393934
@ -5312,7 +5228,6 @@
444a4d415448414641434b41
444a4d41524b555348313435
444a4b554a5548464c313235
444a4b554a5548464c313235
444a4b4a584654444352465a
444a4b4a4c464843524a554a
444a44463130303531393830
@ -5497,7 +5412,6 @@
435452465059535147454743
435450455445525332303030
43544855545444464b545946
435448555451435448555451
435448545546435448545546
435448545546373635343332
4354484e424142524657425a
@ -5694,7 +5608,6 @@
42595742524b4a47544c425a
4259524154494e4f31393932
42594e544844545957425a39
425658515458424d335a4d56
425647484a4442504657425a
42555a5a534841434b4c4552
42555454455246494e474552
@ -5937,15 +5850,12 @@
4153444647485a584356424e
415344464748515745525459
4153444647484a4b4c51415a
4153444647484a4b4c313233
415344464748415344464748
415344313233515745343536
415344313233343536373839
41534153494e473230303030
41534153494e313939383732
415341534153415341534153
4153324d3033444f54313833
4153324d3033444f54313833
415331325157313241533333
415331324446333447483536
415331323334353637383930
@ -5987,7 +5897,6 @@
41504f4c494e415249413838
41503532524931374c413537
414e545249504f5030373233
414e54515545454e32303130
414e544f4e494f4341524c4f
414e544f4e414e544f4e4f56
414e544943495041544f5259
@ -6007,7 +5916,6 @@
414e4a41494c4f5645594f55
414e494e4156494741544f52
414e494d45464f5245564552
414e494d45464f5245564552
414e494d4546414e30393435
414e494d45314d414e474131
414e494d414c524545464552
@ -6050,7 +5958,6 @@
414e44524549474152434941
414e44524542524947414445
414e44524541313930393035
414e4445524c455932303131
414e4349454e543445564552
414e41544f4c494556494348
414e41535441534959413138
@ -6868,12 +6775,9 @@
3151574552545955494f5035
3151415a5843444533325753
3151415a5345444346544742
3151415a3257535833454443
3151415a3257535833454443
3151415a3233574553445843
315141535732334544465234
315135413257365333453444
315132573345345235543659
315132573345345232303030
315132573345334532573151
315132573345315132573345
@ -7114,7 +7018,6 @@
313233353738393531323351
313233353332363033323135
313233345245575131323334
313233345157455241534446
313233344153444631323334
313233343559464c4a544b4a
3132333435564954414c494b
@ -7127,22 +7030,18 @@
313233343541313233343541
313233343536564943544f52
31323334353653455247494f
313233343536515745525459
313233343536515745415344
31323334353651415a575358
31323334353651415a575358
3132333435364d4152494e41
3132333435364c454731304e
313233343536393837363534
313233343536373854455354
31323334353637384c4f5645
313233343536373841424344
3132333435363738395a5843
313233343536373839565656
313233343536373839535353
313233343536373839525553
313233343536373839524f44
313233343536373839515745
313233343536373839515345
313233343536373839504f50
3132333435363738394f4c41
@ -7159,10 +7058,8 @@
313233343536373839454c49
313233343536373839424f53
313233343536373839424d57
313233343536373839415344
313233343536373839415254
313233343536373839414c45
313233343536373839414243
313233343536373839393939
313233343536373839393531
313233343536373839373839
@ -7350,7 +7247,6 @@
5a5a5a5a4d504f5254455239
5a5a5a5a4141313130393939
5a5a5a5a3231303831393933
5a5a5a585858434343565656
5a5a5a585858434343313233
5a5a5a585858434343313131
5a5a5a583039303131393937
@ -7368,7 +7264,6 @@
5a5a5a3132335a5a5a313233
5a5a5a313233343536373839
5a5a5a5f3132333433343132
5a5a5a3131315a5a5a323232
5a5a5a3131315a5a5a313131
5a5a5a303554414241444147
5a5a5a303036383136585858
@ -7522,7 +7417,6 @@
5a584356424e4d4153313233
5a584356424e4d4131393736
5a584356424e4d3938373635
5a584356424e4d3938373635
5a584356424e4d3737374552
5a584356424e4d3535353535
5a584356424e4d3534363738
@ -7530,7 +7424,6 @@
5a584356424e4d3332303236
5a584356424e4d3239303036
5a584356424e4d3132333639
5a584356424e4d3132333435
5a584356424e4d3131313131
5a584356424e4d3038363432
5a584356424e4d3030303030
@ -7560,8 +7453,6 @@
5a5843464953484b415a5843
5a5843464748313533393537
5a58434453415a5843445341
5a5843445341515745333231
5a5843445341515745333231
5a584344534141534443585a
5a584343585a5a5a5a565656
5a584343585a5a584343585a
@ -7572,7 +7463,6 @@
5a5843415344515745525459
5a5843415344515745524656
5a5843415344515745373737
5a5843415344515745313233
5a5843415344515745313133
5a5843415344465157455254
5a584339383733323143585a
@ -7597,7 +7487,6 @@
5a5841535157313243444533
5a5841535157313234353738
5a5841535157313233343536
5a5841535157313233343536
5a58414e355a585045384351
5a5838393232363430373537
5a5838373635343332315a58
@ -8870,18 +8759,14 @@
5a41515a4151313233333231
5a41515a4151313233313233
5a4151585357454443313233
5a4151585357434445564652
5a4151585357434445524656
5a4151585357434445373839
5a4151585357434445333231
5a4151585357434445313233
5a4151585357313539333537
5a41515753585a4151575358
5a4151575358585357454443
5a4151575358515741535a58
5a4151575358434649463133
5a4151575358434445373737
5a4151575358434445333231
5a4151575358434445303039
5a4151575358383836303932
5a4151575358313938373133
@ -8897,12 +8782,9 @@
5a4151385853573543444533
5a415134373132353351415a
5a4151315853573247313233
5a4151315853573243444533
5a4151315853573233454443
5a4151314057535843444533
5a415131343751415a373431
5a4151313257535843444533
5a4151313257535833454443
5a41513132335a4151333231
5a41513132335a4151313233
5a4151313233585357343536
@ -9742,7 +9624,6 @@
5954594d5246333636323735
5954594a4856464b4d595351
5954594a4856464b4d59465a
5954594a4856464b4d59465a
595459464f4e4f4641474f57
595459464442434e4d363636
59545944595641434957494e
@ -9854,7 +9735,6 @@
59544454434e464631313036
595444504b4a564654494d43
595444504b46565344464e4d
595444504b46565344464e4d
595444484a4b4a55425a3734
595444464b5a4952464b4a4b
59544443545647484244544e
@ -10022,7 +9902,6 @@
594f5741524d414348494e45
594f56454e544f3838303830
594f55594f55594f55594f55
594f55594f55594f55594f55
594f55594f55313539333537
594f555849414f444553494b
594f55574f4e544b4e4f5732
@ -10044,7 +9923,6 @@
594f55533235303331363131
594f55525448454f4e453130
594f555250415353574f5244
594f555250415353574f5244
594f55524f55545349444552
594f55524e414e5344454144
594f55524e414d4548455245
@ -10368,7 +10246,6 @@
594a4453514746484a4b4d35
594a4453514746484a4b4d32
594a4453514746484a4b4d30
594a4453515f4746484a4b4d
594a4453514345594c53484d
594a445351334746484a4b4d
594a445351324746484a4b4d
@ -10695,7 +10572,6 @@
5946434e5a434a4b59575432
5946434e5a43454754483232
5946434e5a43424446544446
5946434e5a43424446544446
5946434e5a4256424b545946
5946434e5a5f425f56424946
5946434e5a4246594c485451
@ -11187,7 +11063,6 @@
5941524f534c415631393934
5941524f534c415631393933
5941524f534c415631393931
5941524f534c415631393931
5941524f534c415631393930
5941524f534c415631343036
5941524f53485f54414e5941
@ -11495,7 +11370,6 @@
593730473733493933443939
5936575658384c5756545a52
5936554e353035453749564e
593654355234453357325131
593654355234345235543659
593646595044305831474e56
593645484953545041434b4a
@ -11540,7 +11414,6 @@
59315356394b4d4548585437
5931464a3937464a31363947
59314232523342344e354636
59314232523342344e354636
593141374e30413959414e41
59313937413538385239304f
5931354b3236523037443034
@ -11608,7 +11481,6 @@
5858585a494e415858583731
585858595959555555363636
585858585858595959595959
585858585858585858585858
585858585858585858585853
585858585858585858583331
585858585858363636363636
@ -11869,7 +11741,6 @@
5850592434415347544d5935
585056474c4d4a594b49344d
5850534c4d33544f41395751
5850534c4d33544f41395751
585052535353343332313635
5850524553534d5553494331
585052455353353133303237
@ -12492,7 +12363,6 @@
57575842464643384f425250
575757575757595959595959
575757575757585858585858
575757575757575757575757
575757575757575757573535
575757575757575757573130
575757575757575757515341
@ -13260,7 +13130,6 @@
57494e444f57535a4947454e
57494e444f57535850535035
57494e444f57532e57494e45
57494e444f57535649535441
57494e444f57532e4d495343
57494e444f4d413434394850
57494e444f4d303130313830
@ -13562,7 +13431,6 @@
574849544556495045523238
574849544554524146464943
574849544554494745525331
574849544553545249504553
574849544553545249504537
574849544553544f4e453331
5748495445534f5832303131
@ -13573,7 +13441,6 @@
57484954452d524f42494e53
5748495445524156454e3833
574849544552414242495441
5748495445504f5745523838
5748495445504f5745523636
5748495445504f5745523131
5748495445504f4e59313937
@ -13823,7 +13690,6 @@
574552543130303731393930
574552534941544552313636
574552534446584356313233
574552534446584356313233
574552534143484939313039
574552524557574552524557
574552524557373431313437
@ -14075,7 +13941,6 @@
57454152455448454d4f4453
5745415245544845424f5247
574541524554484542455354
574541524554484542455354
5745415245534f4349414c31
5745415245504f5745523935
57454152454d415354455253
@ -14318,7 +14183,6 @@
574152494f344c4946455f5f
574152494454454c45434f4d
57415248414d4d4552363636
57415248414d4d455234304b
57415248414d4d4552313233
57415248414d455238393238
574152465245414b32353238
@ -14484,7 +14348,6 @@
57414a414a55584f44594241
57414a24354439345052585a
574149545245535332323838
57414954414e44424c454544
574149444552363534333231
574149414e41454849383038
574148595a494759574f4341
@ -15324,7 +15187,6 @@
564f4c4c455942414c4c3736
564f4c4c455942414c4c3138
564f4c4c455942414c4c3133
564f4c4c455942414c4c3133
564f4c4c455942414c4c3131
564f4c4c455354494546454c
564f4c4b535741474f4e3132
@ -15566,7 +15428,6 @@
564c414449534c4156323932
564c414449534c4156323339
564c414449534c4156313233
564c414449534c4156313233
564c414449534c4156313031
564c414449534c41562d3037
564c41444950494e41313233
@ -15593,7 +15454,6 @@
564c4144494d495232333136
564c4144494d495232325246
564c4144494d495232303132
564c4144494d495232303132
564c4144494d495232303130
564c4144494d495232303038
564c4144494d495232303037
@ -15606,13 +15466,10 @@
564c4144494d495231393933
564c4144494d495231393932
564c4144494d495231393837
564c4144494d495231393837
564c4144494d495231393835
564c4144494d495231393830
564c4144494d495231393830
564c4144494d495231393737
564c4144494d495231393735
564c4144494d495231393734
564c4144494d495231393732
564c4144494d495231393638
564c4144494d495231393634
@ -15778,7 +15635,6 @@
564b4f4e54414b5445383930
564b4f4e54414b5445373737
564b4f4e54414b5445343836
564b4f4e54414b5445313233
564b4f4e54414b5445313035
564b4f4e54414b5445303031
564b4f4e54414b5445212121

View file

@ -1,6 +1,5 @@
504f4c4e495950495a44454330323131
3151415a325753583345444334524656
504f4c4e495950495a44454330323131
4c48424a4b4a55425a32393537373034
51315732453352345435593655374938
3151415a585357323345444356465234
@ -98,7 +97,6 @@
51513131575732324545333352523434
2151415a585357322345444356465234
51415a57535845444352465654474259
504f4c4e495950495a44454331313032
504152415348413131555641524f5641
4f50455a4153534f4349415445534c42
4e495353414e534b594c494e45475452
@ -274,7 +272,6 @@
51415a57535845444331323334353637
51414544525739373037313334363235
513554584c485738535758545a564b4c
51315732453352345435593655374938
51315131513151315131513151315131
50594d4350503034444f4f3551493254
50524f4752455353495645484f555345
@ -505,7 +502,6 @@
42414749524f56313530313930313233
415a5358444346564742484e4a4d4b4c
415353484f4c4543414e43454c4c4544
4153444647484a4b4c5a584356424e4d
41534446474831323334355157455254
41534446474830393837363534333231
4150504c4553414e4442414e414e4153
@ -682,7 +678,6 @@
5a5a3534333232383039373132335a5a
5a59585756555453535455565758595a
5a59544454485945434d47484a4f4651
5a59544454485945434d47484a4f4651
5a59474d394d3750414549565a46534f
5a59464e313939394148464c52425946
5a59463232373139393243544b545946
@ -699,7 +694,6 @@
5a584356424e4d315a584356424e4d32
5a584356424e4d313437383532333639
5a584356424e4d3132333635344c4b4a
5a584356424e4d313233343536373839
5a584356424e31323334353637383930
5a58435642313233343555544b54594c
5a584356415344465157455231323334

View file

@ -276,6 +276,10 @@ AAFB06045877
# CleverFit
A05DBD98E0FC
#
# GoFit
AA4DDA458EBB
EAB8066C7479
#
# Hotel KeyCard
D3B595E9DD63
AFBECD121004
@ -431,6 +435,78 @@ C52876869800
5145C34DBA19
25352912CD8D
81B20C274C3F
00B70875AF1D
04B787B2F3A5
05412723F1B6
05C301C8795A
066F5AF3CCEE
0A1B6C50E04E
0AD0956DF6EE
0AD6B7E37183
0F3A4D48757B
1417E5671417
18AB07270506
18E887D625B4
1ABC15934F5A
1AF66F83F5BE
260480290483
2900AAC52BC3
2910AFE15C99
374521A38BCC
3A4C47757B07
3A524B7A7B37
3C4ABB877EAF
3F3A534B7B7B
4B787B273A50
4B92DF1BF25D
4F0E4AE8051A
514B797B2F3A
529CF51F05C5
52B26C199862
57A18BFEC381
5A7D87876EA8
64CBADC7A313
65B6C3200736
67B1B3A4E497
6B0454D5D3C3
6B3B7AF45777
6C273F431564
702C1BF025DD
738385948494
76E450094393
777B1F3A4F4A
7B173A4E4976
81504133B13C
826576A1AB68
8A55194F6587
8DFACF11E778
8FD6D76742DC
9AFEE1F65742
9D56D83658AC
9FAC23197904
A1AB3A08712C
A514B797B373
A58AB5619631
A5BB18152EF1
A777B233A4F4
AB19BC885A29
AB91BDA25F00
AE98BA1E6F2C
B133A4D48757
B3A4C47757B0
B6803136F5AF
B793ADA6DB0C
B95BFDEBA7E4
C0AA2BBD27CD
C27F5C1A9C2B
C9BE49675FE4
CCCE24102003
CDE668FDCDBA
D23A31A4AAB9
DEDD7688BC38
E9AE90885C39
F0A3C5182007
F3A524B7A7B3
#
# Data from mall
# playland balikesir
@ -2023,11 +2099,9 @@ C49DAE1C6049
3E173F64C01C
C670A9AD6066
#
# 1k - the industrialist
2158E314C3DF
#
# 1k - waldorf astoria
011C6CF459E8
#
# Food GEM
6686FADE5566
#
# Data from Discord, French pool
9B7C25052FC3
494446555455

View file

@ -39,7 +39,7 @@ example = [[
]]..ansicolors.yellow..[[script run hf_mf_ultimatecard -k ffffffff -w 1]]..ansicolors.reset..[[
-- Wipe tag, turn into NTAG215, set sig, version, NTAG pwd/pak, and OTP.
]]..ansicolors.yellow..[[script run hf_mf_ultimatecard -w 1 -t 15 -u 04112233445566 -s 112233445566778899001122334455667788990011223344556677 -p FFFFFFFF -a 8080 -o 11111111]]..ansicolors.reset..[[
]]..ansicolors.yellow..[[script run hf_mf_ultimatecard -w 1 -t 18 -u 04112233445566 -s 112233445566778899001122334455667788990011223344556677 -p FFFFFFFF -a 8080 -o 11111111]]..ansicolors.reset..[[
]]
usage = [[
@ -48,19 +48,22 @@ script run hf_mf_ultimatecard -h -k <passwd> -c -w <type> -u <uid> -t <type> -p
arguments = [[
-h this help
-c read magic configuration
-u UID (8-14 hexsymbols), set UID on tag
-u UID (8-20 hexsymbols), set UID on tag
-t tag type to impersonate
1 = Mifare Mini S20 4-byte 12 = NTAG 210
2 = Mifare Mini S20 7-byte 13 = NTAG 212
3 = Mifare 1k S50 4-byte 14 = NTAG 213
4 = Mifare 1k S50 7-byte 15 = NTAG 215
5 = Mifare 4k S70 4-byte 16 = NTAG 216
6 = Mifare 4k S70 7-byte 17 = NTAG I2C 1K
*** 7 = UL - NOT WORKING FULLY 18 = NTAG I2C 2K
*** 8 = UL-C - NOT WORKING FULLY 19 = NTAG I2C 1K PLUS
9 = UL EV1 48b 20 = NTAG I2C 2K PLUS
10 = UL EV1 128b 21 = NTAG 213F
*** 11 = UL Plus - NOT WORKING YET 22 = NTAG 216F
1 = Mifare Mini S20 4-byte
2 = Mifare Mini S20 7-byte 15 = NTAG 210
3 = Mifare Mini S20 10-byte 16 = NTAG 212
4 = Mifare 1k S50 4-byte 17 = NTAG 213
5 = Mifare 1k S50 7-byte 18 = NTAG 215
6 = Mifare 1k S50 10-byte 19 = NTAG 216
7 = Mifare 4k S70 4-byte 20 = NTAG I2C 1K
8 = Mifare 4k S70 7-byte 21 = NTAG I2C 2K
9 = Mifare 4k S70 10-byte 22 = NTAG I2C 1K PLUS
*** 10 = UL - NOT WORKING FULLY 23 = NTAG I2C 2K PLUS
*** 11 = UL-C - NOT WORKING FULLY 24 = NTAG 213F
12 = UL EV1 48b 25 = NTAG 216F
13 = UL EV1 128b
*** 14 = UL Plus - NOT WORKING YET
-p NTAG password (8 hexsymbols), set NTAG password on tag.
-a NTAG pack ( 4 hexsymbols), set NTAG pack on tag.
@ -210,6 +213,12 @@ local function read_config()
elseif atqaf == '00 44' and sak == '08' then cardtype = 'MIFARE 1k S50 7-byte UID'
elseif atqaf == '00 42' and sak == '18' then cardtype = 'MIFARE 4k S70 7-byte UID'
end
elseif uidlength == '02' then
uid = send("CF".._key.."CE00"):sub(1,20)
if atqaf == '00 84' and sak == '09' then cardtype = 'MIFARE Mini S20 10-byte UID'
elseif atqaf == '00 84' and sak == '08' then cardtype = 'MIFARE 1k S50 10-byte UID'
elseif atqaf == '00 82' and sak == '18' then cardtype = 'MIFARE 4k S70 10-byte UID'
end
end
elseif ulprotocol == '01' then
-- Read Ultralight config only if UL protocol is enabled
@ -286,6 +295,23 @@ local function read_config()
lib14a.disconnect()
return true, 'Ok'
end
---
-- calculate block0
local function calculate_block0(useruid)
local uidbytes = utils.ConvertHexToBytes(useruid)
local i = 1
local bcc = bxor(uidbytes[i], uidbytes[i+1]);
local length = #useruid / 2;
-- bcc
for i = 3, length, 1 do bcc = bxor(bcc, uidbytes[i]) end
-- block0
local block0 = ""
for i = 1, length, 1 do block0 = block0..string.format('%02X', uidbytes[i]) end
return block0..string.format('%02X', bcc)
end
--
-- Writes a UID for MFC and MFUL/NTAG cards
local function write_uid(useruid)
@ -301,11 +327,10 @@ local function write_uid(useruid)
-- uid string checks
if useruid == nil then return nil, 'empty uid string' end
if #useruid == 0 then return nil, 'empty uid string' end
if (#useruid ~= 8) and (#useruid ~= 14) then return nil, 'UID wrong length. Should be 4 or 7 hex bytes' end
if (#useruid ~= 8) and (#useruid ~= 14) and (#useruid ~= 20) then return nil, 'UID wrong length. Should be 4, 7 or 10 hex bytes' end
print('Writing new UID ', useruid)
local uidbytes = utils.ConvertHexToBytes(useruid)
local bcc1 = bxor(bxor(bxor(uidbytes[1], uidbytes[2]), uidbytes[3]), uidbytes[4])
local block0 = string.format('%02X%02X%02X%02X%02X', uidbytes[1], uidbytes[2], uidbytes[3], uidbytes[4], bcc1)
local block0 = calculate_block0(useruid)
print('Calculated block0 ', block0)
local resp = send('CF'.._key..'CD00'..block0)
-- Writes a MFUL UID with bcc1, bcc2 using NTAG21xx commands.
elseif ulprotocol == '01' then
@ -625,36 +650,57 @@ local function set_type(tagtype)
send("CF".._key.."F000010000000002000978009102DABC19101011121314151644000900")
lib14a.disconnect()
write_uid('04112233445566')
-- Setting Mifare 1k S50 4--byte
-- Setting Mifare mini S20 10-byte
elseif tagtype == 3 then
print('Setting: Ultimate Magic card to Mifare mini S20 10-byte')
connect()
send("CF".._key.."F000020000000002000978009102DABC19101011121314151684000900")
lib14a.disconnect()
write_uid('04112233445566778899')
-- Setting Mifare 1k S50 4--byte
elseif tagtype == 4 then
print('Setting: Ultimate Magic card to Mifare 1k S50 4-byte')
connect()
send("CF".._key.."F000000000000002000978009102DABC19101011121314151604000800")
lib14a.disconnect()
write_uid('04112233')
-- Setting Mifare 1k S50 7-byte
elseif tagtype == 4 then
elseif tagtype == 5 then
print('Setting: Ultimate Magic card to Mifare 1k S50 7-byte')
connect()
send("CF".._key.."F000010000000002000978009102DABC19101011121314151644000800")
lib14a.disconnect()
write_uid('04112233445566')
-- Setting Mifare 1k S50 10-byte
elseif tagtype == 6 then
print('Setting: Ultimate Magic card to Mifare 1k S50 10-byte')
connect()
send("CF".._key.."F000020000000002000978009102DABC19101011121314151684000800")
lib14a.disconnect()
write_uid('04112233445566778899')
-- Setting Mifare 4k S70 4-byte
elseif tagtype == 5 then
elseif tagtype == 7 then
print('Setting: Ultimate Magic card to Mifare 4k S70 4-byte')
connect()
send("CF".._key.."F000000000000002000978009102DABC19101011121314151602001800")
lib14a.disconnect()
write_uid('04112233')
-- Setting Mifare 4k S70 7-byte
elseif tagtype == 6 then
elseif tagtype == 8 then
print('Setting: Ultimate Magic card to Mifare 4k S70 7-byte')
connect()
send("CF".._key.."F000010000000002000978009102DABC19101011121314151642001800")
lib14a.disconnect()
write_uid('04112233445566')
-- Setting Mifare 4k S70 10-byte
elseif tagtype == 9 then
print('Setting: Ultimate Magic card to Mifare 4k S70 10-byte')
connect()
send("CF".._key.."F000020000000002000978009102DABC19101011121314151682001800")
lib14a.disconnect()
write_uid('04112233445566778899')
-- Setting UL
elseif tagtype == 7 then
elseif tagtype == 10 then
print('Setting: Ultimate Magic card to UL')
connect()
send("CF".._key.."F0010100000000030A0A78008102DBA0C119402AB5BA4D321A44000003")
@ -663,7 +709,7 @@ local function set_type(tagtype)
write_otp('00000000') -- Setting OTP to default 00 00 00 00
write_version('0000000000000000') -- UL-C does not have a version
-- Setting UL-C
elseif tagtype == 8 then
elseif tagtype == 11 then
print('Setting: Ultimate Magic card to UL-C')
connect()
send("CF".._key.."F0010100000000030A0A78008102DBA0C119402AB5BA4D321A44000002")
@ -678,7 +724,7 @@ local function set_type(tagtype)
write_uid('04112233445566')
write_otp('00000000') -- Setting OTP to default 00 00 00 00
write_version('0000000000000000') -- UL-C does not have a version
elseif tagtype == 9 then
elseif tagtype == 12 then
print('Setting: Ultimate Magic card to UL-EV1 48')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000000")
@ -691,7 +737,7 @@ local function set_type(tagtype)
write_uid('04112233445566')
write_otp('00000000') -- Setting OTP to default 00 00 00 00
write_version('0004030101000b03') -- UL-EV1 (48) 00 04 03 01 01 00 0b 03
elseif tagtype == 10 then
elseif tagtype == 12 then
print('Setting: Ultimate Magic card to UL-EV1 128')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000000")
@ -704,7 +750,7 @@ local function set_type(tagtype)
write_uid('04112233445566')
write_otp('00000000') -- Setting OTP to default 00 00 00 00
write_version('0004030101000e03') -- UL-EV1 (128) 00 04 03 01 01 00 0e 03
elseif tagtype == 12 then
elseif tagtype == 15 then
print('Setting: Ultimate Magic card to NTAG 210')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -718,7 +764,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040101000b03') -- NTAG210 00 04 04 01 01 00 0b 03
elseif tagtype == 13 then
elseif tagtype == 16 then
print('Setting: Ultimate Magic card to NTAG 212')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -732,7 +778,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040101000E03') -- NTAG212 00 04 04 01 01 00 0E 03
elseif tagtype == 14 then
elseif tagtype == 17 then
print('Setting: Ultimate Magic card to NTAG 213')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -746,7 +792,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040201000F03') -- NTAG213 00 04 04 02 01 00 0f 03
elseif tagtype == 15 then
elseif tagtype == 18 then
print('Setting: Ultimate Magic card to NTAG 215')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -760,7 +806,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040201001103') -- NTAG215 00 04 04 02 01 00 11 03
elseif tagtype == 16 then
elseif tagtype == 19 then
print('Setting: Ultimate Magic card to NTAG 216')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -774,7 +820,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040201001303') -- NTAG216 00 04 04 02 01 00 13 03
elseif tagtype == 17 then
elseif tagtype == 20 then
print('Setting: Ultimate Magic card to NTAG I2C 1K')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -785,7 +831,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040502011303') -- NTAG_I2C_1K 00 04 04 05 02 01 13 03
elseif tagtype == 18 then
elseif tagtype == 21 then
print('Setting: Ultimate Magic card to NTAG I2C 2K')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -796,7 +842,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040502011503') -- NTAG_I2C_2K 00 04 04 05 02 01 15 03
elseif tagtype == 19 then
elseif tagtype == 22 then
print('Setting: Ultimate Magic card to NTAG I2C plus 1K')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -807,7 +853,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040502021303') -- NTAG_I2C_1K 00 04 04 05 02 02 13 03
elseif tagtype == 20 then
elseif tagtype == 23 then
print('Setting: Ultimate Magic card to NTAG I2C plus 2K')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -817,7 +863,7 @@ local function set_type(tagtype)
send('a20500000000')
write_uid('04112233445566')
write_version('0004040502021503') -- NTAG_I2C_2K 00 04 04 05 02 02 15 03
elseif tagtype == 21 then
elseif tagtype == 24 then
print('Setting: Ultimate Magic card to NTAG 213F')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -831,7 +877,7 @@ local function set_type(tagtype)
lib14a.disconnect()
write_uid('04112233445566')
write_version('0004040401000F03') -- NTAG213F 00 04 04 04 01 00 0f 03
elseif tagtype == 22 then
elseif tagtype == 25 then
print('Setting: Ultimate Magic card to NTAG 216F')
connect()
send("CF".._key.."F001010000000003000978009102DABC19101011121314151644000001")
@ -899,7 +945,7 @@ local function wipe(wtype)
io.flush()
end
print('\n')
err, msg = set_type(3)
err, msg = set_type(4)
if err == nil then return err, msg end
lib14a.disconnect()
return true, 'Ok'
@ -938,7 +984,7 @@ local function wipe(wtype)
print('\n')
if err then return nil, "Tag locked down, "..err_lock end
-- set NTAG213 default values
err, msg = set_type(14)
err, msg = set_type(17)
if err == nil then return err, msg end
--set UID
err, msg = write_uid('04112233445566')

View file

@ -1128,10 +1128,10 @@ A.k.a ultimate magic card, most promenent feature is shadow mode (GTU) and opti
Can emulate MIFARE Classic, Ultralight/NTAG families, 14b UID & App Data
- [Identify](#identify)
- [Magic commands](#magic-commands)
- [Characteristics](#characteristics)
- [Proxmark3 commands](#proxmark3-commands)
- [Identify](#identify-16)
- [Magic commands](#magic-commands-9)
- [Characteristics](#characteristics-12)
- [Proxmark3 commands](#proxmark3-commands-9)
- [Change ATQA / SAK](#change-atqa--sak)
- [Change ATS](#change-ats)
- [Set UID length (4, 7, 10)](#set-uid-length-4-7-10)
@ -1186,19 +1186,22 @@ script run hf_mf_ultimatecard -h -k <passwd> -c -w <type> -u <uid> -t <type> -p
Arguments
-h this help
-c read magic configuration
-u UID (8-14 hexsymbols), set UID on tag
-u UID (8-20 hexsymbols), set UID on tag
-t tag type to impersonate
1 = Mifare Mini S20 4-byte 12 = NTAG 210
2 = Mifare Mini S20 7-byte 13 = NTAG 212
3 = Mifare 1k S50 4-byte 14 = NTAG 213
4 = Mifare 1k S50 7-byte 15 = NTAG 215
5 = Mifare 4k S70 4-byte 16 = NTAG 216
6 = Mifare 4k S70 7-byte 17 = NTAG I2C 1K
*** 7 = UL - NOT WORKING FULLY 18 = NTAG I2C 2K
*** 8 = UL-C - NOT WORKING FULLY 19 = NTAG I2C 1K PLUS
9 = UL EV1 48b 20 = NTAG I2C 2K PLUS
10 = UL EV1 128b 21 = NTAG 213F
*** 11 = UL Plus - NOT WORKING YET 22 = NTAG 216F
1 = Mifare Mini S20 4-byte
2 = Mifare Mini S20 7-byte 15 = NTAG 210
3 = Mifare Mini S20 10-byte 16 = NTAG 212
4 = Mifare 1k S50 4-byte 17 = NTAG 213
5 = Mifare 1k S50 7-byte 18 = NTAG 215
6 = Mifare 1k S50 10-byte 19 = NTAG 216
7 = Mifare 4k S70 4-byte 20 = NTAG I2C 1K
8 = Mifare 4k S70 7-byte 21 = NTAG I2C 2K
9 = Mifare 4k S70 10-byte 22 = NTAG I2C 1K PLUS
*** 10 = UL - NOT WORKING FULLY 23 = NTAG I2C 2K PLUS
*** 11 = UL-C - NOT WORKING FULLY 24 = NTAG 213F
12 = UL EV1 48b 25 = NTAG 216F
13 = UL EV1 128b
*** 14 = UL Plus - NOT WORKING YET
-p NTAG password (8 hexsymbols), set NTAG password on tag.
-a NTAG pack ( 4 hexsymbols), set NTAG pack on tag.
@ -1229,7 +1232,7 @@ Example usage
-- use a non default UMC key. Only use this if the default key for the MAGIC CARD was changed.
script run hf_mf_ultimatecard -k ffffffff -w 1
-- Wipe tag, turn into NTAG215, set sig, version, NTAG pwd/pak, and OTP.
script run hf_mf_ultimatecard -w 1 -t 15 -u 04112233445566 -s 112233445566778899001122334455667788990011223344556677 -p FFFFFFFF -a 8080 -o 11111111
script run hf_mf_ultimatecard -w 1 -t 18 -u 04112233445566 -s 112233445566778899001122334455667788990011223344556677 -p FFFFFFFF -a 8080 -o 11111111
```
Special raw commands summary:
@ -1365,18 +1368,20 @@ MFC mode 4b UID
=> UID `00010203`
`script run hf_mf_ultimatecard -t 3 -u 00010203`
`script run hf_mf_ultimatecard -t 4 -u 00010203`
MFC mode 7b UID
=> UID `00010203040506`
`script run hf_mf_ultimatecard -t 3 -u 00010203040506`
`script run hf_mf_ultimatecard -t 5 -u 00010203040506`
MFC mode, 10b UID
=> UID `00010203040506070809`
`script run hf_mf_ultimatecard -t 6 -u 00010203040506070809`
Ultralight mode, 4b UID
=> UID `00010203`
@ -1387,9 +1392,9 @@ Ultralight mode, 7b UID
👉 the UID is composed of first two blocks as in regular Ultralights
* Examples
* UL-EV1 48b = `script run hf_mf_ultimatecard -t 9 -u 00010203040506`
* UL EV1 128b = `script run hf_mf_ultimatecard -t 10 -u 00010203040506`
* NTAG 215 = `script run hf_mf_ultimatecard -t 15 -u 00010203040506`
* UL-EV1 48b = `script run hf_mf_ultimatecard -t 12 -u 00010203040506`
* UL EV1 128b = `script run hf_mf_ultimatecard -t 13 -u 00010203040506`
* NTAG 215 = `script run hf_mf_ultimatecard -t 18 -u 00010203040506`
Ultralight mode, 10b UID
=> UID `00010203040506070809`
@ -1486,10 +1491,10 @@ If you use it, please enter the pre-write mode first. At this time, write the fu
After writing, set it to on. At this time, after writing the data, the first time you read the data just written, the next time you read It is the pre-written data. All modes support this operation. It should be noted that using any block to read and write in this mode may give wrong results.
Example:
`script run hf_mf_ultimatecard -w 1 -g 00 -t 15 -u 04112233445566 -s 112233445566778899001122334455667788990011223344556677 -p FFFFFFFF -a 8080 -o 11111111 -g 01`
`script run hf_mf_ultimatecard -w 1 -g 00 -t 18 -u 04112233445566 -s 112233445566778899001122334455667788990011223344556677 -p FFFFFFFF -a 8080 -o 11111111 -g 01`
* -w 1 = wipe the card in Ultralight Mode
* -g 00 = turn on pre-write mode
* -t 15 = change the type of card to NTAG 215
* -t 18 = change the type of card to NTAG 215
* -u = set the uid
* -s = set the signature
* -p = set the NTAG password