Icehawk78 Posted March 11, 2011 Author Share Posted March 11, 2011 Well, what about just something to connect the PC with a retail cart, ala IR-GTS? Edit IR-GTS info Dunno. Ask the peoples who made those. The info in this post should be more than enough for them to update their software for 5th gen. I think Ceol may be working on something like that too, not sure. Link to comment Share on other sites More sharing options...
Highlighter Posted March 11, 2011 Share Posted March 11, 2011 Dunno. Ask the peoples who made those. The info in this post should be more than enough for them to update their software for 5th gen. I think Ceol may be working on something like that too, not sure. Ah, interesting. As I don't know a thing about computer programming (it's not my field), I wasn't sure if that was enough information to work with. I will refer the developer of IR-GTS to this thread, and perhaps he can start updating. Thank you again for the work you've put into this. Link to comment Share on other sites More sharing options...
ceolceol Posted March 14, 2011 Share Posted March 14, 2011 Alright, so I've got some comments related to the GTS data at the end of the data that the server sends to the DS. Apparently Grovyle91 was partially correct: the first 220 bytes are the Pokémon data, the next 16 bytes are \x00, and then starts the unencrypted GTS data (which is 60 bytes). Now it does send the secret ID just like he said, and the trainer name is now located where he said, but I believe there are an additional two bytes at the end. My Zorua had \x08\x00 but I'm going to try some other deposits to see what they give. Anyone have any idea what it could be? Link to comment Share on other sites More sharing options...
ceolceol Posted March 14, 2011 Share Posted March 14, 2011 Thanks to maxg for confirming this: the game IDs for B/W are not what Grovyle said, they're actually reversed: Black is 0x15, White is 0x14. Link to comment Share on other sites More sharing options...
HyperDrill89 Posted March 14, 2011 Share Posted March 14, 2011 Do any of you know what this is all about? Link to comment Share on other sites More sharing options...
ceolceol Posted March 14, 2011 Share Posted March 14, 2011 (edited) Nothing to see here, move along. Pick up that can, citizen. Edited March 15, 2011 by ceolceol deletification Link to comment Share on other sites More sharing options...
HyperDrill89 Posted March 14, 2011 Share Posted March 14, 2011 I knew it seemed suspicious ,but it does seem to show the significant amount of progress you all have made good job hope to see it up and running soon. Keep up the good work I'm sure everyone appreciates what you all are doing Link to comment Share on other sites More sharing options...
ceolceol Posted March 14, 2011 Share Posted March 14, 2011 I knew it seemed suspicious ,but it does seem to show the significant amount of progress you all have made good job hope to see it up and running soon. Keep up the good work I'm sure everyone appreciates what you all are doing All the necessary information is here, all that needs to happen is for someone to modify HyperGTS or IR-GTS. It might not be able to deposit Pokémon (maxg is providing us with some information on the deposit data) but at least it can send them out. Link to comment Share on other sites More sharing options...
Nitronic Posted March 14, 2011 Share Posted March 14, 2011 i hope this gets figured out asap stuck at the elite 4 Link to comment Share on other sites More sharing options...
HyperDrill89 Posted March 14, 2011 Share Posted March 14, 2011 All the necessary information is here, all that needs to happen is for someone to modify HyperGTS or IR-GTS. It might not be able to deposit Pokémon (maxg is providing us with some information on the deposit data) but at least it can send them out. thats the feature I'm really waiting for because otherwise I have to ask someone to send my the .pkm file via e-mail rather than me doing it myself. Link to comment Share on other sites More sharing options...
Icehawk78 Posted March 14, 2011 Author Share Posted March 14, 2011 i hope this gets figured out asap stuck at the elite 4 thats the feature I'm really waiting for because otherwise I have to ask someone to send my the .pkm file via e-mail rather than me doing it myself. Thanks for your extremely helpful and useful contribution to the research here. Link to comment Share on other sites More sharing options...
Highlighter Posted March 14, 2011 Share Posted March 14, 2011 thats the feature I'm really waiting for because otherwise I have to ask someone to send my the .pkm file via e-mail rather than me doing it myself. Well, I emailed the creator of IR-GTS a couple of days ago, notifying him of this thread, so hopefully we'll see a response sometime "soon." Link to comment Share on other sites More sharing options...
ceolceol Posted March 14, 2011 Share Posted March 14, 2011 Logs for gen 5 GTS deposit. _REQUEST_SUMMARY.txt has a summary of what I did at the top along with all of the GET data. The individual pages are the responses from the server. Sorry for the shitty format, but the logger I use doesn't support exporting logs (lolmac). depositlogs.zip Link to comment Share on other sites More sharing options...
xfr Posted March 14, 2011 Share Posted March 14, 2011 It seems offset 0x37 of the GTS footer when receiving a pokemon is not some "Exchanged flag" flag but used for alternate forms. For the default form it should be set to 0x01 (not 0x00), and to the appropriate form value described on the data structure page of the wiki for alternate forms (e.g. skymin is 0x08) Link to comment Share on other sites More sharing options...
Scarface Posted March 15, 2011 Share Posted March 15, 2011 Nice to see this progress coming along fast. very interesting, they did a lot of changes with the 5th gen gts nice work! Link to comment Share on other sites More sharing options...
azurfire Posted March 17, 2011 Share Posted March 17, 2011 I just thought i'd let you guys know that Infinite Recursion updated his ir-gts website with news that a Generation V update should be coming pretty soon. He thanked the, '...dedicated chaps at Project Pokemon.' for their help. =) Link to comment Share on other sites More sharing options...
xfr Posted March 17, 2011 Share Posted March 17, 2011 I have updated the wiki with offsets for deposit pokemon data. Still have no idea what's in the 0x138-0x1B7 range though. You can see this in action on Pokécheck, it allows you to extract .pkm files from your game and import .pkm files from your pc (e.g. made with pokegen) onto your cartridge, no AR of flashcard required. Link to comment Share on other sites More sharing options...
Infinite Recursion Posted March 17, 2011 Share Posted March 17, 2011 I just thought i'd let you guys know that Infinite Recursion updated his ir-gts website with news that a Generation V update should be coming pretty soon. He thanked the, '...dedicated chaps at Project Pokemon.' for their help. =) Yeah, I'd be sunk without you guys =) I'm working on an update now, but am running into some issues. For some reason, the connection is stalling out immediately after sending the challenge token - that is, the DS only sends one packet. From what I understand from this thread, that initial response should be nearly identical to what it was for Gen 4, but am I missing something? I'll be the first to admit that I'm not very good at network programming. Once I get that out of the way and make that initial handshake work, the rest won't take long at all. Link to comment Share on other sites More sharing options...
xfr Posted March 17, 2011 Share Posted March 17, 2011 Did you remember to append sha1("HZEdGCzcGGLvguqUEKQN"+urlsafe_base64(response)+"HZEdGCzcGGLvguqUEKQN") to all server responses? I just added that to the wiki page on the GTS protocol but look at the first post for more information. Link to comment Share on other sites More sharing options...
M@T Posted March 17, 2011 Share Posted March 17, 2011 For some reason, the connection is stalling out immediately after sending the challenge token - that is, the DS only sends one packet. I've been having the same issue with a program I made that simply forwarded everything the DS sent to gamestats2 to and from the official server. (instead of DS <-> gamestats2, this is DS <-> program <-> gamestats2) The first request works, the response is sent to the DS, but everything stops here. So even official responses are not accepted. Link to comment Share on other sites More sharing options...
Infinite Recursion Posted March 17, 2011 Share Posted March 17, 2011 Did you remember to append sha1("HZEdGCzcGGLvguqUEKQN"+urlsafe_base64(response)+"HZEdGCzcGGLvguqUEKQN") to all server responses?I just added that to the wiki page on the GTS protocol but look at the first post for more information. It's not even getting that far. All I'm getting is: request: http://gamestats2.gs.nintendowifi.net/syachi2ds/web/worldexchange/info.asp?pid=####### response: [challenge token] [timeout] Based on what I've seen, and what M@T said, it looks like there may be some added protection against packets coming from within the same network as the DS. I'll have to test this theory... Link to comment Share on other sites More sharing options...
xfr Posted March 18, 2011 Share Posted March 18, 2011 Interesting, I'll test that myself but if it turns out to be true it will make gts websites all the more useful. Link to comment Share on other sites More sharing options...
Icehawk78 Posted March 18, 2011 Author Share Posted March 18, 2011 Strange. I know on my network, I've done testing from DS <=> Server, and both of those are on the same network. Try seeing if, instead of spoofing a 192.* address, you spoof your public IP while forwarding 80 and 53 onto your computer, and see if that works? Link to comment Share on other sites More sharing options...
M@T Posted March 18, 2011 Share Posted March 18, 2011 I can't reach my public IP from my local network, that's a problem with the router loopback. I tried using ARP spoofing and "man in the middle" attacks to sniff the traffic between the DS and the router and it worked, but it calls HTTPS servers too often and when it does so while it has a poisoned ARP cache (ie. the DS thinks my computer is the router), the HTTPS certificates become invalid and the connection hangs (Cain&Abel automatically replaces the certificates with custom ones and I can't prevent it). However, I was able to sniff some requests, but it is useless now that almost everything has been reverse-engineered. Link to comment Share on other sites More sharing options...
Tizoc Posted March 19, 2011 Share Posted March 19, 2011 I can't reach my public IP from my local network, that's a problem with the router loopback.I tried using ARP spoofing and "man in the middle" attacks to sniff the traffic between the DS and the router and it worked, but it calls HTTPS servers too often and when it does so while it has a poisoned ARP cache (ie. the DS thinks my computer is the router), the HTTPS certificates become invalid and the connection hangs (Cain&Abel automatically replaces the certificates with custom ones and I can't prevent it). However, I was able to sniff some requests, but it is useless now that almost everything has been reverse-engineered. If I am understanding you correctly, you need to be able to hit an external IP for this new GTS system. I would recommended if you can to either try upgrading your router with a DD-WRT firmware if at all possible (this would fix your loopback issue), or if you have a smartphone (iPhone, Android, *not sure about blackberry*) you can get a wifi tether application that will let you get your DS online no problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now