Coder Social home page Coder Social logo

Chat-API issue about wapi HOT 34 CLOSED

GM12Tick avatar GM12Tick commented on June 14, 2024
Chat-API issue

from wapi.

Comments (34)

netfiretec avatar netfiretec commented on June 14, 2024 1

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

No, my account is flagged for the second time this week.

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

Oops

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

My account is unflagged now.

from wapi.

GM12Tick avatar GM12Tick commented on June 14, 2024

Flagged for what?

Btw, i think we should take the yowsup code base?

TGlal has made some work before.

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

from wapi.

GM12Tick avatar GM12Tick commented on June 14, 2024

Cool, what is the current state of the research?
Also, should this project be private? As per mpg message o agree that people may abuse it

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

I know the following things:

  • Every package begins with an int24 length.
  • Since a certain version WhatsApp uses a tokenmap to compress the streamdata. This tokenmap depends on the version of the protocol.
  • In protocol version 1.* they used RC4 to encrypt the messages to prevent stealing data.
  • In protocol version 2.* they changed their encryption to Noise.
  • A stream begins with a header. First the chars 'W' and 'A', then 2 bytes indicating the version.
  • It looks like that there is a second header since 2.*: chars 'E' and 'D' and 2 bytes for the version. Than followed by a package with a size of 4 bytes and then the old WA-header.
  • Registration process via v.whatsapp.net is also known.

Things to know:

  • How does the encryption work?
  • What does ED mean?
  • What does the package between the headers mean?

If I forgot something, please tell me.

from wapi.

GM12Tick avatar GM12Tick commented on June 14, 2024

I think that there were many changes wr probably need to reverse engineer the interesting parts.

you know reversing, right?

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

Yes, we will see what is the best option.

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

When I have some time, I will try things on my rooted phone.

from wapi.

mosaw avatar mosaw commented on June 14, 2024

where is the project ?

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

Is it not visible? I don't see a warning here.

from wapi.

mosaw avatar mosaw commented on June 14, 2024

hi @ben221199
I fixed wart project to get the sms code and password
but I cannot login with the channle I have created , do u have a solution ?

from wapi.

mosaw avatar mosaw commented on June 14, 2024

hey @ben221199 are u here !

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

@mosaw Do you mean you succeeded in receiving a sms and used the code to receive the password, but that you cannot connect to the XMPP server with the password?

from wapi.

mosaw avatar mosaw commented on June 14, 2024

yes excactly

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

WhatsApp now uses FunXMPP 2.0 or later and this means that you cannot connect with the server with the current RC4 encryption. WhatsApp now uses Noise instead of RC4.

from wapi.

mosaw avatar mosaw commented on June 14, 2024

so whats is the solution ?
how can i get instance

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

We have to understand the new protocol of WhatsApp. Especially the Noise encryption.
Here is a full list of things we know and we need to know: #1 (comment)

from wapi.

mosaw avatar mosaw commented on June 14, 2024

ok man thnx

from wapi.

mosaw avatar mosaw commented on June 14, 2024

https://developers.facebook.com/docs/whatsapp

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

That's the WhatsApp Business API. Also nice to have a look at, but our main goal is the normal WhatsApp.

from wapi.

sebamenabar avatar sebamenabar commented on June 14, 2024

Hi @ben221199 @mosaw , are you still working on this? I'd like to contribute

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

Sure... I have little time now, but when I have more, I certainly will continue. If you have information I can post, please send :)

from wapi.

redrux avatar redrux commented on June 14, 2024

@ben221199 Hello,

I can't see the repository and any code. But if you can publish we can contribute your repository.

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

@ciclanoio Noise Protocol isn't implemented in the previous project. RC4 is the previous protocol and is implemented in the files: BinTreeNodeWriter and BinTreeNodeReader.

from wapi.

netfiretec avatar netfiretec commented on June 14, 2024

@ben221199 @GM12Tick Call me on Telegram or Skype, maybe we can make this a reality for both of you, my project is quite advanced, including the nois protocol implemented.

Skype: netfiretec
Telegram: https://t.me/LeandroDeFranca

from wapi.

ciclanoio avatar ciclanoio commented on June 14, 2024

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

At the moment I'm implementing a client in Java. Registration is done using yowsup. When connecting to the communication server, I send the WhatsApp header, then I start the Noise protocol handshake using protobuf segments. I first send a ClientHello, I receive a ServerHello with NoiseCertificate data and then I send a ClientFinish with ClientPayload data. However, after that segment, I don't receive anything, so that is strange. The Noise implementation I'm using (rweather/noise-java#1) gives some weird errors when verifying the MAC, but when I disable this verification, the library works fine. This errors also occur when I don't communicate with the WhatsApp server, but with my own server that uses the same library. However, after the handshake with my own server, I receive data that my server sends, but when connecting with the WhatsApp server, as I said, I don't receive anything. Maybe there are some tiny differences between normal Noise protocol and WhatsApp noise protocol.

from wapi.

ciclanoio avatar ciclanoio commented on June 14, 2024

from wapi.

ben221199 avatar ben221199 commented on June 14, 2024

I will close this issue, because there is now code in the repository. Registration is implemented. Also Noise protocol and FunXMPP converter is implemented. The things that should be done now, like End-to-End encryption and messaging, aren't relevant to this issue.

from wapi.

ciclanoio avatar ciclanoio commented on June 14, 2024

from wapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.