Client Crash [till 3.0.19.2]

tagKnife

Well-Known Member
Oct 2, 2015
343
270
146
Here is a safe ban rule to block any of these malicious inputs in the client name

Code:
[\w\d]*([%]+[A-z]+[_]*[%]+).*

  • /[\w\d]*([%]+[A-z]+[_]*[%]+).*/gm
    • [\w\d]* match a single character present in the list below
      • Quantifier: * Between zero and unlimited times, as many times as possible, giving back as needed [greedy]
      • \w match any word character [a-zA-Z0-9_]
      • \d match a digit [0-9]
    • 1st Capturing group ([%]+[A-z]+[_]*[%]+)
      • [%]+ match a single character present in the list below
        • Quantifier: + Between one and unlimited times, as many times as possible, giving back as needed [greedy]
        • % the literal character %
      • [A-z]+ match a single character present in the list below
        • Quantifier: + Between one and unlimited times, as many times as possible, giving back as needed [greedy]
        • A-z a single character in the range between A and z (case sensitive)
      • [_]* match a single character present in the list below
        • Quantifier: * Between zero and unlimited times, as many times as possible, giving back as needed [greedy]
        • _ the literal character _
      • [%]+ match a single character present in the list below
        • Quantifier: + Between one and unlimited times, as many times as possible, giving back as needed [greedy]
        • % the literal character %
    • .* matches any character (except newline)
      • Quantifier: * Between zero and unlimited times, as many times as possible, giving back as needed [greedy]
OYaOxz5.png
 
Last edited:

tagKnife

Well-Known Member
Oct 2, 2015
343
270
146
Updated rule to match the 1 stupid var with ! at the start

Code:
[\w\d]*([%]+[!]?[A-z]+[_]*[%]+).*

%%!CLIENT_SERVER_GROUP_LAST%% < fixed

Test
Code:
MATCH 1  nie6b5%%CHANNEL_TOPIC%%w4v5y4v5wy - 1. [6-23] `%%CHANNEL_TOPIC%%`
MATCH 2  nie6b5%%CHANNEL_MAXCLIENTS%%w4v5y4v5wy - 1. [40-62] `%%CHANNEL_MAXCLIENTS%%`
MATCH 3  nie6b5%%CHANNEL_MAXFAMILYCLIENTS%%w4v5y4v5wy - 1. [79-107] `%%CHANNEL_MAXFAMILYCLIENTS%%`
MATCH 4  nie6b5%%CHANNEL_NEEDED_TALK_POWER%%w4v5y4v5wy - 1. [124-153] `%%CHANNEL_NEEDED_TALK_POWER%%`
MATCH 5  nie6b5%%CHANNEL_ORDER%%w4v5y4v5wy - 1. [170-187] `%%CHANNEL_ORDER%%`
MATCH 6  nie6b5%%CHANNEL_CODEC_QUALITY%%w4v5y4v5wy - 1. [204-229] `%%CHANNEL_CODEC_QUALITY%%`
MATCH 7  nie6b5%%CHANNEL_MAXCLIENTS%%w4v5y4v5wy - 1. [246-268] `%%CHANNEL_MAXCLIENTS%%`
MATCH 8  nie6b5%%CHANNEL_FLAG_MAXCLIENTS%%w4v5y4v5wy - 1. [285-312] `%%CHANNEL_FLAG_MAXCLIENTS%%`
MATCH 9  nie6b5%%CHANNEL_MAXFAMILYCLIENTS%%w4v5y4v5wy - 1. [329-357] `%%CHANNEL_MAXFAMILYCLIENTS%%`
MATCH 10  nie6b5%%CHANNEL_CODEC%%w4v5y4v5wy - 1. [374-391] `%%CHANNEL_CODEC%%`
MATCH 11  nie6b5%%CHANNEL_NAME%%w4v5y4v5wy - 1. [408-424] `%%CHANNEL_NAME%%`
MATCH 12  nie6b5%%CHANNEL_ID%%w4v5y4v5wy - 1. [441-455] `%%CHANNEL_ID%%`
MATCH 13  nie6b5%%CHANNEL_ICON%%w4v5y4v5wy - 1. [472-488] `%%CHANNEL_ICON%%`
MATCH 14  nie6b5%%CHANNEL_CODEC_BITRATE%%w4v5y4v5wy - 1. [505-530] `%%CHANNEL_CODEC_BITRATE%%`
MATCH 15  nie6b5%%CHANNEL_FLAGS%%w4v5y4v5wy - 1. [547-564] `%%CHANNEL_FLAGS%%`
MATCH 16  nie6b5%%CHANNEL_SUBSCRIPTION%%w4v5y4v5wy - 1. [581-605] `%%CHANNEL_SUBSCRIPTION%%`
MATCH 17  nie6b5%%CHANNEL_CLIENTS_COUNT%%w4v5y4v5wy - 1. [622-647] `%%CHANNEL_CLIENTS_COUNT%%`
MATCH 18  nie6b5%%CHANNEL_VOICE_DATA_ENCRYPTED%%w4v5y4v5wy - 1. [664-696] `%%CHANNEL_VOICE_DATA_ENCRYPTED%%`
MATCH 19  nie6b5%%CHANNEL_VOICE_DATA_ENCRYPTED_FLAG%%w4v5y4v5wy - 1. [713-750] `%%CHANNEL_VOICE_DATA_ENCRYPTED_FLAG%%`
MATCH 20  nie6b5%%PLUGIN_INFO_DATA%%w4v5y4v5wy - 1. [767-787] `%%PLUGIN_INFO_DATA%%`
MATCH 21  nie6b5%%TEMP_CHANNEL_DELETE_DELAY%%w4v5y4v5wy - 1. [804-833] `%%TEMP_CHANNEL_DELETE_DELAY%%`
MATCH 22  nie6b5%%TEMP_CHANNEL_TIME_TO_DELETE%%w4v5y4v5wy - 1. [850-881] `%%TEMP_CHANNEL_TIME_TO_DELETE%%`
MATCH 23  nie6b5%%CHANNEL_DESCRIPTION%%w4v5y4v5wy - 1. [898-921] `%%CHANNEL_DESCRIPTION%%`
MATCH 24  nie6b5%%IMAGES_MAX_WIDTH%%w4v5y4v5wy - 1. [938-958] `%%IMAGES_MAX_WIDTH%%`
MATCH 25  nie6b5%%IMAGES_MAX_HEIGHT%%w4v5y4v5wy - 1. [975-996] `%%IMAGES_MAX_HEIGHT%%`
MATCH 26  nie6b5%%CLIENT_ID%%w4v5y4v5wy - 1. [1013-1026] `%%CLIENT_ID%%`
MATCH 27  nie6b5%%CLIENT_AWAY_MESSAGE%%w4v5y4v5wy - 1. [1043-1066] `%%CLIENT_AWAY_MESSAGE%%`
MATCH 28  nie6b5%%CLIENT_PLATFORM%%w4v5y4v5wy - 1. [1083-1102] `%%CLIENT_PLATFORM%%`
MATCH 29  nie6b5%%CLIENT_VERSION%%w4v5y4v5wy - 1. [1119-1137] `%%CLIENT_VERSION%%`
MATCH 30  nie6b5%%CLIENT_VERSION_SHORT%%w4v5y4v5wy - 1. [1154-1178] `%%CLIENT_VERSION_SHORT%%`
MATCH 31  nie6b5%%CLIENT_VERSION_STATE%%w4v5y4v5wy - 1. [1195-1219] `%%CLIENT_VERSION_STATE%%`
MATCH 32  nie6b5%%CLIENT_TOTALCONNECTIONS%%w4v5y4v5wy - 1. [1236-1263] `%%CLIENT_TOTALCONNECTIONS%%`
MATCH 33  nie6b5%%CLIENT_FLAG_AVATAR%%w4v5y4v5wy - 1. [1280-1302] `%%CLIENT_FLAG_AVATAR%%`
MATCH 34  nie6b5%%CLIENT_TALK_REQUEST_MSG%%w4v5y4v5wy - 1. [1319-1346] `%%CLIENT_TALK_REQUEST_MSG%%`
MATCH 35  nie6b5%%CLIENT_DESCRIPTION%%w4v5y4v5wy - 1. [1363-1385] `%%CLIENT_DESCRIPTION%%`
MATCH 36  nie6b5%%PLUGIN_INFO_DATA%%w4v5y4v5wy - 1. [1402-1422] `%%PLUGIN_INFO_DATA%%`
MATCH 37  nie6b5%%CLIENT_CUSTOM_NICK_NAME%%w4v5y4v5wy - 1. [1439-1466] `%%CLIENT_CUSTOM_NICK_NAME%%`
MATCH 38  nie6b5%%CLIENT_VOLUME_MODIFIER%%w4v5y4v5wy - 1. [1483-1509] `%%CLIENT_VOLUME_MODIFIER%%`
MATCH 39  nie6b5%%CLIENT_UNIQUE_ID%%w4v5y4v5wy - 1. [1526-1546] `%%CLIENT_UNIQUE_ID%%`
MATCH 40  nie6b5%%CLIENT_NAME%%w4v5y4v5wy - 1. [1563-1578] `%%CLIENT_NAME%%`
MATCH 41  nie6b5%%CLIENT_NAME_PERCENT_ENCODED%%w4v5y4v5wy - 1. [1595-1626] `%%CLIENT_NAME_PERCENT_ENCODED%%`
MATCH 42  nie6b5%%CLIENT_ICON%%w4v5y4v5wy - 1. [1643-1658] `%%CLIENT_ICON%%`
MATCH 43  nie6b5%%CLIENT_IGNORE_AVATAR%%w4v5y4v5wy - 1. [1675-1699] `%%CLIENT_IGNORE_AVATAR%%`
MATCH 44  nie6b5%%CLIENT_CREATED%%w4v5y4v5wy - 1. [1716-1734] `%%CLIENT_CREATED%%`
MATCH 45  nie6b5%%CLIENT_LASTCONNECTED%%w4v5y4v5wy - 1. [1751-1775] `%%CLIENT_LASTCONNECTED%%`
MATCH 46  nie6b5%%CLIENT_CONNECTED_SINCE%%w4v5y4v5wy - 1. [1792-1818] `%%CLIENT_CONNECTED_SINCE%%`
MATCH 47  nie6b5%%CLIENT_COUNTRY_TOOLTIP%%w4v5y4v5wy - 1. [1835-1861] `%%CLIENT_COUNTRY_TOOLTIP%%`
MATCH 48  nie6b5%%CLIENT_COUNTRY_IMAGE%%w4v5y4v5wy - 1. [1878-1902] `%%CLIENT_COUNTRY_IMAGE%%`
MATCH 49  nie6b5%%CLIENT_TALK_REQUEST_TIME%%w4v5y4v5wy - 1. [1919-1947] `%%CLIENT_TALK_REQUEST_TIME%%`
MATCH 50  nie6b5%%CLIENT_CHANNEL_GROUP_NAME%%w4v5y4v5wy - 1. [1964-1993] `%%CLIENT_CHANNEL_GROUP_NAME%%`
MATCH 51  nie6b5%%CLIENT_CHANNEL_GROUP_ICON%%w4v5y4v5wy - 1. [2010-2039] `%%CLIENT_CHANNEL_GROUP_ICON%%`
MATCH 52  nie6b5%%CLIENT_SERVER_GROUP_NAME%%w4v5y4v5wy - 1. [2056-2084] `%%CLIENT_SERVER_GROUP_NAME%%`
MATCH 53  nie6b5%%CLIENT_SERVER_GROUP_ICON%%w4v5y4v5wy - 1. [2101-2129] `%%CLIENT_SERVER_GROUP_ICON%%`
MATCH 54  nie6b5%%CLIENT_DATABASE_ID%%w4v5y4v5wy - 1. [2146-2168] `%%CLIENT_DATABASE_ID%%`
MATCH 55  nie6b5%%CLIENT_SERVER_SHOW_MAX_GROUPS%%w4v5y4v5wy - 1. [2185-2218] `%%CLIENT_SERVER_SHOW_MAX_GROUPS%%`
MATCH 56  nie6b5%%!CLIENT_SERVER_GROUP_LAST%%w4v5y4v5wy - 1. [2235-2264] `%%!CLIENT_SERVER_GROUP_LAST%%`
MATCH 57  nie6b5%%CLIENT_SERVER_GROUP%%w4v5y4v5wy - 1. [2281-2304] `%%CLIENT_SERVER_GROUP%%`
MATCH 58  nie6b5%%CLIENT_CHANNEL_GROUP%%w4v5y4v5wy - 1. [2321-2345] `%%CLIENT_CHANNEL_GROUP%%`
MATCH 59  nie6b5%%AVATAR_MAX_WIDTH%%w4v5y4v5wy - 1. [2362-2382] `%%AVATAR_MAX_WIDTH%%`
MATCH 60  nie6b5%%AVATAR_MAX_HEIGHT%%w4v5y4v5wy - 1. [2399-2420] `%%AVATAR_MAX_HEIGHT%%`
MATCH 61  nie6b5%%CLIENT_AWAY_MESSAGE%%w4v5y4v5wy - 1. [2437-2460] `%%CLIENT_AWAY_MESSAGE%%

Test Code
https://gist.github.com/DrWhatNoName/87e4f544cef53221beaf37f691923268
 

Lollipop

Active Member
May 3, 2016
8
0
73
Hi All
I change my description and my client was crashed
so now when i want to connect the server that i changed my description i will crash
so what should i do to solve this
 

Norvik

Retired Staff
Contributor
Jul 18, 2015
635
588
157
Hi All
I change my description and my client was crashed
so now when i want to connect the server that i changed my description i will crash
so what should i do to solve this
Use soemthing query related like yatqa to change the description.
 

Wrath X

Member
Oct 2, 2015
96
34
53
If i install yaqta how should can i change that?
If yo can upload the plugin the TeamSpeak addones page can not open for me
  1. Connect to your server with YaTQA
  2. Choose virtual server from Servers Tab
  3. Choose User DB tab and select your nickname
  4. Choose Description from right panel
  5. Enter a new value and click OK #Done
 
Top