Register for your free account! | Forgot your password?

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

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

Advertisement



[PHP] Clientless Silkroad Security + ServerStats

Discussion on [PHP] Clientless Silkroad Security + ServerStats within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old 06/30/2011, 23:24   #31
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
They don't first they knew the values but when joymax changed it they just kept 3500 even for the new server they are immediately 3500 if I'm correct.
kevin_owner is offline  
Old 07/01/2011, 01:20   #32
 
S3cret's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 111
Received Thanks: 65
Alright if theres a new server it auto gets 3500 as max no. of people. If this value is wrong I gonna have to change it manually.
S3cret is offline  
Old 07/01/2011, 08:32   #33
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
Can't you check it when the server's in Check status?
There should only be one Joymax employee be logged in then.
lesderid is offline  
Old 07/01/2011, 20:19   #34
 
elite*gold: 293
Join Date: Mar 2008
Posts: 108
Received Thanks: 37
can we login to silkroad servers with this code?
fatihy93 is offline  
Old 07/01/2011, 20:29   #35

 
elite*gold: 260
Join Date: Aug 2008
Posts: 560
Received Thanks: 3,778
Quote:
Originally Posted by fatihy93 View Post
can we login to silkroad servers with this code?
Yes, you can, if you add in the logic for it.

However, it's impractical to use this as a clientless because you'd need to control the server PHP is running on to allow longer script execution as well as allow for more resources to be used.

You'd need a VPS or Dedicated Server that you can setup PHP how it needs to be done. By then, you might as well have just written a C++ clientless to run on that server instead.

At best, this is good for server stats, but that's it really. Other languages and tools would be much more suitable once you had a VPS/Dedicated Server.
pushedx is offline  
Old 07/05/2011, 04:05   #36
 
elite*gold: 0
Join Date: Feb 2008
Posts: 158
Received Thanks: 15



Array ( [0] => Error [1] => A connection could not be established. )

what i do?
EuSouHunteR is offline  
Old 07/05/2011, 09:23   #37
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Open the index.php and you should see an ip of the gateway server but also a version and locale. You need to change those to the elitesro ones. I also got this error if I only change the ip to use elitesro. The easiest way to get the locale en version is toe add elitesro to edxSilkroadLoader and you can check the version and locale. change it and try it again.
kevin_owner is offline  
Thanks
1 User
Old 07/05/2011, 18:28   #38
 
sirout1's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 302
Received Thanks: 33
help
just upload the php and ready to do work or something else?
sirout1 is offline  
Old 07/05/2011, 20:09   #39
 
elite*gold: 0
Join Date: Feb 2008
Posts: 158
Received Thanks: 15
Quote:
Originally Posted by kevin_owner View Post
Open the index.php and you should see an ip of the gateway server but also a version and locale. You need to change those to the elitesro ones. I also got this error if I only change the ip to use elitesro. The easiest way to get the locale en version is toe add elitesro to edxSilkroadLoader and you can check the version and locale. change it and try it again.
I change infos and, same.
EuSouHunteR is offline  
Old 07/05/2011, 20:57   #40
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Mabye you should check your firewall settings. I don't know if you're hosting it locally but can you connect to elitesro with the normal launcher?

Hmm I just checked it and server 1 for elitesro also gives me that error so i guess it's offline. but login2 login3 and login4 work fine for me.

Code:
	$_REQUEST["host"] = "login4.sro.vn";
	$_REQUEST["port"] = 15779;
	$_REQUEST["locale"] = 39;
	$_REQUEST["version"] = 36;
	$_REQUEST["timeout"] = 5;
@sirout1 Yes you could just upload them to your web host but this server stats pagine does need sockets, BCMATH and MCRYPT so those 3 things should be enabled at the webhost and ofcourse php. but drew explained it in his first post.
kevin_owner is offline  
Old 07/05/2011, 21:24   #41
 
elite*gold: 0
Join Date: Feb 2008
Posts: 158
Received Thanks: 15
Quote:
Originally Posted by kevin_owner View Post
Mabye you should check your firewall settings. I don't know if you're hosting it locally but can you connect to elitesro with the normal launcher?

Hmm I just checked it and server 1 for elitesro also gives me that error so i guess it's offline. but login2 login3 and login4 work fine for me.

Code:
	$_REQUEST["host"] = "login4.sro.vn";
	$_REQUEST["port"] = 15779;
	$_REQUEST["locale"] = 39;
	$_REQUEST["version"] = 36;
	$_REQUEST["timeout"] = 5;
@sirout1 Yes you could just upload them to your web host but this server stats pagine does need sockets, BCMATH and MCRYPT so those 3 things should be enabled at the webhost and ofcourse php. but drew explained it in his first post.
know any good and cheap hosting to run this script?
EuSouHunteR is offline  
Old 07/07/2011, 07:38   #42
 
elite*gold: 0
Join Date: Feb 2008
Posts: 158
Received Thanks: 15
can one help i make good design for stats?
EuSouHunteR is offline  
Old 07/13/2011, 12:53   #43
 
S3cret's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 111
Received Thanks: 65
Hi there it's me again.

I wanna update the serverstats all 10 seconds in my db. I wanted to use a cronjob but my server does only allow them in a 1 minute interval. So I thought I could make the updatescript update the stats 5 times (all 10 secs) and close then. I wanted to make use of a for loop and timers but this doesn't work:
Heres the code (is there no way in this board to use an expander?)
PHP Code:
<?php
    $_REQUEST
["host"] = "gwgt1.joymax.com";
    
$_REQUEST["port"] = 15779;
    
$_REQUEST["locale"] = 18;
    
$_REQUEST["version"] = 314;
    
$_REQUEST["timeout"] = 5;

    
$db mysqli_connect(blabla);

    if (
mysqli_connect_errno() == 0) { //DB-Connection successful

        
for ($i 1$i <= 5$i++) {
            
$Timer microtime(TRUE);

            
// Execute the server stats page and store the results. This code doesn't change.
            
ob_start();
            include( 
"ServerStats.php" );
            
$result ob_get_contents();
            
ob_end_clean();



            
//code that updates the db, definitely works!



            //let 10 seconds pass
            
while (microtime(TRUE) - $Timer <= 10000) {
                
usleep(500000); //0.5 secs sleeping
            
}

        }

    }

?>
WAt the moment when i run this script the page is loading for years and the stats are not updated a single time.

Any idea what could be the issue? I'm really not a pro in php^^

Regards
S3cret is offline  
Old 07/13/2011, 14:07   #44
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
Quote:
Originally Posted by S3cret View Post
WAt the moment when i run this script the page is loading for years and the stats are not updated a single time.
OMG! How do you know? Can you travel in time?
lesderid is offline  
Old 07/13/2011, 14:12   #45
 
S3cret's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 111
Received Thanks: 65
Quote:
Originally Posted by lesderid View Post
OMG! How do you know? Can you travel in time?
Wow ur so freaking funny. May I expect a serious answer from you or are u just searching for attention?
S3cret is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Silkroad Security API
06/09/2011 - SRO Coding Corner - 5 Replies
i was trying to run the server_stats example but it just immediately closeed and i cant figure out why.. also i think i need ti configure the ip or port? where can i do this? edit: I've found the error.. Index was Outside the bounds of the array line 33 the code:
[HELP]silkroad security
05/09/2011 - SRO Coding Corner - 6 Replies
what it silkroad security??? what is the packet analyzing???
Silkroad New security?
01/24/2010 - Silkroad Online - 68 Replies
This must be a joke or something another wanna be Game Guard? cus silkroad added a new folder called hackshield to the game directory... lol anyone have any inputs on this? maybe for once they trying to do something lol kinda funny... :rtfm:
[Tips] Silkroad Account Security
08/24/2009 - SRO Guides & Templates - 12 Replies
Hey, I know there are some threads about this out there but I think this will be useful though. Your password should contain at least 7 letters and/or numbers. Hint: Come up with some really senseless sentence with letters and numbers. Here an example : I look forward to the Simpsos Halloween Special on October 31th., Now take the first letter of every word and your password is: “ilfttshsoo31” For a password like this a bruter needs about 107 years and you can remember it easily. ...
Silkroad Security Video
11/06/2008 - SRO Hacks, Bots, Cheats & Exploits - 10 Replies
Hi guys, i just played a bit with Silkroad and c++. The result was a Undetected Silkroad Keylogger. I was Scanning it for fun on Virustotal.com the result was 1/36 The 1 Antivir who said anythink was Panda - Suspicous File Maybe you have the Question now why did you post this here?



All times are GMT +1. The time now is 10:58.


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