• 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!

Help setting new RSA Key for server and client (trying to make only my custom otclient able to connect to server)

Terotrificy

Well-Known Member
Joined
Oct 18, 2020
Messages
231
Solutions
9
Reaction score
75
Location
Santiago, Chile.
Hi, i'm struggling with my RSA Key on my server (peonso/tibialegacyserver (https://github.com/peonso/tibialegacyserver))

I generated my own RSA Key following this tutorial: RSA Keys Generator (https://otland.net/threads/rsa-keys-generator.266103/#post-2645772)

My otserv.ccp in my otserver looks like this (the commited lines):


*The green commited lines are my custom RSA Keys i tried (following the linked convertion method) and the actual lines are the ones by default.

and my client const.lua looks like this (the commited lines):


*The green commited lines are my custom RSA Keys i tried (following the linked convertion method) and the actual lines are the ones by default.

When i tried to connect with my new compiled server and my otclient with new RSA Key, i just got the error (ERROR 2) and can't connect.

I also tried logging with my new compiled server and the old RSA key in my client just to check what would happen and the server went down...(i'm worried if it can happen in a future when ppl try to connect to my server, right now i'm testing it in local).

I know by fact the hexas are converted correctly because i made it manually in this website: Hexadecimal to Decimal Converter (https://www.rapidtables.com/convert/number/hex-to-decimal.html)

and checked the conversion of the hexas was right in this website: ASN.1 JavaScript decoder (https://lapo.it/asn1js/#)

As it was said in the tutorial i used, in p i put prime1, in q i put prime2, in d i put privateExponent and in my client-sided const.lua i put the modulus, although i'm not sure i pasted it correctly there. I hope someone can guide me please, thanks!

Pd: I attached the RSA key generated if anyone wanna check. (ofc if i success in doing it, i will generate a new one).
 

Attachments

Gesior.pl

Mega Noob&LOL 2012
Senator
Premium User
Joined
Sep 18, 2007
Messages
2,368
Solutions
44
Reaction score
1,823
Location
Poland
GitHub
gesior
RSA is very weak method to block other clients/otclient. Newbie crackers will find it in .exe / LUA and use in their own client.
 
Last edited:
OP
OP
Terotrificy

Terotrificy

Well-Known Member
Joined
Oct 18, 2020
Messages
231
Solutions
9
Reaction score
75
Location
Santiago, Chile.
RSA is very weak method to block other clients/otclient. Newbie crackers will fix it in .exe / LUA and use in their own client.
I'm a newbie myself hehe, if there is another method to block it i would love to know and learn, atm i'm gonna try it :p
Post automatically merged:

generate your rsa here
Btw, it worked, thank you very much <3!
 
Last edited:
Top