I'm working on a packet parser that I could use some Community help with.
Essentially I'm trying to find a token and then register that token as meta in an existing key. Additionally, if more than one token is found in the session - register the others as well.
Here's what I've done thus far - but it's not producing the expected results:
local lua_findme = nw.createParser("lua_findme", "Finding tokens")
["badPassword"] = lua_findme.magic,
["SupportedEncryption"] = lua_findme.magic,
["AccountType"] = lua_findme.magic,
Essentially I've got a list of tokens that I want to be on the look out for and I want the parser to register meta for each finding. Ex: the parser should create meta 'badPassword' under threat.desc && also register 'AccountType' under threat.desc if it is found in that session.
Thanks in advance!