Jump to content

Recommended Posts

Posted (edited)

Here are the Wonder Trade packets if anyone else is interested.

Sent:

  Reveal hidden contents
Edited by codemonkey85
Spoiler tags for my sanity.
  • Replies 284
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Any chance you could upload the straight binary data? I've been curious about these but haven't gotten properly setup to get them.

EDIT:

In case it's any use to anyone here: as of now the backend functionality for the PKX editor I've been working on is done. All that's left to do now is rearrange the UI and add labels so things actually make sense. I modeled my program after the structure reported by Mat and Xfr, and verified myself that encryption and shuffling work, so anyone who's been able to extract / inject PKX files should find this helpful.

The source is on my GitHub (https://github.com/codemonkey85/PKMDS-G5/tree/master/PKX%20Editor). I'll post a binary (for Windows only) later. It will require the .Net Framework for the time being.

Posted
  Bond697 said:
you can see the pokemon in both of those just from a glance. looks like a lot of the same stuff as when trading. different order, though.

Aha! Yeah, I've managed to extract the pokemon from the packet and decrypt them.

The pokemon itself is the 232 bytes from offset 0x3d -> 0x124 (within the data portion of the packet).

Last step is to try and stick my own pokemon in the receiving end of the wonder trade and see how it goes.

Loved your nickname for the gible by the way ;)

Posted

Because the download is an *.exe file the browser warns you and blocks it by default. You must allow it to be saved manually. Also Windows will probably block it too.

Posted
  Maddaren said:
And where should i download this? Mozzilla? Opera? Anything that doesn't block PKX Editor?

Just click the arrow next to the download on the toolbar in chrome. There is a menu item to keep the file. If you have Windows 7 or 8, the SmartScreen filter will also require clicking on the "Run Anyway" option.

Posted
  Maddaren said:
And where should i download this? Mozzilla? Opera? Anything that doesn't block PKX Editor?

well i cant see how this editor will be useful for us JUST yet but... i can see from your screenshot, theres a dropdown arrow on the file click it and and click on "keep"

Posted
  Zaneris said:
Aha! Yeah, I've managed to extract the pokemon from the packet and decrypt them.

The pokemon itself is the 232 bytes from offset 0x3d -> 0x124 (within the data portion of the packet).

So wait... They send Wonder Trade data unencrypted? I love Nintendo very very much.

Posted

Just a doubt, How could i understand the numbers of both items, abilities and attacks? It seems a bit confusing. I am just talking about the PKX Editor, of course!

Posted
  xyzman said:
What .NET framework version is required? I don't have access to Windows machine, and WINE + .NET was always a gamble...

Pretty sure it's 4.0. The backend library is vanilla C++ so I could compile a version for Linux / Mac if people need it.

  Maddaren said:
Just a doubt, How could i understand the numbers of both items, abilities and attacks? It seems a bit confusing. I am just talking about the PKX Editor, of course!

This is just a bare-bones editor for those experimenting with the new format. If you want something polished... wait a while.

Posted
  xyzman said:
I already regret saying this. :)

Thats alright, I haven't even been able to test messing with the packet yet because for some reason I can see the exchange take place within wireshark, but then it doesn't ever seem to pass through windivert...

My conclusion is that the 3DS packets while just being regular UDP somehow don't pass through WPF (unlikely), or it's due to my setup and using a virtual adapter to broadcast (more likely).

Gonna dig up an old router today and see if I have more success.

Posted

So you're having trouble using a virtual adapter to broadcast? I was actually considering switching over to that, in favor of a pure software solution that didn't require an extra router.

At the moment, I'm searching for a program that I can easily tweak to swap out sections of packets. It would be nice if this involved HTTP traffic or if there was a simple DNS address I could spoof... It sure would make things a lot easier. UDP modification is relatively new to me.

Posted
  Keplar said:
So you're having trouble using a virtual adapter to broadcast? I was actually considering switching over to that, in favor of a pure software solution that didn't require an extra router.

At the moment, I'm searching for a program that I can easily tweak to swap out sections of packets. It would be nice if this involved HTTP traffic or if there was a simple DNS address I could spoof... It sure would make things a lot easier. UDP modification is relatively new to me.

No, not an issue with broadcasting, it just seems like virtual adapter traffic isn't passing through the WPF, or it's missing from the API.

If it's possible to do what I'm trying to do, I'll have a working example by the end of tonight, if not.. Hopefully one of these skilled gentlemen come up with something releaseable :P

Posted
  evandixon said:
http://gbatemp.net/threads/pkx-editor-by-codemonkey85.356901/

You're on GBAtemp now. Just thought you'd find that was interesting. (Like me, when Sky Editor appeared on some French forum.)

Yikes. Thanks for the head's up.

  Zaneris said:
If it's possible to do what I'm trying to do, I'll have a working example by the end of tonight, if not.. Hopefully one of these skilled gentlemen come up with something releaseable :P

Good luck man. I think we're all pretty excited to start getting some real data (well I know I am).

Posted
  Zaneris said:
Thats alright, I haven't even been able to test messing with the packet yet because for some reason I can see the exchange take place within wireshark, but then it doesn't ever seem to pass through windivert...

My conclusion is that the 3DS packets while just being regular UDP somehow don't pass through WPF (unlikely), or it's due to my setup and using a virtual adapter to broadcast (more likely).

Gonna dig up an old router today and see if I have more success.

I tested it last night and I saw the exchange happen in Wireshark, two 989 byte long UDP packets formatted in the same manner as quoted here on page 4. I used a wifi-dongle in a Soft-AP setup + Wireshark to get the data. I could provide the binary packet data for sent and received packets. I was able to isolate and decrypt the Pokémon data with the tools provided in this thread. Also an interesting side-note: The game is directly communicating with the user's 3ds it is wondertrading with, no server in between or anything, at least for the process of trading. (I checked IP locations vs ingame locations of trade partners)

Proof: https://www.dropbox.com/s/aaqq31er9eu969w/pkxedit.png

Edit: Nvm, I misread your post. I thought you could not see the exchange, but then I noticed you were the one posting the first packets and are now another step ahead. Good luck with injecting.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...