Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 10:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Server Side Handshake Packet

Discussion on Server Side Handshake Packet within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
Server Side Handshake Packet

Hello,
I am trying to make some kind of gateway server for silkroad. It's not exactly a gateway server, a part of it. It will work until 0xA101 (Serverlist packet.)
I know the structure of gateway packets. But thanks to drew, i've never been busy with handshake (0x5000) packet. But now i have to find out how its made. I know the structure (thanks to lesderid, see: ). But i do not know what i should write for following:

Code:
[BYTE][8]   Initial Blowfish Key
[DWORD]	Security Count Seed
[DWORD]	Security CRC Seed
[DWORD]	Additional Seed (1)
[DWORD]	Additional Seed (2)
[DWORD]	Additional Seed (3)
[DWORD]	Additional Seed (4)
[DWORD]	Additional Seed (5) 

[BYTE][8]	New Blowfish Key Base
I tried a static value, (capturing as normal GatewayServer does and send it) but the client falls. On every connection the blowfish is different. I wanna know how its built.

And something strange, I checked some open-source emulator codes. None of them ever cared of handshake! How they supposed to work, i did not understand

Thanks!
sarkoplata is offline  
Old 08/11/2012, 06:51   #2

 
elite*gold: 260
Join Date: Aug 2008
Posts: 560
Received Thanks: 3,780
My C# implements both client and server sides of the entire protocol. You can take a look at my for an example of how a GatewayServer could be setup. You would need to do more packet checks, since that was a simple example showing the image code, but the base is there.

For the technical details on everything, you can take a look at my "" article. That version was not updated with a few mistakes (such as 0x7FF vs 0x7FFF), but it's ok since the code is done in the C# API.
pushedx is offline  
Thanks
2 Users
Old 08/11/2012, 12:20   #3
 
Schickl's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
You can disable encryption and thus that handshake by sending the 5000 packet with one byte set to 1 as content

Then you don't need to worry about handling encrypted packets and that stuff
Schickl is offline  
Thanks
1 User
Old 08/11/2012, 15:20   #4

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
Quote:
Originally Posted by pushedx View Post
My C# implements both client and server sides of the entire protocol. You can take a look at my for an example of how a GatewayServer could be setup. You would need to do more packet checks, since that was a simple example showing the image code, but the base is there.

For the technical details on everything, you can take a look at my "" article. That version was not updated with a few mistakes (such as 0x7FF vs 0x7FFF), but it's ok since the code is done in the C# API.
EDIT:
Nevermind. I killed the encryption as Schickl said. Works fine!

Thanks. I've used your SilkroadSecurityApi and now I can connect and receive ServerList (0xA101) (I have coded until it yet, nothing at all) with my clientless which uses SilkroadSecurityApi aswell. But other stat tools stuck after ImageCodeServer sends the 0x2001 GatewayInfo packet. Why do you think it can be because of?
sarkoplata is offline  
Old 08/14/2012, 14:01   #5

 
elite*gold: 260
Join Date: Aug 2008
Posts: 560
Received Thanks: 3,780
Depends on the stats tool and which version of ISRO they target. Old ISRO used two shorts for current/max capacity while new ISRO uses a single float for capacity ratio. That would be one thing to check.

If you aren't using ISRO, contentid 18, then some versions require other special bytes depending on which contentid it is.

Other than that, no, you'd have to check each tool to see why. Add simple logging to the program see if the tools get the packets and can't process them, or they don't get the packets in the first place.
pushedx is offline  
Reply


Similar Threads Similar Threads
[SUCHE]Neue 2012 Waffen client side + server side
06/07/2012 - Metin2 PServer Guides & Strategies - 4 Replies
Hallo com wie Überschrift schon sagt suche ich die neuen 2012 Waffen Server Side + Client Side. Ich weiß echt gibt hier genug Post die die neuen Waffen haben aber selten welche die die dazugehörigen Server side Querys Ein großen dank schon mal der mir die richtigen per Kommi oder pn schickt :)
Server side ann client Side things.
08/29/2011 - Battle of the Immortals - 10 Replies
Just for more we know guys.. this way none will lose his time. Wtaht we know now is: Speed: Cleint Side. Map Coord: Client side. Damage : Server Side.
Hackable: Client side vs Server side
05/01/2008 - Dekaron - 7 Replies
I'v been reading a bit and I was already familiar with winhex and the likes, so I was able to start messing around in the Dekaron process rather easily. What I'm wondering is, what exactly can be modified, and what use it could be. For example, we know that character experience is server side, so modifying it would have no real purpose, but for some reason, it'll let you equip weapons of higher level if you meet the other requirements, which could also be modified should they need be. So all...
Character name restrictions are client side, not server side
04/24/2008 - Conquer Online 2 - 1 Replies
"Sorry non-alpha numberic....." That error message you get when you type in special characters in your character name, is client sided. It does no server check. Im not a coder or anything, so I'm not sure how to fix that. But since it is client sided, it would be a lot easier to repair this problem.



All times are GMT +1. The time now is 10:15.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.