Register for your free account! | Forgot your password?

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

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

Advertisement



Executing GM Command using PHP

Discussion on Executing GM Command using PHP within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
Mystical-Online's Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 123
Received Thanks: 34
Executing GM Command using PHP

Dear Community,

searched the whole web for suggestions or maybe a complete solution to execute GM commands out of PHP scripts.

Does anyone know something about it, maybe any knowledge about the communication between server an SMC?

Looking forward for some interesting suggestions, ideas and information.

Your team of Mystical Online
Mystical-Online is offline  
Old 04/29/2013, 23:51   #2
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,869
Received Thanks: 4,686
You can write commands in the world wide web with PHP and any Char you logged in (clientless or not) are reading your commands and execute it.
Devsome is offline  
Old 04/30/2013, 11:09   #3
 
Mystical-Online's Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 123
Received Thanks: 34
Hi Devsome,

can you give me more information about that? How does it work exactly?
I read the term clientless many times for now, are there any suggestions to realize a something like a API between Server an PHP?
Mystical-Online is offline  
Old 04/30/2013, 12:28   #4
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Well the easiest way I can come up with is to use the PHP Server List example PushEdx created. It has all the code included to connect with a program which has the standard silkroad security.

So what you need to do is to connect with the PHP to the GlobalManager, get some info of the packets you need (Reverse them with a proxy or mabye someone released info about these packets). Then you "simply" create some webpages which send these packets to the GlobalManager.
kevin_owner is offline  
Old 04/30/2013, 13:17   #5
 
LastThief*'s Avatar
 
elite*gold: 60
Join Date: Feb 2012
Posts: 3,942
Received Thanks: 6,474
Quote:
Originally Posted by kevin_owner View Post
Well the easiest way I can come up with is to use the PHP Server List example PushEdx created. It has all the code included to connect with a program which has the standard silkroad security.

So what you need to do is to connect with the PHP to the GlobalManager, get some info of the packets you need (Reverse them with a proxy or mabye someone released info about these packets). Then you "simply" create some webpages which send these packets to the GlobalManager.
Adding to this quote :
You need to identify yourself to global manager as "ServiceManager" to allow you to pass, then start sniffing packets from smc then send them using php.

You need to ping the global manager with 7204 each second and 2002 each 4 seconds to keep the connection alive or global manager will just disconnect you off.

Just as an example of logging in global manager

Code:
if (packet.Opcode == 0x6005)
                        {
                            Packet loginauth = new Packet(0x7001);
                            loginauth.WriteAscii(Convert.ToString(Base.ini.GetValue("SMC_AUTH", "ID")));
                            loginauth.WriteAscii(cMD5.ConvertStringToMD5(Convert.ToString(Base.ini.GetValue("SMC_AUTH", "PW"))));
                            loginauth.WriteAscii(cMD5.ConvertStringToMD5(""));
                            loginauth.WriteUInt16(24);
                            loginauth.WriteUInt16(0);

                            gw_security.Send(loginauth);

                        }
Have fun !
LastThief* is offline  
Old 05/01/2013, 07:54   #6
 
Mystical-Online's Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 123
Received Thanks: 34
Hi,

nice information are there existing classes or do you use a class in sample which you build up on your own?

There're many things used php before, but packet sniffing with php is completely new to me anything special to watch out for?
Mystical-Online is offline  
Old 05/01/2013, 11:57   #7
 
elite*gold: 0
Join Date: Jun 2007
Posts: 79
Received Thanks: 19
You can have take watch to this:
cyberninjah is offline  
Reply

Tags
clientless, command, control, gamemaster, php


Similar Threads Similar Threads
Executing Metin2.sg (Promokey & M8's)
11/21/2012 - Metin2 - 5 Replies
Merhaba, Suche einen netten Menschen, der mir einen Promokey gibt (falls überhaupt noch vorhanden) und nette Mitspieler, die wirklich was reißen wollen und verzweifelt einen Server suchen, auf dem man ordentlich spielen kann. ;) Skype: CypherTwy
Help Executing a Dll File
06/13/2012 - Metin2 Private Server - 5 Replies
Hello I Play In One Server That I Cant Execute Any Dll File, Everytime That I Try To Inject One Dll, Open One Text Box That Say I Cant Use Any Cheat/Bot and My Client Will Close... So my question is, so havew some form to execute one dll? My injecting one file on the paste of metin or something else? Cumpz, MeroVi Someone?!?
seacrusher crush after executing,any help!
05/24/2012 - Browsergames - 1 Replies
yes,helo,I have problem with starting seacrusher bot,its yust crash same sec. after executing it and here are details: Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: seacrusher.exe Problem Signature 02: 1.0.0.0 Problem Signature 03: 4fb29ff9 Problem Signature 04: seacrusher Problem Signature 05: 1.0.0.0 Problem Signature 06: 4fb29ff9
bot stucked when executing StorageAuto functionality
01/08/2010 - Ragnarok Online - 0 Replies
Hi All, Basically i have two related problems 1) my character freezes on the storage map. However this only occurs when im autobuying something. 2) after the bot finish autobuying, autostorage is activated, it goes out of the map and get stuck/freeze. issuing 'autostorage' makes it properly go to storage and store things. then it opens storage for the second time doing nothing. then tries to autosell even if i configured it to not autosell thereby producing error. now it freezes...
Error Executing File
07/30/2008 - Silkroad Online - 0 Replies
Silkroad Online Basically i downloaded and installed the SRO Installer like 500 times. and i get the same error everytime.. Error Executing File "C:\program files\silkroad\New SRO Client Version 1.150"



All times are GMT +1. The time now is 00:30.


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.