XKore 3 direct connection to map server. Help required.

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

XKore 3 direct connection to map server. Help required.

#1 Post by Mortimal »

So i am trying to connect XKore 3 to map server bypassing login server and char server connection.

What i am doing.

First - setting up XKore 3 client receive for listening 127.0.0.1:60125 (i will redirect there all map server traffic from client):

config.txt

Code: Select all

XKore 3
...
XKore_listenIp
XKore_listenPort 60125
Second - setting up XKore 3 server communication (ip and port for map server of Ragnarok game server):

servers.txt

Code: Select all

[MyServer]
ip 89.108.109.26
port 15121
...
serverType kRO_RagexeRE_2014_10_22b
...
Third - redirecting traffic from client to my XKore 3 proxy with ProxyCap program:

Proxy:
Image
Redirection:
Image
Image

Fourth - all unknown packets path as raw - doing nothing!

PacketParser.pm - 412 line
Change

Code: Select all

} elsif ($type == Network::MessageTokenizer::ACCOUNT_ID) {
						debug "Got data UNKNOWN_MESSAGE... \n","connection";
			$args = {
			
				RAW_MSG => $message
			};
to

Code: Select all

} elsif (($type == Network::MessageTokenizer::ACCOUNT_ID)
			|| ($type == Network::MessageTokenizer::UNKNOWN_MESSAGE && $config{XKore} == 3)) {
						debug "Got data UNKNOWN_MESSAGE... \n","connection";
			$args = {
			
				RAW_MSG => $message
			};
Ok! Time to start and there is the problem!!

XKore 3 start? - OK!
Image
Login to char server? - OK!
Image
Connection of client to XKore 3 after picking char? - OK!
Connection of XKore 3 to map server? - OK!
Image
Login to map server? - FAILED!
Image

Reasons?

Image

I need to catch that packet from client and send it to game server cause it is encrypted map server login packet! But it goes too fast and XKore 3 cant catch it! as result cant send it to map server!

Need help Solving this problem!
Please use pin function for uploading your file contents!

dare631
Noob
Noob
Posts: 2
Joined: 09 Apr 2017, 12:02
Noob?: Yes

Re: XKore 3 direct connection to map server. Help required.

#2 Post by dare631 »

have u try CommView ?

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: XKore 3 direct connection to map server. Help required.

#3 Post by Mortimal »

For what purpose?
Please use pin function for uploading your file contents!

dare631
Noob
Noob
Posts: 2
Joined: 09 Apr 2017, 12:02
Noob?: Yes

Re: XKore 3 direct connection to map server. Help required.

#4 Post by dare631 »

u need to catch packet right ?
u can see what port that send packet from and to there in commview if its encrypted u need to find that key that they use
and u can make a bridge to make that work i think like capture and send it back or original > encrypt > encrypted > send right ?

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: XKore 3 direct connection to map server. Help required.

#5 Post by Mortimal »

I can catch it in any way I like. I got 3 programs to do it... But it is useless cause each time it is different! I want Kore to catch it and transfer to server with no changes. Read the bottom of the post:
Mortimal wrote: ....
I need to catch that packet from client and send it to game server cause it is encrypted map server login packet! But it goes too fast and XKore 3 cant catch it!
...
Please use pin function for uploading your file contents!

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: XKore 3 direct connection to map server. Help required.

#6 Post by SkylorD »

If it are keys used by CSPRNG

you will need set one breakpoint at map login and then, after, another in rand() function.

Can use patterns to detect it. It evolves only ecx 8, C and 10 :)
Learn rules

Post Reply