This is a migrated thread and some comments may be shown as answers.

WebSocket message is not human readable

6 Answers 80 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Risto
Top achievements
Rank 1
Risto asked on 03 Nov 2016, 10:19 AM

Hi!

I am receiving data from various third-party sites to my internet browser (Chrome). They use WebSocket. From some suppliers (sites) I see nice JSON formatted data but some sites the data (webSocket payLoad message) is not readable to me (long messy string - you can see it from prictures I attached). Is it possible to extract the human readable data from that long messy string for example with FiddlerScript? I am using Fiddler v4.6.3.

6 Answers, 1 is accepted

Sort by
0
Risto
Top achievements
Rank 1
answered on 09 Nov 2016, 04:26 PM

Forgot to add header info:

GET /socket.io/?EIO=3&transport=websocket HTTP/1.1
Host: e3-push.kambi.com
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
Origin: https://www.unibet.ee
Sec-WebSocket-Version: 13
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: en-US,en;q=0.8
Sec-WebSocket-Key: sJsdXM8BY3RqoDaNQKBxYA==
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits

0
Risto
Top achievements
Rank 1
answered on 09 Nov 2016, 04:29 PM
May it possible that PayLoad string encrypted with SHA-x?
0
Tsviatko Yovtchev
Telerik team
answered on 11 Nov 2016, 04:46 PM
Hi,

These look like Base64 encoded strings. So getting them back to readable text should be quite easy.

Regards,
Tsviatko Yovtchev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Risto
Top achievements
Rank 1
answered on 11 Nov 2016, 08:34 PM

Thank you for andwering. Made quick test with online base64 decoder and result was binary-like data. Are you sure that it is base64 data? 

H4sIAAAAAAAAAJWQwWrDMAyG30Vnj8qK5bi55TLYaccySg9u4tJAE0PqrpTgd5/SEujW025Cn9An/dsJElSgTencmrl0unSgoJem1gr2MV6gmiB8hyF9tNJELGzB2qCCeElN7MMZqu0EnUAismidZSOwbQWQYRnch/R5OIRxXkBoyTLqAh8z76NvUhcHf5IzaL0ihAeo+zB2jR/u1zFk9cfBi0Mz/sehV/RqeCNEyLs8W37n4cgseVgF5yaO4TUQptLiEz1KLLLFzL/4q78t9fUYpaw39RfknHc/mCaB+30BAAA=

 

0
Tsviatko Yovtchev
Telerik team
answered on 14 Nov 2016, 04:13 PM
Hello,

Binary data is oftentimes Base64 encoded. So, you might have gotten the original data. 

Regards,
Tsviatko Yovtchev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Linh
Top achievements
Rank 1
answered on 04 Apr 2019, 09:06 AM
Please help me. How to decode this binary data
Tags
Windows
Asked by
Risto
Top achievements
Rank 1
Answers by
Risto
Top achievements
Rank 1
Tsviatko Yovtchev
Telerik team
Linh
Top achievements
Rank 1
Share this question
or