Hacking NTAG216 Amiibo collaboration thread

fiveighteen

Distractible Dabbler
Member
Joined
Jun 30, 2008
Messages
1,768
Trophies
2
XP
1,930
Country
United States
By certain users I assume you mean me.

I'll share the technical info so you guys can do it yourself but I won't share the tools.

NFC tags can actually have multiple partitions (I'm sure most of us know). Make a separate (second) partition on the NTAG216 that is exactly 348 bytes, and fill it with dummy data (FF's, not 00's).

TagMo will then write the Amiibo bin's to them as they were NTAG215's.
I actually didn't know/realize they could have separate partitions. That explanation completely makes sense though now knowing that. Thanks for sharing!

Glad I don't have to start referring to you as dbag_5678 :creep:
 

DarkJediRey

Well-Known Member
Member
Joined
Jan 18, 2016
Messages
184
Trophies
0
XP
196
Country
United States
I assumed it was possible to just create dummy data to fill the extra space, but didn't know you could also set it to it's own partition. Really, the most logical, possibly, only way to use the 216's. Thx for the hints dpad_5678.
 

KingOfTaurus

Well-Known Member
OP
Member
Joined
Feb 19, 2016
Messages
174
Trophies
0
Age
40
Location
Las Vegas
XP
220
Country
United States
After reading up on the technical part of the document, locking certain pages go like this:

BD = always there
XX = variable

Blank Page 2 of NTAG215:

XX XX 00 00

Blank Page 130 of NTAG215:

00 00 00 BD

An "amiibo":

Page 2:

XX XX 0F E0

Page 130:

01 00 0F BD

Blank Page 2 of NTAG216:

XX XX 00 00

Blank Page 226 of NTAG216:

00 00 00 BD

A "tagmo'd incorrectly amiibo"

Page 2

XX XX 0F E0

Page 226

00 00 00 BD

So, what does that mean?

For the incorrectly written 216, that means pages 04-12 are blocked and pages 12-15 are locked and blocked. All of which are "user data"

For an amiibo on 215, pages 04-12 are blocked and write only and pages 13-31 are locked and blocked and read only, and pages 32-129 are blocked and read only

What does blocked mean?
What does locked and blocked mean?
If a tag is read only, how is data being saved to it ingame? It probably has something to do with locked vs blocked.

So, I guess, in order to use a 216 as a 215, we need to do something with pages 130 to 225, make tagmo do its thing, then manually lock it afterwards. All talking out of my seat though. The manual is slightly confusing:

I'm having a hard time understanding the "lock bytes". If you look at the data on the tag, you see a page. A page has 8 bits arranged in pairs of two, four times. 00 00 00 00. A byte is 8 bits, so each page is 1 byte.

The "locking bits" required for example, on page 226 of ntag216, require 32 bits on the single page. How do you get 32 bits from 1 byte? It describes it like this (loosely):


00 00 00 BD

00 = 7 6 5 4 3 2 1 0 | 00 = 7 6 5 4 3 2 1 0 | 00 = 7 6 5 4 3 2 1 0 | BD


Look at page 15 of the datasheet.

What am I missing here?

Edit: I think I get it now. 0 in HEX = 0000 in DECIMAL sooooo:

A "tagmo'd incorrectly amiibo"

Page 2

XX XX 0F E0

0F E0 = 00001111 11100000 which means , 4-15 are blocked and 13-15 are read only and these mean something about the "capability container" which I am guessing is something significant.

The Capability Container CC (page 3) is programmed during
the IC production according to the NFC Forum Type 2 Tag specification (see
Ref. 2). These bytes may be bit-wise modified by a WRITE or COMPATIBILITY_WRITE command.
 
Last edited by KingOfTaurus,

fiveighteen

Distractible Dabbler
Member
Joined
Jun 30, 2008
Messages
1,768
Trophies
2
XP
1,930
Country
United States
@KingOfTaurus, so you're trying to actually lock different bits and stuff to use the higher capacity? Have you tried what dpad_5678 said and just create a dummy partition for the last 348 bytes? Then the remaining partition may act exactly like a NTAG215 as far as which bytes to lock.
 

ja450n

Active Member
Newcomer
Joined
Oct 29, 2015
Messages
25
Trophies
0
Age
42
XP
94
Country
United States
@KingOfTaurus, so you're trying to actually lock different bits and stuff to use the higher capacity? Have you tried what dpad_5678 said and just create a dummy partition for the last 348 bytes? Then the remaining partition may act exactly like a NTAG215 as far as which bytes to lock.

i've been digging around the internet trying to find info on NFC partitioning, is this part of a specific spec?
 

Pecrow

Well-Known Member
Member
Joined
Jun 23, 2015
Messages
1,137
Trophies
0
Age
33
XP
640
Country
United States
To be honest, just get the 100 pack for 35$ of ntag215s, or go spend 70$for that same pack on amazon if you want to get them faster... either way,just buy the correct ntags... this is really not needed.
 

KingOfTaurus

Well-Known Member
OP
Member
Joined
Feb 19, 2016
Messages
174
Trophies
0
Age
40
Location
Las Vegas
XP
220
Country
United States
To be honest, just get the 100 pack for 35$ of ntag215s, or go spend 70$for that same pack on amazon if you want to get them faster... either way,just buy the correct ntags... this is really not needed.

Just go buy every Wii U game that you want to play, and learn Japanese so you can read the uncensored versions of the game. Hacking the Wii U is really un needed.

I'm doing this because I WANT to, and I'm sure I'm not the only one.

@KingOfTaurus, so you're trying to actually lock different bits and stuff to use the higher capacity? Have you tried what dpad_5678 said and just create a dummy partition for the last 348 bytes? Then the remaining partition may act exactly like a NTAG215 as far as which bytes to lock.

The problem is, I don't exactly know how to create a partition yet. I'm studying the lock bits first, and I'm sure it has something to do with creating partitions.
 
Last edited by KingOfTaurus,

ja450n

Active Member
Newcomer
Joined
Oct 29, 2015
Messages
25
Trophies
0
Age
42
XP
94
Country
United States
Just go buy every Wii U game that you want to play, and learn Japanese so you can read the uncensored versions of the game. Hacking the Wii U is really un needed.
I'm doing this because I WANT to, and I'm sure I'm not the only one.

ditto. i already have NTAG215 tags, but i also have NTAG216 tags and getting NTAG216 to work is an academic exercise.
 

fiveighteen

Distractible Dabbler
Member
Joined
Jun 30, 2008
Messages
1,768
Trophies
2
XP
1,930
Country
United States
The problem is, I don't exactly know how to create a partition yet. I'm studying the lock bits first, and I'm sure it has something to do with creating partitions.
Hm, good point lol. @dpad_5678 made it sound like it was common knowledge, but I can't find anything about it either. Maybe his newfound helpfulness will enable him to teach us how to make a second one.
 

Pecrow

Well-Known Member
Member
Joined
Jun 23, 2015
Messages
1,137
Trophies
0
Age
33
XP
640
Country
United States
My comment was towards people asking other to get this done... if you are doing it for an academic exercise or because you like a challange, or its fun, go ahead and do it. It does not take away the fact that it is not needed.
 

KingOfTaurus

Well-Known Member
OP
Member
Joined
Feb 19, 2016
Messages
174
Trophies
0
Age
40
Location
Las Vegas
XP
220
Country
United States
Hm, good point lol. @dpad_5678 made it sound like it was common knowledge, but I can't find anything about it either. Maybe his newfound helpfulness will enable him to teach us how to make a second one.

I'm going to try just writing to and locking the last 348 bytes of the card and see what happens. I'll also use a 215 card and clone to a 216 byte by byte and recreate the "locks" to be compatible with that byte by byte section and see what happens.

Stay tuned.
 
  • Like
Reactions: djkav

Felipe Stona

Well-Known Member
Newcomer
Joined
Sep 19, 2015
Messages
50
Trophies
0
XP
99
Country
Brazil
I'm going to try just writing to and locking the last 348 bytes of the card and see what happens. I'll also use a 215 card and clone to a 216 byte by byte and recreate the "locks" to be compatible with that byte by byte section and see what happens.

Stay tuned.
any news?
 

Phantisy

Well-Known Member
Newcomer
Joined
Feb 12, 2016
Messages
90
Trophies
0
XP
134
Country
United States
After a lot of research I have an idea how this is done, but I do not have any ntag216's to test this on right now. I may buy some just to test out my theory unless someone wants to "donate" some to me.

--------------------- MERGED ---------------------------

By certain users I assume you mean me.

I'll share the technical info so you guys can do it yourself but I won't share the tools.

NFC tags can actually have multiple partitions (I'm sure most of us know). Make a separate (second) partition on the NTAG216 that is exactly 348 bytes, and fill it with dummy data (FF's, not 00's).

TagMo will then write the Amiibo bin's to them as they were NTAG215's.

Isn't it 384 bytes and not 348?
 

dpad_5678

Ape weak on own. Ape strong in unity.
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
After a lot of research I have an idea how this is done, but I do not have any ntag216's to test this on right now. I may buy some just to test out my theory unless someone wants to "donate" some to me.

--------------------- MERGED ---------------------------



Isn't it 384 bytes and not 348?
NTAG216 Total bytes (888) -- Amiibo Dump (540) == How many bytes should be scrapped (348)
 

Phantisy

Well-Known Member
Newcomer
Joined
Feb 12, 2016
Messages
90
Trophies
0
XP
134
Country
United States
NTAG216 Total bytes (888) -- Amiibo Dump (540) == How many bytes should be scrapped (348)
NTAG216 has a total of 924 bytes of data and only has 888 bytes of user read/write data and an NTAG215 a total of 540 bytes of data with only 504 user read/write bytes.
Either way you do the math 924-540=384 or 888-504=384
 
Last edited by Phantisy,

dpad_5678

Ape weak on own. Ape strong in unity.
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
NTAG216 has a total of 924 bytes of data and only has 888 bytes of user read/write data and an NTAG215 a total of 540 bytes of data with only 504 user read/write bytes.
Either way you do the math 924-540=384 or 888-504=384
Amiibo dumps are a total of 540 bytes. I've created the app to lock 348 bytes. If that was wrong then it wouldn't work properly. But it does.
 

gualala

Well-Known Member
Newcomer
Joined
May 2, 2011
Messages
64
Trophies
0
XP
213
Country
United States
Still could not get my compiled app to run correctly. Familiar with Java/C++/Embedded C but new to Android. I guess NDK is needed for amiitool, anyone got a brief instructions on how to generate the apk?

@KingOfTaurus: Have you tried:
1. writePages(mifare, 3, 129, pages); as normal
2. write the config data to data pages 130, 131 & 132
3. writePassword(mifare); to pages 230 & 229
4. writeLockInfo(mifare); to pages 2, 226, 227 & 228

Judging from the read procedure on 3DBrew, the read results should be identical with '215 except GET_VERSION. However the second step "READ, startpage=0x03." looks strange, this reads 4 bytes from 0x03 to 0x06 which does not contain the UID required by the next step.
  • Read procedure
    • GET_VERSION
    • READ, startpage=0x03.
    • PWD_AUTH. Key is based on UID.
    • FAST_READ: startpage=0x00, endpage=0x3B
    • FAST_READ: startpage=0x3C, endpage=0x77
    • FAST_READ: startpage=0x78, endpage=0x86
Does anyone know any proxmark3 services so we could send in the tagmo-written '216 (and a new3DS, if they don't have a console) so to check whether the consoles continue reading the tag even GET_VERSION did not match '215?
 
Last edited by gualala,

Phantisy

Well-Known Member
Newcomer
Joined
Feb 12, 2016
Messages
90
Trophies
0
XP
134
Country
United States
Amiibo dumps are a total of 540 bytes. I've created the app to lock 348 bytes. If that was wrong then it wouldn't work properly. But it does.
Okay. Not saying you're wrong. Just trying to understand because you can only write to 504 bytes on the ntag215 even if the data is 540 bytes in the bin file of the amiibo backup, because you cannot change the data that contains the manufacture data. My guess is that your writing the 540 bytes to the free 888 bytes on the ntag216 giving it an actual 1:1 copy plus the bytes your locking and the original manufacturer data.
 
Last edited by Phantisy,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    It could get banned from PSN but you can change your ID I think?
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
  • BakerMan @ BakerMan:
    guys, my fuckin headphones have an out of place speaker
  • K3Nv2 @ K3Nv2:
    Did you try wearing them?
    K3Nv2 @ K3Nv2: Did you try wearing them?