Page 7 of 14

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Wed Sep 07, 2022 4:18 pm
by jrsdc
Good :roll:

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Thu Sep 08, 2022 12:11 am
by dude2207
Would also like to add that structure of the NET file was figured out so no need for the painful Windows XP/TLS initial setup. At this point, it's just a matter of playing The Waiting Gameā„¢ while we figure out all the things that need to be figured out. I make no promises on ETAs.

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Thu Sep 08, 2022 12:17 am
by ioncannon
And we found the packets blocking Jojo's, SFIIX and SPFIIX.

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Thu Sep 08, 2022 3:44 am
by runkthepunk
Great work guys this is wonderful progress :)

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Tue Sep 13, 2022 3:21 am
by spinksy
This is awesome stuff, the thought of Powerstone 2 among other fighting games being able to be played online is exciting stuff!!

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Tue Sep 13, 2022 9:29 am
by dark
This is really exciting. Many of these capcom fighters and the like are the games that have stood the test of time and that people are most interested in playing on their dreamcasts these days.

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Tue Sep 13, 2022 11:26 am
by ioncannon
So while I wait for the modem side of things to be figured out, I've taken a look at Sakura Taisen, Datona USA, Propeller Area and Aero Dancer iFSD (love me some flight sims).

The cool thing is three of em use the BBA and can be tested easily on Flycast. I've noticed the authentication lib for Dricas is the same on all three and have basically mapped them out.

The issue (as has been said before) is Dricas uses SSL to encrypt the HTTP connection to the server. It looks like it sends a commodityId (game type?), username, and password. The server then returns either a success (unsure if that is just 200 OK) or a failure with a body containing the "rejectCause", "limitDate", and "illegalUser" params. The function itself (I labeled doDricas) seems to only return a 1 for success or an error code (negatives) which the game can handle as it pleases.

A lot of these games use a LobbyEngine NetSDK library which handle calling this function and handling the error. They also have some nice debug info. Sadly patching out the function like PSO does seems to just cause the connection to hang before it fails. My guess is the next step is to connect to a "Gate Server" that gives the list of lobby servers to the client. However no IP/Port is stored for this server and I am worried the Dricas success response is the ip to this server.

The doDricas Func:

https://cdn.discordapp.com/attachments/ ... nknown.png

https://cdn.discordapp.com/attachments/ ... nknown.png

The function calling it:

https://cdn.discordapp.com/attachments/ ... nknown.png

I need to get into contact with the PS2 DNAS guy and see how he generated new certs for the DNAS system. Maybe something like that can be done for the older Dreamcast lib. I do have the client cert that is pinned to the games however (unsure if differs between em, didn't diff).

https://cdn.discordapp.com/attachments/ ... 1/cert.bin

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Tue Sep 13, 2022 12:01 pm
by ioncannon
The LobbyEngine is interesting in the fact it has 3-4 servers.

Auth Server (Dricas)
Gate Server
Lobby Server (multiple)
Game Server (optional)

Sakura differs from the LobbyEngine games but still has a Gate Server. But like I said, I can see where the Gate Server connection happens (and the dbg msg with the ip/port it will use) but have no clue where it gets this ip/port.

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Tue Sep 13, 2022 12:47 pm
by Scrivani
Nice info,

Looks like a gateway must be created and hosted to support that conversation

Good job, enjoy the process , it is nice to troubleshot

Re: A friend and I RE'd the KDDI Capcom games but ran into a hardware roadblock. Here's how 15+ games could come back on

Posted: Tue Sep 13, 2022 2:01 pm
by ioncannon
Doh! "doDricas" should return 0, while setting the rejectCause also be set to 0 (if doDricas returns 0 or -1 it proceeds to check for any returned errors in the authObj struct). Hard coding a "return 1" to the error parser fixed it.

Ok I am seeing Flycast trying to open a connection to 203.179.41.170:9500! Weird; I wonder if this IP is hard coded?? 203.179.*.* is a Japanese IP so looks like we are getting somewhere.

Daytona also has a similar 203.179.*.* IP.