Research, development and trades concerning the powerful Proxmark3 device.
Remember; sharing is caring. Bring something back to the community.
"Learn the tools of the trade the hard way." +Fravia
You are not logged in.
Time changes and with it the technology
Proxmark3 @ discord
Users of this forum, please be aware that information stored on this site is not private.
To the best of my knowledge, it hasn't been released publicly yet, but I was not alone in working to find it. I wrote some of the code to prove it out, but finding it was an effort by many people on many fronts.
Someone corrected me that the algorithm is available on Github, but I leave it up to them to provide more details if they desire. I created a webservice to calculate the PWD at http://ldpwd.ericbetts.org . If you visit with your browser, it will return the curl command to use the service. You post a 7 byte UID as a hex string and it will return the 4 byte PWD as a hex string.
Last edited by bettse (2016-01-16 02:49:33)
Offline
Thanks for the work you guys have done so far, and for making it publicly available.
Has anyone figured out the algorithm used for pages 0x24 & 0x25?
Last edited by atkinchris (2016-01-27 10:51:10)
Offline
Pages 24 & 26 for vehicles is upgrade constant
for characters its encrypted character ID using a key derived from the UID. I plan to add code for upgrade calculation and character encrypt/decrypt to the repo, just haven't had a chance yet.
Offline
So I thought moving into a new build house would be fun and easy - well, not even close.... Just started to look back at the LD stuff and you guys have made some awesome progress.... (Glad I could at least help at the start)
Atkinchris - Just wanted to let you know, great little app - It does make reading the tokens in much easier than dealing with the PM3, not that the PM3 way is difficult, but yours is just so easy and quick.
Now, I am going over what was done - Is there an easy summary of what we still "need"???
Offline
At the moment, I think the only thing we are needing is a map of which upgrades are available for each vehicle (Missing ones effect values), otherwise, everything is pretty much known
Offline
Thanks for the work you guys have done so far, and for making it publicly available.
Building on ags131's published pwdgen, I've written a tool for Android to read and dump tags. I own the xbox version, so I'm not able to connect my portal to a computer - so I wanted a more convenient way to read tags, without having to use a few different NFC apps and write things down. It was written for personal use - Java is not my daily language - so the code is not ideal.
https://github.com/atkinchris/ld-tag-tool/releases/tag/v0.1-alpha
Has anyone figured out the algorithm used for pages 0x24 & 0x25?
Your link is 404. Can you please update?
Offline
Your link is 404. Can you please update?
Sorry, development has ceased on it. Better apps to read tags already exist on this forum and the store.
Offline
thanks to ags131
Have now got aquaman and gamer kid in game using some blank tags I bought wrote to pages 36, 37 and 43.
How did the algorithms get found ? I liked reading the posts "[UL-EV1] [SOLVED] italian public transportation system" and seeing you guys work it out was it similar?
Offline
Ditto big thanks ags131.
Just need to get vehicles working...
Offline
I have the Xbox portal, so I am unable to do anything with that. Can anyone recommend a suitable android app to dump/examine the various characters?
Offline
Ditto big thanks ags131.
Just need to get vehicles working...
Sorted , had to make my namesake as well.
Offline
If I understand correctly, if I acquire some blank NTAG213 tags -- all that is necessary is to discover the tag's LD key by running its UID through the algorithm (does this key get stored on the tag via an NFC writer?), and then using the LD key to write correct character/vehicle data to the right pages with either the toy pad or NFC writer?
Offline
Let me preface this post with - I'm a novice coder, a complete newbie to NFC, and an intermediate level tinkerer.
With that out of the way, I have a question. I was able to read my batman character however in all attempts I only get a portion of the data, and not a full dump. I am currently using an android phone and NFC Tools Pro to read the taga. Am I doing something wrong or missing something? Any advice, help, or point in the right direction would be greatly appreciated.
Offline
If I understand correctly, if I acquire some blank NTAG213 tags -- all that is necessary is to discover the tag's LD key by running its UID through the algorithm (does this key get stored on the tag via an NFC writer?), and then using the LD key to write correct character/vehicle data to the right pages with either the toy pad or NFC writer?
I bought some tags from 2 different suppliers.
One looked more like the original tags used, with a larger antenna than the other.
The smaller one could only be read in the left and right of the portal, not in the middle, so couldn't be a vehicle.
Offline
thanks to ags131
Have now got aquaman and gamer kid in game using some blank tags I bought wrote to pages 36, 37 and 43.
How did the algorithms get found ? I liked reading the posts "[UL-EV1] [SOLVED] italian public transportation system" and seeing you guys work it out was it similar?
Question: I understand writing the character's ID to one of the pages, but what did you write to the other 2 pages?
Offline
lupin3rd wrote:blofeld wrote:thanks to ags131
Have now got aquaman and gamer kid in game using some blank tags I bought wrote to pages 36, 37 and 43.
How did the algorithms get found ? I liked reading the posts "[UL-EV1] [SOLVED] italian public transportation system" and seeing you guys work it out was it similar?
Question: I understand writing the character's ID to one of the pages, but what did you write to the other 2 pages?
pages 36 and 37 - character's ID encrypted (8 byte)
page 43 - PWD (4 byte)or
page 38 - {0x00,0x01,0x00,0x00} (Vehicle or gadget tag)
Thanks, spluton!
Offline
I've been exploring ags131's awesome work, however, I am unable to get dumptag.js to do much beyond returning the following.
XU 550f0000286329204c45474f2032303134460000000000000000000000000000
XU 5506000000ffffff580000000000000000000000000000000000000000000000
It's not reading nor dumping tags. Any help would be GREATLY appreciated. If you'd prefer not to post here, you can shoot a mail to rafminix at gmail dot com.
Offline
@trasixes grab the latest version and try it again, that was a really old rendition of dumptag before I had a full class to work from
Offline
Some awesome / quick work - Just started to play again and trying the 213's I bought way back when I started the LD stuff - So from the updates, I need to use the script in the Git and edit :
var raw = new Buffer('b27cc8c717a8b4e1','hex') // Page 25+26
var uid = '040b4922a34881'
The VAR UID, I assume is the UID from the real token, not my 213 - What gets put into the buffer?
Its late and I'm beat - Tomorrow is a fresh look though
Thanks to everyone for the work...
Offline
sllabgib Use the real token UID to decrypt, then the new token UID to encrypt. The buffer is pages 25 and 26 of the real token, decrypted it will be 8bytes, with the 1st and 5th being the character ID
Offline
@trasixes grab the latest version and try it again, that was a really old rendition of dumptag before I had a full class to work from
Works perfectly, thank you very much!
Offline
ags - AH that makes sense! Thanks ... its a weekend, and I'm lazy - so its NFC day ..... Miss this stuff, doing too much house work for the new house (and 3D printing custom stuff for the house)
Offline
I feel like a complete noob asking this but I'm not finding any answers elsewhere.
I'm at a loss to what you guys mean when you refer to "page 25/26" or "pages" in general. I've worked with hex editors/hex addresses, but this is obviously different.
Offline
http://www.nxp.com/documents/data_sheet/NTAG213_215_216.pdf
Offline
http://www.nxp.com/documents/data_sheet/NTAG213_215_216.pdf
Thank you! It was right under my nose. That really helps.
Offline
trasixes - Bettse's link is very helpful - One of the first docs that helped to kick this off (at least for me). The only thing that can get a bit confusing is certain members refer to locations in HEX and some in Decimal - Just an FYI.
Ags / Bettse - I know the XB1 portal doesn't work with the tools, but does it work with custom tags? Mine all say Update required so I was going to pull my WiiU version out to test, but was curious. My tags with the UUIDs on them all return the correct decrypted value for the tag, but just wont work on the XB.... So I'm off to try on the WiiU ... Just have to....
Offline
trasixes - Bettse's link is very helpful - One of the first docs that helped to kick this off (at least for me). The only thing that can get a bit confusing is certain members refer to locations in HEX and some in Decimal - Just an FYI.
Ags / Bettse - I know the XB1 portal doesn't work with the tools, but does it work with custom tags? Mine all say Update required so I was going to pull my WiiU version out to test, but was curious. My tags with the UUIDs on them all return the correct decrypted value for the tag, but just wont work on the XB.... So I'm off to try on the WiiU ... Just have to....
Thanks, Ive been attempting to encrypt a character ID to a new tab using the new UID, but I think this may be over my head. Unless this suddenly "clicks" for me, I will probably have to wait for the smarter people to release a tool to handle the character cloning operations.
Offline
Yeah theres some work involved - and that doc WILL help a lot ..... I spent 1/2 the day trying tokens on my XB1 and that was a waste - They work on my WiiU version perfectly -- So not sure if that will help someone else out here....
Offline
Yeah theres some work involved - and that doc WILL help a lot ..... I spent 1/2 the day trying tokens on my XB1 and that was a waste - They work on my WiiU version perfectly -- So not sure if that will help someone else out here....
Ouch! Those are blanks you purchased, or original vehicle tags rewritten? Can vehicle tags be used for characters?
The only thing holding me back with characters is my lack of understanding as to where in the tag dump to find the data used in CharCryptoExample.js. What should I be using to view the tag dump? Hex editor?
This data from the tag dump is where I'm stuck
var raw = new Buffer('b27cc8c717a8b4e1','hex') // Page 25+26
I think the highlighted data is correct?
Last edited by trasixes (2016-02-07 09:40:48)
Offline
Yes, thats the right spot
Offline
Yes, thats the right spot
Ok great. So I plugged the info from the dump above into CharCryptoExample.js and the output is
This is where it gets fuzzy for me.
Do I take F10F181ECD6F73E5 from the output above, plug it into CharCryptoExample.js, along with the UID of the new tag, run it, then write the 8 bytes from the "buffer" output to the same location in the hex editor image in the post above?
Last edited by trasixes (2016-02-07 09:41:10)
Offline
Your UID in charCryptoExample is wrong, have to grab 8 bytes but chop out the 4th. you only grabbed 7
the 4th byte is a weird checksum byte for that part of the UID
Offline
Your UID in charCryptoExample is wrong, have to grab 8 bytes but chop out the 4th. you only grabbed 7
the 4th byte is a weird checksum byte for that part of the UID
Ok, so that is what I've been missing.
So the output was correct now 15h/21. So how do I encrypt that with a new UID using CharCryptoExample?
Offline
just change uid right before the cc.encrypt line
Offline
just change uid right before the cc.encrypt line
Ok that appears to have worked. I really appreciate all of the help, ags131. Is it not possible to use a vehicle tag as a character tag?
Offline
No, the page that determines whether its a vehicle or character is write locked
Offline
No, the page that determines whether its a vehicle or character is write locked
Ok great, well that puts me on hold until my tags arrive. Gotta love Amazon Prime!
On a side note, how would I edit the character ID in the decrypted data?
Offline
try changing the id variable?
Offline
try changing the id variable?
Ha! I completely overlooked that!
Ok no more questions, you were a huge help. Thanks again
Offline
Ill keep the group posted - I have 4 tags working in the WiiU and Ill retest on the XB - I know my first issue was a typo, and there seems to be be an issue once the game sees a UUID, if the data changes it can act "odd"... So Ill test the working tags on the XB1 tomorrow again.
Offline
Ill keep the group posted - I have 4 tags working in the WiiU and Ill retest on the XB - I know my first issue was a typo, and there seems to be be an issue once the game sees a UUID, if the data changes it can act "odd"... So Ill test the working tags on the XB1 tomorrow again.
Good luck! Definitely keep us posted.
Offline
Trasixes - You all good now? I know ags rocks, but just in case - I can help out - To be honest, I just wasn't sure how much direct pointing we were going to do Once you figure it out its cake from there.....
Offline
Ok, so I apologize for my quick note about the XB1 and the tokens - All of them work this morning. But what led to me that assumption was a symptom I had in December, so that first.
If you used a "real" token on the game and then used a token with the same UUID and PWD challenge, it worked - I had that "success" way back but discovered it meant nothing after a reboot. So the whole reading of the token must have been only once, then it knew the UUID and just worked.
Yesterday I had a typo in a bit since I'm using my android to enter 24/25 on the chip - I tried the token and of course it said you require an upgrade. I fixed the token and it said the same thing - I played with that same token, knowing I should just use another one to test but I kept going. Finally, I swapped to the WiiU and had no issues, until a 4th test where it had an upgrade error due to a bit that I had a typo on (again).
So in all - False alarm, as Bettse has said - it should have made no difference on the extra security chip the XB1 portal uses, that's for a different purpose, but that was also something that led me to jump too quick at the false alarm. So - All good on the XB Front .... (Which is good, I'm further along in the game, I haven't even started in the WiiU version, purchasing just for the portal and PC connection.)
Offline
Trasixes - You all good now? I know ags rocks, but just in case - I can help out - To be honest, I just wasn't sure how much direct pointing we were going to do Once you figure it out its cake from there.....
I'm definitely good now!
I have something similar to A.D.D. that makes it very tough to focus, so putting together pieces of the puzzle can be a challenge sometimes. Once ags131 set me straight, it was downhill. I'm now working on (for personal-use) adding pop-up boxes to choose what I want to do, along with input boxes where needed/useful. This will streamline things, and help me get a better understanding of ags131's work.
This is all very interesting, and really fun. It definitely inspires me to explore NFC further! I haven't done anything like this since the old satellite/smart card days .
Ok, so I apologize for my quick note about the XB1 and the tokens - All of them work this morning. But what led to me that assumption was a symptom I had in December, so that first.
If you used a "real" token on the game and then used a token with the same UUID and PWD challenge, it worked - I had that "success" way back but discovered it meant nothing after a reboot. So the whole reading of the token must have been only once, then it knew the UUID and just worked.
Yesterday I had a typo in a bit since I'm using my android to enter 24/25 on the chip - I tried the token and of course it said you require an upgrade. I fixed the token and it said the same thing - I played with that same token, knowing I should just use another one to test but I kept going. Finally, I swapped to the WiiU and had no issues, until a 4th test where it had an upgrade error due to a bit that I had a typo on (again).
So in all - False alarm, as Bettse has said - it should have made no difference on the extra security chip the XB1 portal uses, that's for a different purpose, but that was also something that led me to jump too quick at the false alarm. So - All good on the XB Front .... (Which is good, I'm further along in the game, I haven't even started in the WiiU version, purchasing just for the portal and PC connection.)
Ahh good to hear. I have a PS3 pad for dumping/writing, but the actual "play" pad is for my son's Xbox 360. Any problems with the XB1 version would've likely been a problem for the 360 version too, so I was hoping you'd get things sorted.
Last edited by trasixes (2016-02-07 17:45:26)
Offline
I know whats that like - I have a similar type to ADD but mine is more of an issue with too many projects and focusing..... and from that I have a bad habit of not giving up for far too long before asking for help.
I did the same for the script - made it easier for myself with some different inputs / etc - Great to hear you go it all working!
Offline
Anyone have any luck with blank tags?
Offline
Yep.
Offline
Yep.
Are you writing to them with the toy pad? Any attempt to write apparently fails, and dumps are completely empty. I'm sure I am doing something wrong, of course
Edit: I've been able to write data to the tag with android, but dumps are still empty using the toy pad, nor can I write to the tag with the toy pad. LD doesn't react to the tag at all.
Last edited by trasixes (2016-02-10 01:08:53)
Offline
Not looking for spoon-feeding, just a nudge in the right direction.
I can read/write using my android phone. However, using the toy pad I cannot write to the blank tags. The toypad/dumptag.js are reading the UID just fine, but the actual bin file is full of zeros.
I'm guessing either these particular tags are not compatible (ntag213), or (more likely, I'm guessing) I need to refer to the datasheet. I'm thinking some type of config bits need to be set? Am I even in the ballpark? lol
Offline
ntag213 tags are what I've used, for me it was as simple as writing the pwd to page 0x2B (Toypad can't do this) then writing the 0x23-0x26 with the appropriate data
Last edited by ags131 (2016-02-13 07:59:34)
Offline