Hi, I'm struggling with a problem in a LUA script. I need to XOR a byte with the value 0xa5. The code looks like this:
The line that extracts the RopId works fine, but the bit.bxor line throws an error: Lua Error: [string “C:\Program Files\Wireshark2\plugins\msmapi.lua”]:173: bad argument #1 to ‘bxor’ (number expected, got userdata) How do I convert the extracted byte (rop_id) into a value type that I can XOR? Any advice much appreciated. Thanks and regards…Paul asked 26 Feb ‘16, 01:36 PaulOfford |
One Answer:
It should help to use answered 26 Feb '16, 07:42 sindy |
Thanks Sindy.
What I didn't say earlier was that I actually eventually needed to apply the XOR to a block of bytes. I realised that I was mixing tvbs with byte arrays and eventually converted the block of bytes to a byte array (baIn below), which meant I could then do this:
Best regards...Paul