Author Topic: WhatsApp protocol  (Read 607857 times)

0 Members and 16 Guests are viewing this topic.

Offline Corak

Re: WhatsApp protocol
« Reply #630 on: 27 08 2015, 20:40:24 »
Added some friend to whatsapp but cannot receive any text messages, only direct links to video/audio/photos works. Looked how they are in netlog, looks like some crypted trash. Those text messages seems was in cyrillic:
http://files.leraux.ru/Corak/Temp/Miranda/Error/netlog_whatsapp.txt
http://savepic.org/7656462.png
« Last Edit: 27 08 2015, 20:46:39 by Corak »
 

Offline Kajuru

Re: WhatsApp protocol
« Reply #631 on: 27 08 2015, 21:17:40 »
Thats how it is currently, unless you never registered on Android, youre not getting messages due to lack of axolotl encryption support.
 

Offline Corak

Re: WhatsApp protocol
« Reply #632 on: 27 08 2015, 21:53:21 »
I registered on "android" through GenyMotion emulator at first, and even entered the app (but not messaged).
Then tried, registered in miranda, and got such encrypted messages that are not sent in messanger.

If I register again on android it goes offline in miranda and gives such in netlog:

"
Code: [Select]
[1:02:16 02E4] [WhatsApp_1] >> <challenge>
›ЮGЙЭЖцУѓћЩµ7сЂ‰ХдюZ</challenge>

[1:02:16 02E4] [WhatsApp_1] >> Send response
[1:02:19 02E4] [WhatsApp_1] Exception: Login failure
[1:02:19 02E4] [WhatsApp_1] (011CCB08:2416) Connection closed internal
[1:02:19 02E4] [WhatsApp_1] (011CCB08:4294967295) Connection closed
[1:02:19 02E4] [WhatsApp_1] Set status to offline
"

And I can re-register on miranda only after 44 hours 0_0
« Last Edit: 27 08 2015, 22:06:19 by Corak »
 

Offline Kajuru

Re: WhatsApp protocol
« Reply #633 on: 28 08 2015, 05:15:05 »
Im using Genymotion too since the plugin isnt working for me. Usually the time for re-register is about 20000 seconds, ie under 6 hours.
 

Offline phatmr

Re: WhatsApp protocol
« Reply #634 on: 28 08 2015, 12:12:16 »
Hi,

first: thanks to all who keep this nice plugin alive :-)

Now i want to ask if i understand it right.
In stable its still not possible to get messages from official clients.
I can send messages to others and they told me they have received it with the official client.

So i have to wait until axolotl crypt is implemented in stable plugin?
 

Offline Kajuru

Re: WhatsApp protocol
« Reply #635 on: 28 08 2015, 16:56:14 »
Or some workaround is found to force receiving unencrypted messages from official client. Miranda gets the messages, you can check your netlog, it just doesnt know how to decrypt and display it on your message module.
Cassio tried compiling with a different Nokia ID, but while it partially works, not all messages are in plain text.
 

Offline phatmr

Re: WhatsApp protocol
« Reply #636 on: 29 08 2015, 02:57:03 »
Ah ok.
In pidgin the wa-plugin is still working fine. i will have a look tomorrow in that cfg (phone-id and version).
Maybe its helpful to try compiling it in miranda too.
 

Offline phatmr

Re: WhatsApp protocol
« Reply #637 on: 30 08 2015, 02:13:58 »
OK this cfg i use on pidgin for wa-plugin (and it works still fine):

Server: c3.whatsapp.net
Port: 443
Resource (ID): Android-2.31.151-443

Maybe its worth a try for compiling it in miranda?
 

Offline Loki

  • Newbie
  • *
  • Posts: 1
Re: WhatsApp protocol
« Reply #638 on: 30 08 2015, 20:10:47 »
I've some problems with this plugin - I don't receive messages  from my contacts if there just text. If they send text with attachment or with link - everything is OK. The netlog is attached.
 

Offline Cassio

Re: WhatsApp protocol
« Reply #639 on: 31 08 2015, 21:45:27 »
Hey there,

I need some help from you C++ gurus.
I've implemented sending images/audio/video for WA.
The main problem are dependencies as a sha256 hash is required but I've only seen miranda provide sha1 and md5 stuff.
I got it running on my PC by including additional openSSL headers and libraries which I downloaded. However I have no idea how to properly add them to miranda.
Also I'm building with VS2015 and when testing the .dll on my laptop it said a msvcp14.dll (or similar) was missing.

Some code is borrowed from WA purple implementation and should be replaced by internal miranda functions.
I've documented TODOs on everything so please review and improve my code. :)
Especially the transfer handling by miranda needs some work as i have no idea how to make it show progress and completion.

Code is attached. :)
« Last Edit: 02 09 2015, 09:06:28 by Cassio »
 

Offline ghazan

Re: WhatsApp protocol
« Reply #640 on: 01 09 2015, 17:47:45 »
I will export sha256 related functions from StdCrypt now. brb

PS: exported. you can use it
 

Offline Cassio

Re: WhatsApp protocol
« Reply #641 on: 02 09 2015, 09:06:11 »
Alright, thanks.

Here is the updated file with the mir_sha256 implementations.
Everything else is still the same.


Edit:
And there is also a fix for StreamErrors occuring because of ack issues. This caused message receptions to be delayed for minutes or even hours.
« Last Edit: 02 09 2015, 14:36:11 by Cassio »
 

Offline ghazan

Re: WhatsApp protocol
« Reply #642 on: 02 09 2015, 18:13:18 »

Here is the updated file with the mir_sha256 implementations.
Everything else is still the same.
Slighlty adapted (VS2010 doesn't recognize C++'11) and committed. Thanks
 

Offline Dimsok

  • Sr. Member
  • ****
  • Posts: 282
  • Country: ru
Re: WhatsApp protocol
« Reply #643 on: 03 09 2015, 14:12:14 »
Doesn't connect anymore? Can't log in
 

Offline Dimsok

  • Sr. Member
  • ****
  • Posts: 282
  • Country: ru
Re: WhatsApp protocol
« Reply #644 on: 04 09 2015, 05:09:15 »
Can someone confirm of it's workability status?