C
C#4mo ago
Yifan Lu

What is this string?

hello, im working with clientwebsocket, the message i receive from websocket server looks like this:
�[
rB
0j\!h,#M{0**npnMmE..6:?B*%r]qi+uZjg!sZ"J#@Jr}\&=Uaik."^LOz!I >
6-k�303nU_p=31p63h8CLb%}z
[dOZV#e$(;4;TUv}N;*oAjFBiP�H[u2X
�[
rB
0j\!h,#M{0**npnMmE..6:?B*%r]qi+uZjg!sZ"J#@Jr}\&=Uaik."^LOz!I >
6-k�303nU_p=31p63h8CLb%}z
[dOZV#e$(;4;TUv}N;*oAjFBiP�H[u2X
what is this?
30 Replies
Yifan Lu
Yifan Lu4mo ago
my question is somewhat unfavorable i see hehe, to be more exact, what is this string format? how can I read this data?
Yifan Lu
Yifan Lu4mo ago
No description
FusedQyou
FusedQyou4mo ago
This question is way too vague I assume the websocket returns bytes and you should convert this to what is expected to be the data. String, integer, perhaps another data type
HAHA
HAHA4mo ago
base64 type idk
Buddy
Buddy4mo ago
That is not how base64 looks Every character should be visible, and then one or a few possible = offset at the end
Oni
Oni4mo ago
This is definitely not Base64. As @internal ref struct FusedQyou said, you receive bytes. Since the browser don't know the structure of the data sent, it shows you this string of weird chars. Right click -> Copy as Base64 and paste it here
Yifan Lu
Yifan Lu4mo ago
ok thanks sir
Oni
Oni4mo ago
First 4 bytes seems to serve as a tag? The data after is a json object. It seems like you are trying to mimic the Whatsapp client? I'm not allowed to support you any further I guess.
Yifan Lu
Yifan Lu4mo ago
o.o yes that's true how did you figure out? just by the data? can you tell me how you read it sir, please? and why you not allowed to help me?
Oni
Oni4mo ago
@Patrick @RubyNovaDev
Patrick
Patrick4mo ago
what?
Oni
Oni4mo ago
He is trying to emulate the whatsapp client and I don't know if I'm allowed to provide further help Yes, also the JSON object contains sensitive data of yours, JFYI. Wait for Patrick.
Yifan Lu
Yifan Lu4mo ago
😦 but I just ask how to read the data
Patrick
Patrick4mo ago
I mean, what are you actually doing?
Yifan Lu
Yifan Lu4mo ago
i use ClientWebSocket and want to connect to whatsapp web websocket server
Oni
Oni4mo ago
Which is against Whatsapp ToS.
Patrick
Patrick4mo ago
I see, why are you doing that? How come you're not using their business API?
Yifan Lu
Yifan Lu4mo ago
Business API let me automate messages but I have two accounts, one which is business and one which is private I want the private to be a "bot" too connected with ChatGPT
Patrick
Patrick4mo ago
right, they don't want you automating private accounts 🙂
Yifan Lu
Yifan Lu4mo ago
so no help here right? 😦
Patrick
Patrick4mo ago
We wouldn't help with that, no.
Yifan Lu
Yifan Lu4mo ago
ok thanks sir :/
Oni
Oni4mo ago
Also remove the strings like I said, it contains your device information
Yifan Lu
Yifan Lu4mo ago
ok thanks @#1AmericanDadFanForLife sir just one last question oh wrong ping @Oni sir one question what i have to learn to read such data like you did?
SparkyCracked
SparkyCracked4mo ago
co-ask Or rather, what is your profession/experience?
Yifan Lu
Yifan Lu4mo ago
yes sorry
Oni
Oni4mo ago
I did lots of network reverse engineering back then, I was active in gamehacking and scripting. If you have no experience regarding this topic, you will need tons of research.
SparkyCracked
SparkyCracked4mo ago
Thought as much You scare me @Oni but in a good way haha
Yifan Lu
Yifan Lu4mo ago
😇 🤍 thank you very much sir i will read about network reversing
Oni
Oni4mo ago
Haha! We all have our preferences @SparkyCracked 🤭 Good luck @Yifan Lu !