Ask Your Question
0

Tshark LUA Bytes functions

asked 2021-04-30 13:58:23 +0000

k4nfr3 gravatar image

updated 2021-04-30 16:53:21 +0000

grahamb gravatar image

Hi,

i'm new to lua programming and am trying to create a lua script in conjonction with tshark. My goal is to get a xor key which is in the packet and apply it to the entire data field. It's a malware.

I've found many string functions but how do I get a part of my data.data. Example myvar = data.data[1 to 8 ] Type of data.data = userdata and it's a sequence of bytes https://www.wireshark.org/docs/dfref/...

Can anyone please advise ? Regards k4nfr3

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-06 13:34:19 +0000

cmaynard gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-04-30 13:58:23 +0000

Seen: 512 times

Last updated: May 06 '21