Skip to content

update tcp-req-dump to work with binary data#79

Closed
LucasParsy wants to merge 1 commit intobettercap:masterfrom
LucasParsy:master
Closed

update tcp-req-dump to work with binary data#79
LucasParsy wants to merge 1 commit intobettercap:masterfrom
LucasParsy:master

Conversation

@LucasParsy
Copy link
Copy Markdown

previous rewrite transformed data parameter from string to binary array, making the JS caplet code not work.

previous rewrite transformed data parameter from string to binary array, making the JS caplet code not work.
@buffermet
Copy link
Copy Markdown
Member

buffermet commented Apr 10, 2026

JavaScript chars use unicode code point values, these are not compatible with other types of encoding.

You can use the textEncode(string) and textDecode(byteArray) if the data is a uint8 array.

JavaScript uses uint16 arrays.

@buffermet buffermet closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants