How To: Quickly secure your chat commands

Unofficial support for the creating and editing of metas.
Posts: 7

Re: How To: Quickly secure your chat commands

Post#21 » October 21st, 2016, 5:19 am

I got it working! Thank you all for your assistance. :)
0 x

User avatar
Site Admin
Posts: 388

Re: How To: Quickly secure your chat commands

Post#22 » October 21st, 2016, 10:35 am

Now download Chaos Helper so you don't have to manually type all the commands, you can just hit buttons
0 x

Posts: 2

Re: How To: Quickly secure your chat commands

Post#23 » September 5th, 2020, 8:27 pm

THE PROVIDED REGEX IS NOT SECURE! I'm a little surprised nobody's mentioned this here in all these years, especially considering how powerful you can make meta commands, and their consequent potential for griefing people via security holes.

That regex is only "less risky" than being left wide open. It will, in fact, match ANY character's name that also has your name anywhere inside it.

If someone wanted to be a jerk, and I was running with this regex, all they'd need to do is create a character named (for example) "Evil Eskarina", and they could start ordering my characters around at will. (Someone could also create a character named "You" and run around emoting carefully crafted "commands", and that regex would match them.)

If you want genuinely secure patterns, you can't leave any .* in there (unless they're actually necessary). Here are a couple of examples (for the first part of the pattern, up to the opening quotation mark).

Matching others' messages:
^.*\>(NameA|NameB|Etc)\<.*, \"

Matching "You" messages (messages you sent, for several different channels):
^(\[Co\-Vassals\] |\[Fellowship\] )?(You) (think|say( to your (Vassals|Patron))?|tell .*), \"

Final note: The \> and \< are super important in that first pattern. Others' messages have extra stuff in them that you, as the player, don't see displayed in your Chat Window. But, those extra characters are there, nonetheless, and the regex will match to them. (See for an example of what I mean.) Including them there on each end of the character-name-match portion of the regex will force it to match your character names, and no more.
0 x

Return to “VT: Meta Support”

Who is online

Users browsing this forum: No registered users and 1 guest