elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   Shaiya PServer Development (https://www.elitepvpers.com/forum/shaiya-pserver-development/)
-   -   [Release] Sdata Encryptor/Decryptor (w/ source) (https://www.elitepvpers.com/forum/shaiya-pserver-development/711369-release-sdata-encryptor-decryptor-w-source.html)

pushedx 08/25/2010 19:48

[Release] Sdata Encryptor/Decryptor (w/ source)
 
1 Attachment(s)
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.

Shaiya Xtreme 08/25/2010 20:47

YEAHAAAAA THX SO MUCH ^^

lilprohacker 08/25/2010 21:40

well damn, my secret is out...

Shaiya Xtreme 08/25/2010 21:48

^^

EP5 run ^^ now i wait for the US EP5 Version ^^

lilprohacker 08/25/2010 22:11

1 Attachment(s)
To make it easier to use for everyone, I remade it to separate files. Now all you have to do is 'Drag the file on top of the EXE'. This way you don't need to make any bat files or use cmd prompt.

AriezOMG 08/26/2010 09:26

If this is what im looking for it's beautiful :O

wurstbrot123 08/27/2010 15:45

Good job, just like all your releases / guides.

shinru2004 08/27/2010 18:55

lol.... well i guess good things do come to those who wait. Great job pushedx, oh and push's version works by dragging the file to it as is.

lilprohacker 08/27/2010 19:01

Quote:

Originally Posted by shinru2004 (Post 6578427)
lol.... well i guess good things do come to those who wait. Great job pushedx, oh and push's version works by dragging the file to it as is.

no it doesn't, it requires to to specify which way you want it to go, encrypt/decrypt as a argument before the file name.

jamessimpler 08/27/2010 20:27

Awesome thank you for this awesome tools

nXu 08/30/2010 02:21

I guess pushedx is going to get about 100 thanks :)

AriezOMG 08/30/2010 10:57

he gets the thanks for getting lilpro to release his easier ones lol.

shen1l 08/30/2010 13:29

i love you so much!~!~pushedx

(GM)Psycho 11/09/2010 22:19

I have the decrypted file, but it still is not at all in anyway in english so I am able to know what I am editing. I've read a tutorial and I can find the same locations in Hex but what I saw in the tutorial was in english. Here is a picture



[Only registered and activated users can see links. Click Here To Register...]

can anyone tell me what I am doing wrong?

Vaara 11/11/2010 00:32

Soooo.. how does this basically help players ingame O.o some examples? =P

wurstbrot123 11/11/2010 15:25

it doesnt really helps player, it owuld on some privatserver ( nos hack )
but beside that it mostly helps other developer for collecting
itemdata skilldata and so on. Its also usefull for privatserver.

Bаne 03/13/2011 01:33

#request move to Development section. :p

getupkid77 05/12/2011 23:43

tried to use lph's edited version of this to decrypt NpcQuest.SData to allow gatekeeper for new maps wouldnt decrypt though just encrypt :(

castor4878 05/13/2011 05:00

1- the tool encrypt and decrypt sdata.

as indicatd in the README whose purpose is TO BE READ
<<Usage: ShaiyaSdataTool decrypt <file.sdata> ... [<file.sdata>]
Attempts to decrypt the files. New files are generated upon success.

Usage: ShaiyaSdataTool encrypt <file.sdata> ... [<file.sdata>]
Attempts to encrypt the files. New files are generated upon success.>>

2- meantime there is no "new maps" that requires a new gatekeeper; soccer should be set to AH gatekeeper, map 71 to 74 use portals.

getupkid77 05/13/2011 05:45

thats the problem the gatekeeper in apulune does not allow access to the 71 to 74 maps it says a message something like not enough to use this portal and yes i have enough gold and such to do so through searching threads the only solution i found was to decrypt the S.Data in the files i dont beleive lph's release didnt have a readme was pretty self explainitory

castor4878 05/14/2011 16:04

Quote:

Originally Posted by getupkid77 (Post 10614683)
thats the problem the gatekeeper in apulune does not allow access to the 71 to 74 maps it says a message something like not enough to use this portal and yes i have enough gold and such to do so through searching threads the only solution i found was to decrypt the S.Data in the files i dont beleive lph's release didnt have a readme was pretty self explainitory

not enough gold is the generic msg when something went wrong.

- the client NpcQuest.sdata (gate-keeper section) shall be consistent with the server PSM_CLient/bin/data/NpcQuest.sdata (same file but ciphered in client & in plain for server)
- the gate-keeper information must be valid.

that said, the expected way to access these maps is:
71: portal at Servus' Colony, map 68
72: portal at Queen Caput, map 69
73: portal in Dentatus section (top North) of map 70 (+927.8 +40.4 +1590.2)
74: portal in Ales section of map 70 (+721.8 +8.4 +309.8)


All times are GMT +1. The time now is 14:12.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.