Gioman101 / FlipperAmiibo

Made to be used with Flipper just drag the folder into NFC
2.82k stars 252 forks source link

[SUGGESTION] .NFC files from the Amiibo-Generator #30

Open ishtangli opened 1 year ago

ishtangli commented 1 year ago

The Amiibo-Generator is used to produce compatible bin files for use as amiibo. User just needs to supply their own keys. It generates the bins based on publicly available information such as amiibo IDs.

https://tagmo.gitlab.io/amiibo-generator/ https://github.com/hax0kartik/amiibo-generator

No need for you to upload the .NFC file every time a new amiibo is released.

juliocorzo commented 1 year ago

I thought so too, but amiibo-generator produces binary files that are compatible with wumiibo, a 3DS amiibo emulator. They are not valid amiibos.

I tested this myself by downloading a amiibo-generator binary and running FlipMiibo over it, it doesn't work, and it makes sense that it doesn't because it's not in a format that follows the rules of Amiibos. (see screenshot for example)

Screenshot_146

The best we can do is what is being done here, aggregating NFC files generated from known Amiibo binaries that were dumped from actual amiibos (or amiibo clones generated using pyAmiibo or amitool.) Simply reading and emulating these amiibos is not problematic, creating brand new clones is, though.

Is it possible to generate one from scratch legally? I don't think so, because in order to do so you need access to proprietary information (even if that information is literally just two 14 character strings) in order to break the encryption that Nintendo uses to lock a specific amiibo to a factory set UID (this was done in an effort to prevent clones.)

ishtangli commented 1 year ago

The bin files need to be signed first using amiitool and then converted to .nfc with amiiboconvert.py

By legally, I meant that the files from amiibo-generator are not "illegal" per se because they are just the IDs for each amiibo which are publicly available info. Signing them if iffy since you need keys which you should get by yourself.

juliocorzo commented 1 year ago

And what I'm saying is that even if you sign them with the keys, they won't work, as the amiibo-generator amiibos are not real ones.

I'm pretty confident that you could recreate them from scratch, but you'd have to implement something completely new that takes care of, like you said, signing them, and to sign them you need to read the UID (or create a fake one,) and then create a hash using that UID and the keys.

ishtangli commented 1 year ago

In that case, is there a way to write a fake tag to the flipper from a phone? Tagmo can write to real n215 tags.

ZekePolarisBSH commented 2 months ago

Is that first link down? Sorry to necro.