Code: |
/sockudp [-bntkd] [bindip] |
Code: |
/sockudp -k gquerysource 80.160.78.217 27301 ����TSource Engine Query |
Code: |
/sockudp -k gqueryut 195.149.21.71 7898 \info\ |
Code: |
on *:udpread:gquery*:{ sockread &t sockclose $sockname echo -a Had some kind of reply from the server! } |
Code: |
on *:udpread:gquery*:{ sockread &t ;check the replie has an actualy length so there is information if ($bvar(&t,0)) { ;echo this will echo the value of the binary variable (ASCII Values) echo -a $bvar(&t,1-) ;echo the actually text (characters) read from the socket echo -a $bvar(&t,1-).text } sockclose $sockname } |
Code: |
255 255 255 255 73 7 66 79 79 77 84 79 87 78 32 67 83 45 83 111 117 114 99 101 32 35 48 49 32 47 70 70 58 32 79 110 0 100 101 95 97 122 116 101 99 0 99 115 116 114 105 107 101 0 67 111 117 110 116 101 114 45 83 116 114 105 107 101 58 32 83 111 117 114 99 101 0 240 0 18 20 0 100 108 0 1 49 46 48 46 48 46 50 50 0 ����I.BOOMTOWN CS-Source #01 /FF: On |
Code: |
92 104 111 115 116 110 97 109 101 92 106 111 108 116 46 99 111 46 117 107 32 45 32 68 77 32 49 32 45 32 68 101 99 107 32 49 54 93 91 32 79 110 108 121 92 104 111 115 116 112 111 114 116 92 55 56 57 55 92 109 97 112 116 105 116 108 101 92 68 101 99 107 49 54 93 91 92 109 97 112 110 97 109 101 92 68 77 45 68 101 99 107 49 54 93 91 92 103 97 109 101 116 121 112 101 92 68 101 97 116 104 77 97 116 99 104 80 108 117 115 92 110 117 109 112 108 97 121 101 114 115 92 52 92 109 97 120 112 108 97 121 101 114 115 92 49 48 92 103 97 109 101 109 111 100 101 92 111 112 101 110 112 108 97 121 105 110 103 92 103 97 109 101 118 101 114 92 52 53 49 92 109 105 110 110 101 116 118 101 114 92 52 51 50 92 119 111 114 108 100 108 111 103 92 102 97 108 115 101 92 119 97 110 116 119 111 114 108 100 108 111 103 92 102 97 108 115 101 92 113 117 101 114 121 105 100 92 55 54 46 49 92 102 105 110 97 108 92 \hostname\jolt.co.uk - DM 1 - Deck 16][ Only\hostport\7897\maptitle\Deck16][\mapname\DM-Deck16][\gametype\Deat hMatchPlus\numplayers\4\maxplayers\10\gamemode\openplaying\gamever\451 \minnetver\432\worldlog\false\wantworldlog\false\queryid\76.1\final\ |
Code: |
on *:udpread:gquerysource:{ sockread &t if ($bvar(&t,0)) { ;this will replace all \0x00 characters by '�' breplace &t 0 255 ;set a temporary variable and strip the first 7 chars since they are not needed (returns what kind of string is returned by the server) var %t = $bvar(&t,7-).text ;now we can simply use gettok on the temporary variable his value with 255 as delimiter echo -a $+(,$gettok(%t,4,255),) - server: $gettok(%t,1,255) map: $gettok(%t,2,255) } sockclose $sockname } |
Returned: |
Counter-Strike: Source - server: BOOMTOWN CS-Source #01 /FF: On map: de_dust2 |
Code: |
on *:udpread:gqueryut:{ sockread &t if ($bvar(&t,0)) { var %t = $bvar(&t,1-).text /* The string of unrealtournament is allready devided by the \'s so we can directly get the tokens. Tho be carefull unrealtournament does not allways return the same values and formats so you will need to use a bit more secure way of finding your info. This will look in the string for a token matching eg. "hostname" and then get the one after it. */ echo -a UnrealTournament - server: $gettok(%t,$calc($findtok(%t,hostname,92) + 1),92) map: $gettok(%t,$calc($findtok(%t,mapname,92) + 1),92) } sockclose $sockname } |
Returned: |
UnrealTournament - server: jolt.co.uk - DM 1 - Deck 16][ Only map: DM-Deck16][ |