WebSocket message is not human readable

6 posts, 0 answers
  1. Risto
    Risto avatar
    11 posts
    Member since:
    Mar 2014

    Posted 03 Nov Link to this post

    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.

  2. Risto
    Risto avatar
    11 posts
    Member since:
    Mar 2014

    Posted 09 Nov in reply to Risto Link to this post

    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

  3. Risto
    Risto avatar
    11 posts
    Member since:
    Mar 2014

    Posted 09 Nov in reply to Risto Link to this post

    May it possible that PayLoad string encrypted with SHA-x?
  4. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 11 Nov Link to this post

    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
  5. Risto
    Risto avatar
    11 posts
    Member since:
    Mar 2014

    Posted 11 Nov in reply to Tsviatko Yovtchev Link to this post

    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=

     

  6. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 14 Nov Link to this post

    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
Back to Top