Here, I'll comment on the 2nd part of this.  You can detect whether VAC
is running(server is in secure mode), by doing this:  (This is a quote
from the e-mail I'd previously posted to this list.)  A standard
detailsquery will NOT tell you whether the server is running in secure
mode or not.

Below, is a response from the new server query command: infostring
You'll see down at the end of the string, that you have
secure\1....Obviously this server is using VAC..

** Notice that this is the only command that returns a string, as
opposed to a byte, as a result.

����infostringresponse
\protocol\46\address\66.150.49.246:27015\players\15\proxytarget\0\lan\0\
max\20\gamedir\cstrike\description\CounterStrike\hostname\OCD's Big
Empty CS
Server\map\fy_pool_day\type\d\password\0\os\l\secure\1\mod\1\modversion\
1\svonly\0\cldll\1


Now this is the response from the only server that still advertises that
Cheating-Death is required, and actually means it:

����infostringresponse
\protocol\46\address\146.20.84.22:27015\players\0\proxytarget\0\lan\0\ma
x\20\gamedir\firearms\description\FireArms\hostname\[I*N]-TeamION
Private (CD Required) FEEL THE
STEEL!\map\obj_bocage\type\d\password\1\os\w\secure\0\mod\1\modversion\2
\svonly\0\cldll\1 

As you can see, secure is set to 0.

Hopefully this will help anyone who was wondering how to accomplish this
task.  Just as an added note, here's an excerpt from the
server_protocol.txt from the HL SDK v2.3...


"infostring" (SDK 2.3)
        (int32)                 -1
        (string)                "infostringresponse"
        (string)                string containing key/value pairs
delimited by the '\' character.


GeSpot

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: November 19, 2002 14:26
To: [EMAIL PROTECTED]
Subject: Re: [hlds_apps] Bug report, question on packet splitting &
secure


no comments??

 
> Hi @all (first post)
> 
> First a bug report: if the hostname contains more than 3 dots in a row
> (e.g.: hostname="My little server....blabla") the infostring response 
> does not contain the /hostname/%server_hostname%/ pair.
> Don't know if anybody reported it before.
> 
> And my questions...
> There are two undocumented things I would please someone who realy 
> knows it (of course who supposes it is also welcome ;-)) to confirm it

> (or not confirm
> it)
> 
> 
> 
> first- splitted udp packets if the response of a query gets to long 
> (discussed here one than one time.)
> 
> I found this analysis - describing the rules response -  anywhere 
> (qstat I
> think):
> 
> splitted to two packets:
> FF FF FF FF 6C [data]
> FE FF FF FF 07 02 00 00 02 FF FF FF FF 6C [data] 
> FE FF FF FF 07 02 00 00 12 [data] 
> 
> splitted to three packets:
> FE FF FF FF 07 02 00 00 03 FF FF FF FF 6C [data]
> FE FF FF FF 07 02 00 00 13 [data] 
> FE FF FF FF 07 02 00 00 23 [data] 
> 
> 07 02 00 00 variates and is some kind of challenge numer - an id 
> telling which packets schould be one. the next byte is splittet into 
> two 4 bit nibles - the upper one describes the packet number, the 
> lower one how many packets will be sent.
> 
> is this correct???
> 
> 
> 
> second - detecting VAC
> It seems that this is also possible with the udp details query (not 
> only infostring and rcon status). There is an undocumentet byte on the

> end of the detail response which seems to indicate if the server is 
> secure or not. Is this reliably??
> 
> 
> thx.
> 
> --
> +++ GMX - Mail, Messaging & more  http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/ Min. surfen!
> 
> _______________________________________________
> hlds_apps mailing list
> [EMAIL PROTECTED] 
> http://list.valvesoftware.com/mailman/listinfo/hlds_apps
> 

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/ Min. surfen!

_______________________________________________
hlds_apps mailing list
[EMAIL PROTECTED]
http://list.valvesoftware.com/mailman/listinfo/hlds_apps

_______________________________________________
hlds_apps mailing list
[EMAIL PROTECTED]
http://list.valvesoftware.com/mailman/listinfo/hlds_apps

Reply via email to