venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.13k forks source link

Number Registration Module not working #335

Closed brittson closed 11 years ago

brittson commented 11 years ago

It seems like number registration is not working , I tried both sms and voice methods , this is the usual response of message sent , wait some secs etc,

But i dont get any voice or sms with the code. Please check, thanks

shirioko commented 11 years ago

Tested on two numbers, I don't receive an SMS when requesting a code using WhatsAPI.

Now just waiting 30 minutes to see if I receive an SMS code when registering on WhatsApp for Windows Phone :')

shirioko commented 11 years ago

Requesting SMS code on Windows Phone works, voice call verification works on Android as well.

P.S. I used MissVenom to sniff out whatsapp traffic on my HTC One X (Android 4.1) and this came up:

REQUEST:  https://v.whatsapp.net/v2/exist?cc=31&in=647******&lg=nl&lc=NL&id=%0d%8d%7f%ba%3b%84%b4%27%99%ed%cc%9b%0a%16%b9%7f%22M%ca%e2
RESPONSE: {"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6}

REQUEST:  https://v.whatsapp.net/v2/code?cc=31&in=647******&id=abcdef0123456789&lg=nl&lc=NL&mnc=004&mcc=204&method=self&reason=&token=ff5ba9ca05c29ee834b4b28bf54d2169
RESPONSE: {"status":"attached","code":"g0n3kDV7WMWeJaGWure4hcaACfg=","retry_after":64}

REQUEST:  https://v.whatsapp.net/v2/code?cc=31&in=647******&id=abcdef0123456789&lg=nl&lc=NL&mnc=004&mcc=204&method=voice&reason=server-send-request-too-recent&token=ff5ba9ca05c29ee834b4b28bf54d2169
RESPONSE: {"status":"sent","length":6,"method":"voice","retry_after":1805}
brittson commented 11 years ago

But did you check with the php api? On May 3, 2013 9:08 PM, "Max Kovaljov" notifications@github.com wrote:

Requesting SMS code on Windows Phone works, voice call verification works on Android as well.

P.S. I used MissVenom to sniff out whatsapp traffic on my HTC One X (Android 4.1) and this came up:

REQUEST: https://v.whatsapp.net/v2/exist?cc=31&in=647******&lg=nl&lc=NL&id=%0d%8d%7f%ba%3b%84%b4%27%99%ed%cc%9b%0a%16%b9%7f%22M%ca%e2 RESPONSE: {"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6}

REQUEST: https://v.whatsapp.net/v2/code?cc=31&in=647******&id=abcdef0123456789&lg=nl&lc=NL&mnc=004&mcc=204&method=self&reason=&token=ff5ba9ca05c29ee834b4b28bf54d2169 RESPONSE: {"status":"attached","code":"g0n3kDV7WMWeJaGWure4hcaACfg=","retry_after":64}

REQUEST: https://v.whatsapp.net/v2/code?cc=31&in=647******&id=abcdef0123456789&lg=nl&lc=NL&mnc=004&mcc=204&method=voice&reason=server-send-request-too-recent&token=ff5ba9ca05c29ee834b4b28bf54d2169 RESPONSE: {"status":"sent","length":6,"method":"voice","retry_after":1805}

— Reply to this email directly or view it on GitHubhttps://github.com/venomous0x/WhatsAPI/issues/335#issuecomment-17401195 .

shirioko commented 11 years ago

Soon ;)

stdClass Object
(
    [status] => fail
    [reason] => too_recent
    [retry_after] => 84
)
brittson commented 11 years ago

:+1:

shirioko commented 11 years ago

Nope, haven't received anything yet. Seems like they borked this as well.

Oh well, I didn't have any plans for this weekend anyway :')

brittson commented 11 years ago

Well that's very bad... Why they change this often ;) On May 3, 2013 9:29 PM, "Max Kovaljov" notifications@github.com wrote:

Nope, haven't received anything yet. Seems like they borked this as well.

Oh well, I didn't have any plans for this weekend anyway :')

— Reply to this email directly or view it on GitHubhttps://github.com/venomous0x/WhatsAPI/issues/335#issuecomment-17402397 .

shirioko commented 11 years ago

Obviously because of us :')

I'll poke my WP7 device with MissVenom when I get home, Windows Phone still uses the simple SMS code verification while Android uses the "self" verification method. Let's see how that works out.

ramonv commented 11 years ago

confirmed, tried three different simcards.. no luck....

shirioko commented 11 years ago

Just broke my HTC One X... Guess I won't be playing with registration codes this weekend after all :(

PrimalPowder commented 11 years ago

seems not related to platform? i tried iPhone no luck as well. So iphone, wp7 and HTC one X are all failed...

shirioko commented 11 years ago

I've tried using the known user agent and token for Windows Phone but it returned old_version error. Increasing the version in user agent won't do any good because the newer version uses a different token.

I pulled two interesting DLL files from my unlocked WP7 device which I'm looking into right now: https://dl.dropboxusercontent.com/u/68235039/WhatsAppDLL.zip

Anyone wanting to give it a try can decompile them using ILSpy http://ilspy.net/

murad1981 commented 11 years ago

I'm facing the same issue on iPhone, I've tried 3 numbers it gives: status => sent ... but I do not get any SMS !!! @ shirioko did you manage to solve this big problem ?

shirioko commented 11 years ago

Nope not yet.

I've found three DLLs on my WP7 device, two of which are managed and can be easily viewed using Reflector. The third one in an unmanaged native ARM DLL which contains the new hashing function for generating your identity as well as the new registration token or requestCode.

I'm doing some freelance work at the moment but I'll try to decompiling the DLL when I get home. Let me know if anyone else want to give a shot at it so I can share the file.

The two managed DLLs have lots of useful functions in it e.g. preparing bulk messages, expecting many new features in WhatsApi and WhatsApiNet. Not sure if I should include it in my repositories or sell it to the spammers though :p

murad1981 commented 11 years ago

you already posted two of them here: https://dl.dropboxusercontent.com/u/68235039/WhatsAppDLL.zip , right ? I guess you have to send us the third (more important) one :) now so we could look at it with http://ilspy.net/ ... we may discover something useful ...

p.s. when will you get back home ?

shirioko commented 11 years ago

The two I posted are managed so you can view them using ILSpy or Reflector. The third one is unmanaged so it doesn't contain any useful information. It's also compiled for ARM so I won't be able to call it on my PC. I'll have to either decompile it ant attempt to read the assembly code or write a WP7 app which calls the DLL to retrieve the registration token. Not sure yet which is a bigger pain in the ass to do..

I expect to be home in ~3-4 hours

shirioko commented 11 years ago

P.S.

This has some priority but it's not critical to me since I already have valid credentials and other means of obtaining a password.

If you're really desperate you can always use a rooted Android device, unlocked WP7 device or jailbroken iOS device to register your number and use MissVenom or WhatSNiff to sniff out the password AND identity for requesting a new password using checkCredentials()

Hmm come to think of it, I should probably build something to do this with a regular mobile device. I just need to find a working ARP spoofer for windows and voila!

murad1981 commented 11 years ago

I was really desperate not receving any registeration codes through sms until a cool guy posted a 4 steps solution here: https://github.com/venomous0x/WhatsAPI/issues/337 to get the registeration code using voice call method. however, your WhatSNiff project does not explain how to set it up for a jailbroken iphone. we do really appreciate your efforts about this problem, if you got something new, please inform us here.

shirioko commented 11 years ago

Setting up ANY device requires nothing more than editing the hosts file and installing a certificate as trusted, though the methods of doing so may vary per platform.

I'm looking into adding a small DNS server to MissProxy, this will replace the need to edit the hosts file on the device (requiring root/jailbreak).

Marketplace is offline at the moment, I'll have to wait before I can play around with WhatsApp on my WP7 device.. :(

murad1981 commented 11 years ago

that's ok .. take your time ..

shirioko commented 11 years ago

https://github.com/venomous0x/WhatsAPI/commit/09499c8417765d92912bae072f5f2473d277f5df

aissayaine commented 9 years ago

Hello I need a solution to the program wart It does not work Is there a solution

mgp25 commented 9 years ago

This is WhatsAPI repo, not WART repo. Check the my mail in my profile page and i introduce you to the whole project and where you will find everything.

Regards

aissayaine commented 9 years ago

So Wright And I think you found the solution But I do not understand how the application I ask you to explain Or send me a program that worksplease

 Le Mardi 11 novembre 2014 16h45, mgp25 <notifications@github.com> a écrit :

This is WhatsAPI repo, not WART repo. Check the my mail in my profile page and i introduce you to the whole project and where you will find everything.Regards— Reply to this email directly or view it on GitHub.