• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Trying to get OTClient to work with my server (I think its RSA related)

MikeOT

Well-Known Member
Joined
Jan 22, 2017
Messages
234
Solutions
2
Reaction score
88
I'm using Tfs 0.4

I've spent the last 7 hours trying everything I can think of to make OTClient work with it, and I just can't figure it out.

I'm able to login with the official client, but otclient is giving me fits.

I think the problem is rsa related, but then again I'm not the brightest crayon in the box... probably more toward the gray spectrum :D

I'm hoping one of you fine intelligent people can help me out.




Ok, so like I said I can use the official tibia client to login

When I try to use OT client I get an error like the network is dropped or down and on my server console it says:

[Warning - Protocol::RSA_decrypt] First byte != 0



So at this point I'm assuming that the rsa my server is using is different from what is being used by otclient. So I started doing some digging (not knowing much about how rsa works, mind you)


I found the rsa that otclient uses: Imgur: The most awesome images on the Internet


and then I did some digging on the server.. otserv.cpp just sends me to openssl/rsa.h which doesn't seem to give me the actual rsa keys, but I did manage to find them in configmanager.cpp here: Imgur: The most awesome images on the Internet


I think I'm on the right track, but I'm not quite sure what to change on the client end.



I've tried to plug and play those rsa keys into the client in every single possible combination that I can come up with, to no avail.


Although, once I start changing them, I end up with this error in the console when trying to log in:

warning - protocol ::RSA_decrypt not valid packet size

This leads me to believe that I'm on the right track, because the error changed, but I can't for the life of me connect the dots :)


I noticed that the RSA keys that I found in the server files are much longer than the ones used by OTclient. Would that have anything to do with this packet size error?

I have no idea what I'm doing, but I am trying nonetheless. :D

Be gentle. ;)
 
otclient/const.lua at master · edubart/otclient · GitHub

otclient-master\modules\gamelib\const.lua
Code:
OTSERV_RSA  = "1091201329673994292788609605089955415282375029027981291234687579" ..
              "3726629149257644633073969600111060390723088861007265581882535850" ..
              "3429057592827629436413108566029093628212635953836686562675849720" ..
              "6207862794310902180176810615217550567108238764764442605581471797" ..
              "07119674283982419152118103759076030616683978566631413"

CIPSOFT_RSA = "1321277432058722840622950990822933849527763264961655079678763618" ..
              "4334395343554449668205332383339435179772895415509701210392836078" ..
              "6959821132214473291575712138800495033169914814069637740318278150" ..
              "2907336840325241747827401343576296990629870233111328210165697754" ..
              "88792221429527047321331896351555606801473202394175817"

Maybe you should change OTSERV_RSA to your server's RSA?
 
Well, I can't figure out which to change?

I mean, which of those numbers are which out of the 5 rows?

I can't figure out what corresponds to the rsa of my server, and by copying the prime1, prime2, etc from my server to there, it just gives me this:

warning - protocol ::RSA_decrypt not valid packet size
 
Well, I can't figure out which to change?

I mean, which of those numbers are which out of the 5 rows?

I can't figure out what corresponds to the rsa of my server, and by copying the prime1, prime2, etc from my server to there, it just gives me this:

warning - protocol ::RSA_decrypt not valid packet size

Replace OTSERV_RSA with RSA_MODULUS which you can mostly find inside configmanager.cpp

"xxxxxxxxxxxx" ..
"xxxxxxxxxxxx" ..
"xxxxxxxxxxxx" ..
is just for a better looking line, which shows you a good overview.

You can also just copy your RSA_MODULUS into 1 line:
OTSERV_RSA = "........................your very long rsa number in here..............................."
 
Thank you. That is where I was confused. I will try it asap :)

I wasn't sure what to use. (Prime1, prime2, modulus, etc)

The 5 rows of different numbers.... no idea what is what there hehe.
 
Replace OTSERV_RSA with RSA_MODULUS which you can mostly find inside configmanager.cpp

"xxxxxxxxxxxx" ..
"xxxxxxxxxxxx" ..
"xxxxxxxxxxxx" ..
is just for a better looking line, which shows you a good overview.

You can also just copy your RSA_MODULUS into 1 line:
OTSERV_RSA = "........................your very long rsa number in here..............................."
dzwienże block otclient, no one will be able to use it soon ... Is it possible to paste the bot from the original version to the Otclient Server version?
 
Back
Top Bottom