How do we read network/handshake messages?
Hello friends, I have been given the following task:
- I should establish a connection to a WebSocket with the ClientWebSocket class (Done)
- I should display the first message in plain text
The message looks like this: ?☻♥? (
Encoding.ASCII.GetString(byteBuffer, 0, result.Count)
)
We should work with Wireshark, but I don't see any clear text there either.7 Replies
And what does it say as hex?
are you using a wss:// (secure) connection?
Yes, Sir!
I will tag you when I'm home! Thank you very much in advance
then with wireshark you won't be able to read the data
you have to enable wireshark to decrypt https
The byte array is bigger than its content, I guess that's why we have so many
00
after F3
.
I have to implement the handshake in C#.
Since I never used Wireshark, I have to read some guides first which I'm doing right now.
Thanks for the info regarding https connections.you can also try fiddler
i don't know if it does ws/sse but it too has the ability to read https
Ok got it!
Had to reverse the byte array (bytes from websocket are big endian as default, system using little endian)
Have to figure out the whole message structure
but first string says
WA
followed by a ,
and a version string it seems