[Release] Silkroad server status

05/21/2012 20:56 torstmn#1
Hey guys,
today I'm going to release my 'Silkroad server status'(another just 4 fun tool) tool which allows you to see the server's status. Took me about 2 hours to write it (thanks to pushEdx for the SilkroadSecurityApi!).

Features:
+ Login server status
+ Server status (Online, Check)
+ Cur/Max user.
-> It's a simple server status tool.

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

How to:
1. Extract the archive to your desired folder.
2. Open "settings.cfg" with your notepad or any other texteditor.
Quote:
//##########################################
//# Silkroad server stats example settings #
//##########################################
//-------------Info-------------
//serverIP = the target server's IP
//serverPort = the login server port of the target's server.
//clientLocale = the locale of the client
//clientVersion = the version of the client.
//refreshRate = the auto refresh of the server info in milli seconds (ms)
//useThread = Use the multi-threading function..(keep it to 'true'!)
//------------------------------
3. Configure the settings as shown in the settings.cfg!
4. Run the tool and wait a moment so it can connect..
5. Have fun!
Hint:
To find out the locale use edxLoader!

Copyright:
You are not allowed to publish this program on any other site under your name!!

Download:
1.1:
Quote:
[Only registered and activated users can see links. Click Here To Register...]
1.0:
Quote:
[Only registered and activated users can see links. Click Here To Register...]
Changelog:
1.1
{
+ Added support for mulitiple servers.
- Removed online/offline loginserver.
* New configuration system (INI).
}
If you like my work say thanks.
05/21/2012 23:12 Disco Teka#2
#approved
05/22/2012 00:08 BestOnWorld#3
Good Work Thanks Neklas
05/22/2012 22:14 torstmn#4
Added v1.1

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

Changelog:
1.1
{
+ Added support for mulitiple servers.
- Removed online/offline loginserver.
* New configuration system (INI).
}
05/22/2012 22:18 ღ ∂ Ropp#5
Good work, @ copyright, nobody will listen :$
05/23/2012 18:09 •ᵔBeGodOfWarᵔ•#6
Great release , but you could re-upload on another host , this one which you've upload in is nearly under ddos or smth else .
07/03/2013 07:48 khongcotien#7
help me, i can't check Server stats of VSro : ip = 123.30.200.5
port 15779
version 196
plz help me !!!
05/31/2014 13:16 ntmhpht#8
check ip, port login. Who knows just help me
07/27/2015 13:03 subscope#9
Someone could reupload it please? :)

Update: I found it finally! For people who want it: [Only registered and activated users can see links. Click Here To Register...]
07/28/2015 10:45 Zargrin#10
This Program Run In Pc Or VPS ?
07/28/2015 18:51 B1Q B0SS#11
Quote:
Originally Posted by #BourBon View Post
This Program Run In Pc Or VPS ?
both

you could simply do dis in php
Code:
<?php 
$fp = @fsockopen("SERVER IP", "Gateway Port or gameserver", $errno, $errstr, 1);
if (!$fp) {
echo '<Font><Font Color= "RED">Offline</Font></Font>';
}else{
echo '<Font><Font Color= "LIME">Online</Font></Font>';
fclose($fp);
} ?>
that will check if the server status online

never tried online players but i should work if you execute a cmd command like

Code:
<?php echo 
(exec('netstat -a -n |find "15779"  |find "ESTABLISHED" /c')+0); ?>
note this will work on server side only
07/28/2015 19:11 k.i.d.d.o#12
Quote:
Originally Posted by B1Q B0SS View Post
both

you could simply do dis in php
Code:
<?php 
$fp = @fsockopen("SERVER IP", "Gateway Port or gameserver", $errno, $errstr, 1);
if (!$fp) {
echo '<Font><Font Color= "RED">Offline</Font></Font>';
}else{
echo '<Font><Font Color= "LIME">Online</Font></Font>';
fclose($fp);
} ?>
that will check if the server status online

never tried online players but i should work if you execute a cmd command like

Code:
<?php echo 
(exec('netstat -a -n |find "15779"  |find "ESTABLISHED" /c')+0); ?>
note this will work on server side only
PHP

Code:
<?php
function Check($host, $port=25565, $timeout=30) {
	//Set up our socket
	$fp = fsockopen($host, $port, $errno, $errstr, $timeout);
	if (!$fp) return false;
	
	//Send 0xFE: Server list ping
	fwrite($fp, "\xFE");
	
	//Read as much data as we can (max packet size: 241 bytes)
	$d = fread($fp, 256);
	
	//Check we've got a 0xFF Disconnect
	if ($d[0] != "\xFF") return false;
	
	//Remove the packet ident (0xFF) and the short containing the length of the string
	$d = substr($d, 3);
	
	//Decode UCS-2 string
	$d = mb_convert_encoding($d, 'auto', 'UCS-2');
	
	//Split into array
	$d = explode("\xA7", $d);
	
	//Return an associative array of values
	return array(
		'motd'        =>        $d[0],
		'players'     => intval($d[1]),
		'max_players' => intval($d[2]));
}
?>
07/28/2015 19:18 witchymoo#13
no idea what that is but it's definitely neat stuff :P
07/28/2015 19:21 B1Q B0SS#14
Quote:
Originally Posted by witchymoo View Post
no idea what that is but it's definitely neat stuff :P
dunno why i always read "neat" as "t3res"

gg
07/28/2015 19:26 witchymoo#15
Quote:
Originally Posted by B1Q B0SS View Post
dunno why i always read "neat" as "t3res"

gg
what is t3res?