im icon indicating copy to clipboard operation
im copied to clipboard

Noise implementation

Open TronFortyTwo opened this issue 8 years ago • 7 comments

To make Loqui continue working after S40 support drop we have to move to Noise protocol (https://noiseprotocol.org/). An already ready official implementation of it in Rust language is available, and can be implemented using Node.js.

TronFortyTwo avatar Apr 24 '17 17:04 TronFortyTwo

can you provide more details!? suppose i have a telephone number and an activation code. how do i contact the whatsapp server!? how do i know this ”connection” is succesful!? ideally we have a small function which returns true if connection is succesful and false otherwise.

hstarmans avatar Apr 26 '17 19:04 hstarmans

Useful information about whatsapp connection should be shown in the log. Maybe this is enough we can work with. The actual connection procedure should be shown as capital letters (like AUTH) .

nfsprodriver avatar Apr 26 '17 20:04 nfsprodriver

BTW: We should post comments about noise into one issue. I'm going to make an order for this, because we actually have multiple issues about noise.

nfsprodriver avatar Apr 26 '17 20:04 nfsprodriver

@nfsprodriver what do you mean with log!? I am just checking whatsapp on my iphone; it does not have a log. I have looked at the whatsapp documentation. This described what keys are sent over; it seems complicated. Noise is a group of protocols; you can use it to customize your communication; whatsapp uses something known as noise pipes. For reverse engineering communication protocols, tools are available like netzob. There are also virtual machines with tools installed for reverse engineering APK's. In particular, APK deguard sounds like a good tool but it does not support files over 16 mb.

hstarmans avatar May 02 '17 08:05 hstarmans

Great; I have been able to get a deobfuscated APK of Whatsapp using a statistical analysis with APK deguard The results are here; It's looks more readable but haven't looked at it for a long time yet.

hstarmans avatar May 17 '17 06:05 hstarmans

There is also another option; chat-api states in the docs it implements noise.

hstarmans avatar May 29 '17 08:05 hstarmans

It doesn't work properly and there won't be any update.

MaSteve avatar May 29 '17 10:05 MaSteve