Openkore.com

OpenKore Forums
It is currently 27 Jul 2017, 12:43

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: XKore 3 direct connection to map server. Help required.
PostPosted: 08 Apr 2017, 06:11 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 263
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:
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:
[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:
} elsif ($type == Network::MessageTokenizer::ACCOUNT_ID) {
                  debug "Got data UNKNOWN_MESSAGE... \n","connection";
         $args = {
         
            RAW_MSG => $message
         };

to
Code:
} 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!


Top
 Profile  
 
 Post subject: Re: XKore 3 direct connection to map server. Help required.
PostPosted: 09 Apr 2017, 12:04 
Offline
Noob
Noob

Joined: 09 Apr 2017, 12:02
Posts: 2
have u try CommView ?


Top
 Profile  
 
 Post subject: Re: XKore 3 direct connection to map server. Help required.
PostPosted: 09 Apr 2017, 12:42 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 263
For what purpose?

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
 Post subject: Re: XKore 3 direct connection to map server. Help required.
PostPosted: 09 Apr 2017, 15:10 
Offline
Noob
Noob

Joined: 09 Apr 2017, 12:02
Posts: 2
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 ?


Top
 Profile  
 
 Post subject: Re: XKore 3 direct connection to map server. Help required.
PostPosted: 09 Apr 2017, 15:20 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 263
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!


Top
 Profile  
 
 Post subject: Re: XKore 3 direct connection to map server. Help required.
PostPosted: 23 Apr 2017, 01:12 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1121
Location: Brazil
I don't know How XKore3 works, but i know how to work with the packets along 2015 packets.
But since i don't understand perl and don't understand the kore source of packets (this kore is very complicated).

And don't know nothing about this .
Is Xkore3 using or performing some dll injection ?

How about the crypt keys in Xkore3 ?
Do your server uses keys ?

https://github.com/OpenKore/openkore/issues/497

1) Looks like you're received "The server dennied your connection" or "The server exe is outdated" message inside client ^^

2) Debug the send packet with OllyDbg2.0 ! Attach, and use OllySocketTrace plugin to check the packets.
Maybe it's sending the incorrect slot such as RakkiRO ! ^^ If yes, it's older than 2015 version. or something such as.
If not, when he send the packet, you can see the error. Why it's showing that message.


You only have sendMapLogin and the and send to connectToCharacter.
How about 082D packet ?


Well as i know of exe parser is inside src/Network/Receive.pm ! sub encryptMessageID!

In this case you need to enable the debug function inside config.txt !
You need to check if it receives the 082D, what happens with client.

@marcelinho plugin :

https://github.com/marcelothebuilder/op ... reProxy.pl

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

Click here and travel to a new world -> Newbies
Read before asking something.
How to connect to private servers


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group