C
C#8mo 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 LuOP8mo 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 LuOP8mo ago
No description
FusedQyou
FusedQyou8mo 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
HAHA8mo ago
base64 type idk
Buddy
Buddy8mo ago
That is not how base64 looks Every character should be visible, and then one or a few possible = offset at the end
Oni
Oni8mo 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 LuOP8mo ago
ok thanks sir
Oni
Oni8mo 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 LuOP8mo 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
Oni8mo ago
@Patrick @RubyNovaDev
Patrick
Patrick8mo ago
what?
Oni
Oni8mo 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 LuOP8mo ago
😦 but I just ask how to read the data
Patrick
Patrick8mo ago
I mean, what are you actually doing?
Yifan Lu
Yifan LuOP8mo ago
i use ClientWebSocket and want to connect to whatsapp web websocket server
Oni
Oni8mo ago
Which is against Whatsapp ToS.
Patrick
Patrick8mo ago
I see, why are you doing that? How come you're not using their business API?
Yifan Lu
Yifan LuOP8mo 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
Patrick8mo ago
right, they don't want you automating private accounts 🙂
Yifan Lu
Yifan LuOP8mo ago
so no help here right? 😦
Patrick
Patrick8mo ago
We wouldn't help with that, no.
Yifan Lu
Yifan LuOP8mo ago
ok thanks sir :/
Oni
Oni8mo ago
Also remove the strings like I said, it contains your device information
Yifan Lu
Yifan LuOP8mo 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
SparkyCracked8mo ago
co-ask Or rather, what is your profession/experience?
Yifan Lu
Yifan LuOP8mo ago
yes sorry
Oni
Oni8mo 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
SparkyCracked8mo ago
Thought as much You scare me @Oni but in a good way haha
Yifan Lu
Yifan LuOP8mo ago
😇 🤍 thank you very much sir i will read about network reversing
Oni
Oni8mo ago
Haha! We all have our preferences @SparkyCracked 🤭 Good luck @Yifan Lu !
Want results from more Discord servers?
Add your server