RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Client Encryption - Farewell

brodock

Sorceror
But you still have the problem that if you put the wrong password once and then the right one it doesn't lets you enter?

yes, that's the problem... i get stuck on "verify account" and then i need to click on the "X" button to get to the login screen again.

I have no way to login back to that account, even if i wait a little and try again...

I do have the latest svn core.

I can double check everything and post back to here.
 
I use RC2
when i login with client 6.0.12
in console
Code:
Client: 127.0.0.1: Connected. [1 Online]
Encryption: Passed - New Client
Checking packetLength 62 == 62
Client: 127.0.0.1: Encrypted client detected, using keys of client 6.0.12
Encryption: Check 1
Encryption: Check 2
Encryption: Check 3
Encryption: Check 4
Encryption: Check 5
Login: 127.0.0.1: Creating new account 'satanic'
Client: 127.0.0.1: Connected. [2 Online]
Encryption: Failed - It should never reach here
Client: 127.0.0.1: Disconnected. [1 Online] [satanic]
Client: 127.0.0.1: Disconnected. [0 Online]

i log in, change the shard and stuck on connections! :mad:
 

Smjert

Sorceror
I think you forgot this, line 224:
Code:
else if (m_Buffer.Length [COLOR="Red"]>[/COLOR]= 4) //Old Client
{

Edit: i saw you use RC2, RC2 doesn't support new client if i remember correctly, you need the most updated version of runuo.
 
USE latest SVN and client 6.0.13
sometimes i have this errors in console and cant connect

Encryption: Failed - Short Lenght
Encryption: Passed - New Client
 

Smjert

Sorceror
Is not a real error... sometimes not fully complete packets arrives to the server (for example it receive only some bytes 2 or 3), so he waits for the next part.
Sometimes i have this problem also without the encryption system, i think is a RunUO problem.
 

Smjert

Sorceror
brodock;802805 said:
isn't there any sort of timeout ?

Nono.. when i say that it "waits" for the next bytes i mean that it returns from the function which decode the packets, and that function will be called again when the next bytes arrives.
 

Filou

Sorceror
It´s a great script! :)

It seems to work with clients lower 7.x...

Is it correct that it does not work for clients 7.x and higher? :(

May i have to modify it? :confused:
 

Filou

Sorceror
P.S.: these are the Keys i have

Code:
                       new LoginKey("7.0.10", 0x1f9c9575, 0x1bd26d6b),
			new LoginKey("6.0.12", 0x2F2BA7ED, 0xA2817E7F),
			new LoginKey("6.0.10", 0x2D236D5D, 0xA380A27F),
			new LoginKey("6.0.9", 0x2EEB076D, 0xA263BE7F),
			new LoginKey("6.0.8", 0x2ED3257D, 0xA27F527F),
			new LoginKey("6.0.7", 0x2E9BC78D, 0xA25BFE7F),
			new LoginKey("6.0.6", 0x2E43ED9D, 0xA234227F),
			new LoginKey("6.0.5", 0x2E0B97AD, 0xA210DE7F),
			new LoginKey("6.0.4", 0x2FF385BD, 0xA2ED127F),
			new LoginKey("6.0.3", 0x2FBBB7CD, 0xA2C95E7F),
			new LoginKey("6.0.2", 0x2F63ADDD, 0xA2A5227F),
			new LoginKey("6.0.1", 0x2F2BA7ED, 0xA2817E7F),
			new LoginKey("6.0.0", 0x2f13a5fd, 0xa29d527f),
			new LoginKey("5.0.9", 0x2F6B076D, 0xA2A3BE7F),
			new LoginKey("5.0.8", 0x2F53257D, 0xA2BF527F),
			new LoginKey("5.0.7", 0x10140441, 0xA29BFE7F),
			new LoginKey("5.0.6", 0x2fc3ed9c, 0xa2f4227f),
			new LoginKey("5.0.5", 0x2f8b97ac, 0xa2d0de7f),
			new LoginKey("5.0.4", 0x2e7385bc, 0xa22d127f),
			new LoginKey("5.0.3", 0x2e3bb7cc, 0xa2095e7f),
			new LoginKey("5.0.2", 0x2ee3addc, 0xa265227f),
			new LoginKey("5.0.1", 0x2eaba7ec, 0xa2417e7f),
			new LoginKey("5.0.0", 0x2E93A5FC, 0xA25D527F),
			new LoginKey("4.0.11", 0x2C7B574C, 0xA32D9E7F),
			new LoginKey("4.0.10", 0x2C236D5C, 0xA300A27F),
			new LoginKey("4.0.9", 0x2FEB076C, 0xA2E3BE7F),
			new LoginKey("4.0.8", 0x2FD3257C, 0xA2FF527F),
			new LoginKey("4.0.7", 0x2F9BC78D, 0xA2DBFE7F),
			new LoginKey("4.0.6", 0x2F43ED9C, 0xA2B4227F),
			new LoginKey("4.0.5", 0x2F0B97AC, 0xA290DE7F),
			new LoginKey("4.0.4", 0x2EF385BC, 0xA26D127F),
			new LoginKey("4.0.3", 0x2EBBB7CC, 0xA2495E7F),
			new LoginKey("4.0.2", 0x2E63ADDC, 0xA225227F),
			new LoginKey("4.0.1", 0x2E2BA7EC, 0xA2017E7F),
			new LoginKey("4.0.0", 0x2E13A5FC, 0xA21D527F),
			new LoginKey("3.0.8", 0x2C53257C, 0xA33F527F),
			new LoginKey("3.0.7", 0x2C1BC78C, 0xA31BFE7F),
			new LoginKey("3.0.6", 0x2CC3ED9C, 0xA374227F),
			new LoginKey("3.0.5", 0x2C8B97AC, 0xA350DE7F),

i suggest i need more?! The newest client is 7.0.11 :( :(
But RunUO SVN400 shows:

Code:
Encryption: Failed - Short Lenght
Encryption: Passed - Old Client
Encryption: Check - Waiting

But nothing more...
 

delete123

Wanderer
now is there finally a conventient soulution to get newest svn (484) runuo servers to handle encryption by not using external scripts which only work half and where ppl are dependent on other key lists?
 

Vorspire

Knight
These scripts are only half working?

Seems fine to me, but I have the 2.2 version of these files and have it working 100% on RunUO 1.0 final and 2.0 RC2 with a small Encryption.cs edit to handle the differences in the Server.Listener.
 

delete123

Wanderer
thanks for your post. i know about this thread. what i did not like about the idea was that the keyfinder tool had the keys statically calculated. it did not excerpt keys from the exe itself. and besides, i had liked a list of nearly all possible clients. :)
 

_Epila_

Sorceror
I'm getting problems when i login with razor

If i patch client encrypt on welcome screen and not checked Use Osi encrypt everything go ok

with not checked patch client encrypt and not checked use Osi encrypt
Client: 127.0.0.1: Connected. [1 Online]
Encryption: Failed - Short Lenght
Encryption: Passed - New Client
And i get stuck in verifying account

with not checked patch client encrypt and Checked Use OSI encrypt
the same as above, stuck in verifying account

Client 7.0.5 and RunUO svn 501
how can it be fixed
 

JayCee

Wanderer
Hello Everyone

Ive Just Started, with RunUo and this was is my First Problem.

I've installed RunUO-2.0-Final
I've added RunUO-Encryption-2.4

Using Mondains Legacy
Server Port has been set to 3131

Client Im Using is 6.0.14.1 (Encrypted)

Not using any Razor Login Tools

new LoginKey("6.0.14", 0x2C022D1D, 0xA31DA27F),

On Log, just before char creation I disconnect here is the Server Readout.

Encryption: Failed - Short Lenght
Encryption: Passed - New Client
Checking packetLength 62 == 62
Client: 192.168.0.1: Encrypted client detected, using keys of client 6.0.14
Encryption: Check 1
Encryption: Check 2
Encryption: Check 3
Encryption: Check 4
Encryption: Check 5
Login : 192.168.0.1: Valid credentails for God
Client 192.168.0.1: Encrypted Client Detected, Disconnecting
Client 192.168.0.1: Disconnected. [0 Online] [God]

It seems its first Passing the Encrypted Client and then on a second Look its Rejecting it.

There must be something i have missed.

can anyone help me please ?
 

Smjert

Sorceror
Well, after some tests i had to remove this piece of code to make it work everytime:

Code:
// If we're decrypting using LoginCrypt and we've already been relayed,
                // only decrypt a single packet using logincrypt and then disable it
                if (m_AlreadyRelayed && m_Encryption is LoginEncryption)
                {
                    uint newSeed = ((((LoginEncryption)(m_Encryption)).Key1 + 1) ^ ((LoginEncryption)(m_Encryption)).Key2);

                    // Swap the seed
                    newSeed = ((newSeed >> 24) & 0xFF) | ((newSeed >> 8) & 0xFF00) | ((newSeed << 8) & 0xFF0000) | ((newSeed << 24) & 0xFF000000);

                    // XOR it with the old seed
                    newSeed ^= m_Seed;

                    IClientEncryption newEncryption = new GameEncryption(newSeed);

                    // Game Encryption comes first
                    newEncryption.clientDecrypt(ref buffer, length);

                    // The login encryption is still used for this one packet
                    m_Encryption.clientDecrypt(ref buffer, length);

                    // Swap the encryption schemes
                    m_Encryption = newEncryption;
                    m_Seed = newSeed;

                    return;
                }
 

_Epila_

Sorceror
is anyone trying to use this with client 7.0.6.5?
when i try to login it says that i'm using client 4.0.6 instead of 7.0.5.6

edit:
i found a problem when decrypting the packets, but i dont know how to fix
its not client side because you can log in with razor

login packet
bold = login
italic = password
byteindex:decrypted byte
Code:
[COLOR="Lime"]0:128 header[/COLOR]
[B]1:70
2:101
3:101
4:101
5:104
6:0
7:0
8:0
9:0
10:0
11:0
12:0
13:0
14:0
15:0
[COLOR="Red"]16:128 (should be 0)
17:64 (should be 0)
18:32 (should be 0)
19:16 (should be 0)
20:8 (should be 0)
21:4 (should be 0)
22:2 (should be 0)
23:1 (should be 0)[/COLOR]
24:0
25:0
26:0
27:0
28:0
29:0
30:0[/B]
[I]31:107
32:51
33:120
34:116
35:102
36:116
[COLOR="Red"]37:128 (should be 0)
38:64 (should be 0)
39:32 (should be 0)
40:16 (should be 0)
41:8 (should be 0)
42:4 (should be 0)
43:2 (should be 0)
44:1(should be 0)[/COLOR]
45:0
46:0
47:0
48:0
49:0
50:0
51:0
52:0
53:0
54:0
55:0
56:0
57:0
58:0
59:0
60:0
61:93[/I]
 

kat20

Sorceror
Client encryption 7.0.6.5

Ok so I deleted my old year-in-the-making server, and downloaded the "final RUNUO" server, Im running into this encryption problem again and dont want to go through the process of rebuilding core and allthat. I have downloaded this program, and it seems to pass the old client but then in sayes waiting on the next one. I think it may be because I have the wrong Key, however I have searched and cannot find it, I tryed to use the instructions for the ExtractKey in promp since my version is too new for the keygen, I tryed everyway I could and with NO results, so does anyone happen to know the Key to 7.0.5.0 because I would be very greatful if they did, and this would work. I have spent many many hours reseaching and I custom built my last server core up and since this FINAL RUNUO seems to be so complete I would really like to use it.... Thanks again any helpful links or the key itself even if it is PM'd to me would be very very appreciated, I asure you guys I have put serious hours in here, If i had known that the final version had this encrypted prob I would have never deleted my server... My mistake .. Thanks


This is what I am getting now..............


RunUO - [www.runuo.com] Version 2.0, Build 3567.2838
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (2240 items, 630 mobiles)
Regions: Loading...done
World: Loading...done (180312 items, 36763 mobiles) (9.20 seconds)
Restricting client version to 7.0.5.0. Action to be taken: LenientKick

Joeku's Staff Runebook: Loading...

Listening: fe80::583c:81d1:7d86:d0d%13:2593
Listening: 192.168.2.2:2593
Listening: fe80::c13:1438:bd28:6e88%11:2593
Listening: 169.254.110.136:2593
Listening: ::1:2593
Listening: 127.0.0.1:2593
Listening: fe80::5efe:192.168.2.2%15:2593
Listening: 2001:0:4137:9e76:2c75:1f24:b836:4ef3:2593
Listening: fe80::2c75:1f24:b836:4ef3%12:2593
Jail System: Starting
Jail System: 0 jailed players loaded.
Warning: 20 bad spawns detected, logged: 'badspawn.log'
Warning: 2 bad spawns detected, logged: 'badspawn.log'
Client: 192.168.2.2: Connected. [1 Online]
Encryption: Passed - Old Client
Encryption: Check - Waiting







Thought id let you guys know I figured it all out ... Im an idiot lol .... Thanks guys working great so far ....
 
Top