SilkroadPatchUtilites - DownloadServer Tools

08/17/2010 22:21 SyNChR0#31
hmm i wonder why auto-update don't work ... i compiled all and no one aplication stay running all shut down someone can help me ... ?
12/02/2010 16:18 xnukex77#32
Build started 02.12.2010 15:11:15.
1>Project "C:\Documents and Settings\Melteem\Desktop\UpdateServer\src\Download ServerDemo\DownloadServerDemo.vcxproj" on node 3 (rebuild target(s)).
1>_PrepareForClean:
Deleting file "Release\DownloadServerDemo.lastbuildstate".
InitializeBuildStatus:
Touching "Release\DownloadServerDemo.unsuccessfulbuild" .
ClCompile:
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /nologo /W3 /WX- /O2 /Oi /Oy- /GL /D "WIN32" /D NDEBUG /D _CONSOLE /D "_UNICODE" /D "UNICODE" /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Release\\" /Fd"Release\vc100.pdb" /Gd /TP /analyze- /errorReport:prompt DownloadServerDemo.cpp ..\Common\BlowFish.cpp ..\Common\DumpToString.cpp ..\Common\Network.cpp ..\Common\SilkroadSecurity.cpp
DownloadServerDemo.cpp
1>DownloadServerDemo.cpp(13): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
BlowFish.cpp
DumpToString.cpp
Network.cpp
1>..\Common\Network.cpp(4): fatal error C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory
SilkroadSecurity.cpp
1>Done Building Project "C:\Documents and Settings\Melteem\Desktop\UpdateServer\src\Download ServerDemo\DownloadServerDemo.vcxproj" (rebuild target(s)) -- FAILED.

Build FAILED.

Time Elapsed 00:00:06.15
i get error :(
12/02/2010 16:26 xnukex77#33
what's jam files ?
12/02/2010 16:37 Kape7#34
Quote:
Originally Posted by xnukex77 View Post
Build started 02.12.2010 15:11:15.
1>Project "C:\Documents and Settings\Melteem\Desktop\UpdateServer\src\Download ServerDemo\DownloadServerDemo.vcxproj" on node 3 (rebuild target(s)).
1>_PrepareForClean:
Deleting file "Release\DownloadServerDemo.lastbuildstate".
InitializeBuildStatus:
Touching "Release\DownloadServerDemo.unsuccessfulbuild" .
ClCompile:
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /nologo /W3 /WX- /O2 /Oi /Oy- /GL /D "WIN32" /D NDEBUG /D _CONSOLE /D "_UNICODE" /D "UNICODE" /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Release\\" /Fd"Release\vc100.pdb" /Gd /TP /analyze- /errorReport:prompt DownloadServerDemo.cpp ..\Common\BlowFish.cpp ..\Common\DumpToString.cpp ..\Common\Network.cpp ..\Common\SilkroadSecurity.cpp
DownloadServerDemo.cpp
1>DownloadServerDemo.cpp(13): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
BlowFish.cpp
DumpToString.cpp
Network.cpp
1>..\Common\Network.cpp(4): fatal error C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory
SilkroadSecurity.cpp
1>Done Building Project "C:\Documents and Settings\Melteem\Desktop\UpdateServer\src\Download ServerDemo\DownloadServerDemo.vcxproj" (rebuild target(s)) -- FAILED.

Build FAILED.

Time Elapsed 00:00:06.15
i get error :(
You have to download and install the boost resource files.
12/02/2010 18:10 xnukex77#35
Quote:
Originally Posted by Synx7 View Post
You have to download and install the boost resource files.
sry. where setup ? all files .jam :(
12/06/2010 15:45 xnukex77#36
i installed boost but again error :D

7>.\DownloadServerDemo.cpp(13) : fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
7>Build log was saved at "file://c:\Documents and Settings\Melteem\Desktop\DownloadServer\src\Downlo adServerDemo\Release\BuildLog.htm"
7>DownloadServerDemo - 2 error(s), 0 warning(s)
========== Rebuild All: 4 succeeded, 3 failed, 0 skipped ==========
12/06/2010 16:09 xnukex77#37
Can u give me 'boost/filesystem.hpp' ?
12/10/2010 14:16 ossomaster#38
Very good job.
Tnx..
12/16/2010 14:16 xnukex77#39
ur files Shard, gatewayserver ---- shared files Downloadserver Demo ....
How to setup boost library :rtfm:
12/22/2010 21:53 buriko_0007#40
Yeah
06/26/2011 13:59 viky909#41
Quote:
Originally Posted by pushedx View Post
SV.T is pretty simple:

[xx xx xx xx] - size of input data
[xx .. xx] - input data

The rest of the data is just padding.

You use the blowfish string "SILKROADVERSION", but only use 8 bytes as the size for the key. Then you can easily decrypt it and then reencrypt a new version. Writing a simple tool to do it is pretty easy, a few people have already done this work in the past.

You can look at Silkroad.exe to see this logic the easiest. To do this:
- Find where "SV.T" is loaded (search for name)
- Trace down a bit until you see a call like this (sets up blowfish):
Code:
0043780B  |.  6A 08         PUSH 8                                   ; /Arg2 = 00000008
0043780D  |.  8D5424 60     LEA EDX,DWORD PTR SS:[ESP+60]            ; |
00437811  |.  52            PUSH EDX                                 ; |Arg1
00437812  |.  8D4C24 18     LEA ECX,DWORD PTR SS:[ESP+18]            ; |
00437816  |.  C78424 800800>MOV DWORD PTR SS:[ESP+880],0             ; |
00437821  |.  E8 1AD80000   CALL silkroad.00445040                   ; \silkroad.00445040
- The next call decrypts the buffer and then the next call is like atoi (string to int)
- Finally, the version is stored into a variable for later use (EAX has it)

That's all there is to it!
nice work here , but still i cant figure it out
if i need to make simple autoit to read the sro version

Code:
Local $sVersion = FileGetVersion("G:\Silkroad\sro_client.exe")
MsgBox(0,"",$sVersion)
return 0.0.0.0 always :(
so i need as you said here to read the SV.T file but how ?

I think its simple for you as you already make it in edxloader ^_^ !

(with autoit code pls :D )
06/26/2011 18:41 InvincibleNoOB#42
You're doing the wrong thing. Open SV.T and decrypt the file as Drew pointed out. Keep in mind the version is kept there as string. i.e 36 is 3336.
06/27/2011 02:32 elgato3000#43
i got the same error man
06/28/2011 18:18 viky909#44
Quote:
Originally Posted by InvincibleNoOB View Post
You're doing the wrong thing. Open SV.T and decrypt the file as Drew pointed out. Keep in mind the version is kept there as string. i.e 36 is 3336.
Ok thanks for the reply

as I understand I need to :

1- extract the file
2-decrypt it
3-get the sro version ,but

I dont know how to extract it even with autoit ,but can you explain more with script ?
06/28/2011 19:25 pushedx#45
Quote:
Originally Posted by viky909 View Post
I dont know how to extract it even with autoit ,but can you explain more with script ?
You can't easily use AutoIt for this stuff. If you wanted to, you must have a compatible blowfish implementation first, fully understand the PK2 structure to implement the processing logic in AutoIt, and finally be able to work with binary file data in memory.

Assuming you did have all of that, you would:
1. Open the media.pk2 file.
2. Follow the file chain until you reach SV.T.
3. Load the SV.T file into memory.
4. Skip the 1st 4 bytes and blowfish decode the next 8 to get the version.