Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 08:51

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

Advertisement



Fixing Japanese Silkroad leaked files

Discussion on Fixing Japanese Silkroad leaked files within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old 06/28/2011, 00:45   #241

 
elite*gold: 260
Join Date: Aug 2008
Posts: 560
Received Thanks: 3,751
SMC

Quote:
Originally Posted by Chernobyl* View Post
A bit edited SMC 0.3, so, got login form appear, but pointless... i don't know nor id, nor pw, nor SS code

So, if anyone got anything to say, please, do it .
I worked out a bit of the SMC stuff recently. There's still some minor stuff to work with, but you should be able to make use of a lot of it now.

First, I'll explain their system.

They have a simple group permission system setup, much like any forum system would have. Users are assigned a SMC group. Each group has access to different SMC functionality.


_SecurityDescription : contains the SMC functionality. Three observed columns, an id, a name, and description. The name should follow the format "SMC_*". For login to SMC, SMC_Login is used. For plugins, the format is "SMC_Plugin*". There might be more, but I've not come across them.

_SecurityDescriptionGroup : contains the user groups to which users are assigned. Three observed columns, an id, a name, and a description. The name should just tell a general classification, but it does not have to be anything specific. For example, you can have Group1, Group2, etc... but having something like Admin, StatManager, ServerManager, etc.. might be easier.

_SecurityDescriptionGroupAssign : contains the mappings of user groups to user group permissions. Two observed columns, an id of the group and an id of the permissions. Each permissions for a group has its own row that maps the group id to the permission id. So if you had two groups (1, 2) and three permissions (5, 6, 7), and you wanted to let group 1 have permissions 6 and 7, two rows would be there, "1 6" and "1 7".

The hardest part in working out the database stuff is how the exe's actually use the data. For example, you will see I use tinyint for some of the fields and int for others. The GlobalManager parses the results based on these types so do not change them. I don't know why Joymax's code is setup like this, but it's pretty bad, imo.

Now for getting it all to work.

First, you will need to delete any tables you have that are named: "_SecurityDescription", "_SecurityDescriptionGroup", "_SecurityDescriptionGroupAssign", "_SMC", or "_SMCLog".

Second, you will need to delete any stored procedures named: "_CertifyUser".

Third, change the database name at the top of the following script to match yours. I kept the original database name structure, so mine is called 'account'.

Forth, execute the following sql script in a new query.
Code:
USE [account]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE _SecurityDescription
(
	nID int NOT NULL IDENTITY(1,1),
	szName varchar(32) NOT NULL,
	szDesc varchar(64) NOT NULL,
	PRIMARY KEY(nID)
)
GO

insert into _SecurityDescription values('SMC_Login', '')
insert into _SecurityDescription values('SMC_Plugin_cas', '')
insert into _SecurityDescription values('SMC_Plugin_concurrentuserlog', '')
insert into _SecurityDescription values('SMC_Plugin_modulepatch', '')
insert into _SecurityDescription values('SMC_Plugin_notice', '')
insert into _SecurityDescription values('SMC_Plugin_security', '')
insert into _SecurityDescription values('SMC_Plugin_servercontrol', '')
insert into _SecurityDescription values('SMC_Plugin_sr_notice', '')
insert into _SecurityDescription values('SMC_Plugin_sr_userdata', '')
insert into _SecurityDescription values('SMC_Plugin_sr_useredit', '')
insert into _SecurityDescription values('SMC_Plugin_sr_userlog', '')
insert into _SecurityDescription values('SMC_Plugin_sr_userpunishment', '')
insert into _SecurityDescription values('SMC_Plugin_usercontrol', '')
insert into _SecurityDescription values('SMC_Plugin_userstatistics', '')
GO

CREATE TABLE _SecurityDescriptionGroup
(
	nID tinyint NOT NULL  IDENTITY(1,1),
	szName varchar(32) NOT NULL,
	szDesc varchar(64) NOT NULL,
	PRIMARY KEY(nID)
)
GO

insert into _SecurityDescriptionGroup values('admin', 'Admin group')
GO

CREATE TABLE _SecurityDescriptionGroupAssign
(
	nGroupID tinyint NOT NULL,
	nDescriptionID tinyint NOT NULL
)
GO

insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Login') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_cas') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_concurrentuserlog') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_modulepatch') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_notice') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_security') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_servercontrol') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_sr_notice') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_sr_userdata') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_sr_useredit') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_sr_userlog') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_sr_userpunishment') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_usercontrol') )
insert into _SecurityDescriptionGroupAssign values( (select nID from _SecurityDescriptionGroup where szName = 'admin'), (select nID from _SecurityDescription where szName = 'SMC_Plugin_userstatistics') )
GO

CREATE TABLE _SMCLog
(
	idx int NOT NULL  IDENTITY(1,1),
	name varchar(16) NOT NULL,
	level int NOT NULL,
	message varchar(256) NOT NULL,
	unknown int NOT NULL
)
GO

CREATE TABLE _SMC
(
	nID int NOT NULL IDENTITY(1,1),
	name varchar(16) NOT NULL,
	pass varchar(32) NOT NULL,
	ss varchar(32) NOT NULL,
	smcuser int NOT NULL,
	smcgroup int NOT NULL
)
GO

insert into _SMC values('admin', '202cb962ac59075b964b07152d234b70', '202cb962ac59075b964b07152d234b70', 1, (select nID from _SecurityDescriptionGroup where szName = 'admin'))
insert into _SMC values('user', '202cb962ac59075b964b07152d234b70', '202cb962ac59075b964b07152d234b70', 0, 0)
GO

CREATE PROCEDURE _CertifyUser
	@name varchar(16),
	@pass varchar(32),
	@ss varchar(32)
AS
select smcuser, smcgroup from _SMC
where name = @name AND pass = @pass AND ss = @ss
Now to use it, you need to have the CertificationServer running first then the GlobalManager at minimal.


Assuming you are running those two, which is what I tested with, simply run SMC with an argument of "1" to bypass the need for using "smcupdater.exe". I.e., create a shortcut to smc.exe and add a command line argument to it.


Run smc via the shortcut. The UserID is 'admin' and the Password and SSNumber2 are both '123'. Hit OK to login.


If all is well, you should be able to see the SMC main dialog. You will get a lot of spam messages from 'msg is not completely used'. This can be patched in the exe itself to remove that clutter.


Now it is time to load the plugins. You might want to turn down or off your sound! An alarm will trigger in the program... Simply go to "Application->LoadPlugins". Some plugins will generate errors upon loading. This is because not all files needed for the SMC stuff was leaked. Other plugins crash on processing the game files from the DownloadServer. I'm guessing more data is missing or the format is unexpected.



Most of the plugins functionality has to be implement still. I.e., you must create all of the additional stored procedures executed by SMC as well as any other tables referenced for it to be useful. To get a feel for it, I'd suggest starting with the "security" DLL, which controls the SMC users.

Now the minor stuff to take heed of is:
* I'm not sure about the exact varchar lengths for the description. If you use too long, it might over flow.
* While the szName length is 32, the plugins seem to implement the buffers wrong, so if you use 32 characters, you will overflow the buffer. Use strings that are less than the sizes for now.
* Passwords and SS numbers are in MD5 format. You can use any online or offline tool to calculate them.
* As mentioned, a lot more work has to be done in terms of the stored procedures and tables the plugins use, but this should be a good start for people to get working on SMC!
* Finally, my stored procedure does not work 100%. I.e., if you type in a user name that does not exist, SMC will start still. I don't know enough about MSSQL and SPs to fix this right now.

One last note: The GlobalManager caches the initial SMC setup on load. If you make changes to it after it is running, you have to restart it. There might be a way around that, but I've not looked into it. Every change I've made I had to restart the slyz.exe and GlobalManager.exe. Just a heads up!
pushedx is offline  
Thanks
28 Users
Old 06/28/2011, 00:49   #242
 
elite*gold: 62
Join Date: Mar 2011
Posts: 602
Received Thanks: 2,952
Thank you for such a useful info, pushedx .

You helped very much.
Chernobyl* is offline  
Old 06/28/2011, 00:50   #243
 
elite*gold: 27
Join Date: Dec 2010
Posts: 1,579
Received Thanks: 2,705
This dude made smc running!
Respect!
We need more like pushedx, **** **** ****, cant believe what he've done again for us
lorveth is offline  
Thanks
1 User
Old 06/28/2011, 01:05   #244
 
elite*gold: 0
Join Date: Jun 2011
Posts: 691
Received Thanks: 521
@pushedx SSnumber is not needed for logging in SMC. Only ID+PW is needed but you can also use SSNumber for further security. Then you are able to login. Also let me add you are one of the best silkroad hackers ever. I really appreciate your work

Here I leave you guys a screenshot so you see how it is when working. I'd like to say that running the SMC 0.3 that silkbotter released on a working server, the plugins are just not working, however, few of them (most useless ones) seems to be working, at least showing up the interface, sorry but didn't checked well, but I can assure CAS plugin was working (dont remember which others were too). So the SMC you got is just working on login + couple of useless plugins.

here is the screen of a fully working smc, might help you guys:


EDIT: Your tables are not right, I mean they're lacking lots of stuff. Also when you run it everything working the alarm does not works, alarm functionality means that if any server gets down and you're inside the SMC it'll warm you with sound and a red alarm. Also you can deactivate the alarm itself, all of this is on ServerControl window. If you really need any pic I can make another one

Hope my knowledge helped you guys.


I see you ask for a field length if you specify which field is and on which table I wouldn't mind to give you the right data.
Getzabelz is offline  
Thanks
7 Users
Old 06/28/2011, 03:06   #245
 
elite*gold: 62
Join Date: Mar 2011
Posts: 602
Received Thanks: 2,952
Found out so much info just in few minutes, currently re-factoring incorrect tables.
Chernobyl* is offline  
Thanks
6 Users
Old 06/28/2011, 03:18   #246
 
FoxRayz's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 1,713
Received Thanks: 892
Quote:
Originally Posted by Chernobyl* View Post
Found out so much info just in few minutes, currently re-factoring incorrect tables.
That's great! I appreciate your work guys! Thanks a lot
FoxRayz is offline  
Thanks
4 Users
Old 06/28/2011, 06:20   #247


 
Lupin*'s Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 214
Received Thanks: 48
I hope this will be the year when we will finaly have some real fun on this *** **** game
without paying each month an amount of money or playing with thousands of goldbot i wish you guys the best luck to find the way to complete those files ! PS : I would like to help with something but i have no clue about coding or anything like that sorry :/
Lupin* is offline  
Thanks
1 User
Old 06/28/2011, 06:55   #248
 
SLAYER666's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 349
Received Thanks: 115
Awsome Guys Keep it Going :P
SLAYER666 is offline  
Old 06/28/2011, 06:57   #249
 
elite*gold: 224
The Black Market: 148/0/2
Join Date: May 2011
Posts: 1,053
Received Thanks: 829
+1
n1, keep what you guys are doing, keep it upp
¤iTsbSkuLLy¤ is offline  
Thanks
1 User
Old 06/28/2011, 09:45   #250
 
elite*gold: 62
Join Date: Mar 2011
Posts: 602
Received Thanks: 2,952
Any ideas, why "Permission denied" error appears when trying to start shard service in smc ?

EDIT:

What is it referenced to ?
Here is what i'm talking about



Gonna rest now, so, it would be faster, if someone just explain.
Chernobyl* is offline  
Thanks
1 User
Old 06/28/2011, 12:48   #251
 
elite*gold: 27
Join Date: Dec 2010
Posts: 1,579
Received Thanks: 2,705
@chernobyl, you have to many servers, we should try to fix that.
It should look like that:
GlobalManager
DownloadServer
MachineManager
GateWay Server
FarmManager
AgentServer
ShardManager
GameServer
SMC
Smc is in the end, so we have to fix many stuff.
lorveth is offline  
Old 06/28/2011, 13:00   #252
 
elite*gold: 0
Join Date: Jun 2011
Posts: 691
Received Thanks: 521
Your linkings are just wrong. In server control you should only see 3 machines.

Common(X)
Shard(Y)
ServerMachine

And there you got more than 3 machines.
Getzabelz is offline  
Old 06/28/2011, 13:01   #253
 
Benizakura's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 57
Received Thanks: 43
Quote:
Originally Posted by KingLi :P View Post
stupid tard, get the **** outta here if you dont have anything better to do.
sellfish i will call such tards like you, since you can only leak and not develope, *******.
u mad?
Benizakura is offline  
Old 06/28/2011, 13:07   #254
 
elite*gold: 62
Join Date: Mar 2011
Posts: 602
Received Thanks: 2,952
Quote:
Originally Posted by Getzabelz View Post
Your linkings are just wrong. In server control you should only see 3 machines.

Common(X)
Shard(Y)
ServerMachine

And there you got more than 3 machines.
Yep, from lucianoaibar. Currently, re-factoring them .
Chernobyl* is offline  
Old 06/28/2011, 13:17   #255
 
elite*gold: 27
Join Date: Dec 2010
Posts: 1,579
Received Thanks: 2,705
@up, just get out here.

@chernobyl
Got new tables



Edit, 1 more:



Gotta send you that in msn, but not leak it here in sro section, has no sense as you know
lorveth is offline  
Closed Thread

Tags
server, silkroad


Similar Threads Similar Threads
Anyone got original sl.rar Japanese sro server files ?
09/09/2011 - SRO Private Server - 4 Replies
Anyone got original sl.rar Japanese sro server files ? Searched for them for a long time...
Fixing the Leaked server files Vol.2
06/20/2011 - SRO Private Server - 139 Replies
Hi :D Yeah I know many people tried this, failed and i dont know if this is even possible., but.. I just get bored and decided to create this thread. Ok so I think for now the goal is to start Silkroad Launcher w/o any problems or try to connect to SMC succesfully. For now there is couple of problems, haha. I think we just need to play good with the client versions. Now whats happening: I've used orginal client from sl.rar, as you know its Ver 1.005 so I decided to make ...
what is the japanese title of this english translated japanese song?
05/30/2011 - Music - 3 Replies
http://i972.photobucket.com/albums/ae208/onli0721/ a.png what is the japanese title of this english translated japanese song?
what is the japanese title of this english translated japanese song?
05/28/2011 - Anime & Manga - 3 Replies
http://i972.photobucket.com/albums/ae208/onli0721/ a.png what is the japanese title of this english translated japanese song?



All times are GMT +2. The time now is 08:51.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.