Hello Shaiya section! I decided to take a little break from Silkroad and wanted to have a look at this game. I've only had it for less than a day, but so far the game seems pretty straightforward to reverse. So, here's my first release, a tool to encrypt/decrypt the Sdata files. I've noticed there aren't any public versions around and the methods don't seem to be publicly known, so hopefully this helps out some with the servers and all those that need it.
I am using ShaiyaUS client version 113. If the code does not work as-is for other versions or languages, then you probably will need to update the keys and possibly the CRC table. The US client is not packed nor uses any protection, so finding this information there was pretty easy. I've included two reference screenshots in Olly that should help anyone capable to find the information, so refer to that if you need to!
Important Note: I've not actually tested this in a live client or server. However, I did run it on the original files and as you will see in the screenshots, the generated output matches the source files exactly. This should mean it will work, but I've not been able to actually test it in that environment. So if you have a server that uses files compatible with this tool's version, please let me know how it goes! There are no 'unknown' fields in the decryption/encryption process, so I'm not expecting anything to break. I took care of the CRC generation as well as the proper 16 byte alignment for encryption/decryption, so I think that's all there is.
Of course though, if you do modify a file, make sure it's still valid. Trying to use a malformed data file will probably result in some errors, so check that first if you think something is not working right. As I just mentioned, if there were any potential problems with the tool, they should be noticeable on the original source files, but since it all matches up, I really think it's correct.
Screens:
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
VirusScans:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Download:
[Only registered and activated users can see links. Click Here To Register...](binary + source + screens)
Enjoy! Please feel free to leave any feedback or comments on this project.
I am using ShaiyaUS client version 113. If the code does not work as-is for other versions or languages, then you probably will need to update the keys and possibly the CRC table. The US client is not packed nor uses any protection, so finding this information there was pretty easy. I've included two reference screenshots in Olly that should help anyone capable to find the information, so refer to that if you need to!
Important Note: I've not actually tested this in a live client or server. However, I did run it on the original files and as you will see in the screenshots, the generated output matches the source files exactly. This should mean it will work, but I've not been able to actually test it in that environment. So if you have a server that uses files compatible with this tool's version, please let me know how it goes! There are no 'unknown' fields in the decryption/encryption process, so I'm not expecting anything to break. I took care of the CRC generation as well as the proper 16 byte alignment for encryption/decryption, so I think that's all there is.
Of course though, if you do modify a file, make sure it's still valid. Trying to use a malformed data file will probably result in some errors, so check that first if you think something is not working right. As I just mentioned, if there were any potential problems with the tool, they should be noticeable on the original source files, but since it all matches up, I really think it's correct.
Screens:
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
VirusScans:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Download:
[Only registered and activated users can see links. Click Here To Register...](binary + source + screens)
Enjoy! Please feel free to leave any feedback or comments on this project.