Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registeration Error .... #311

Closed
farid327 opened this issue Aug 4, 2014 · 13 comments
Closed

Registeration Error .... #311

farid327 opened this issue Aug 4, 2014 · 13 comments

Comments

@farid327
Copy link

farid327 commented Aug 4, 2014

Hiii.

i can't register using yowsup-cli and i get error message as below ->

status: fail
retry_after: 2524
reason: too_recent

i think this error is due to expired token and version is used in the code.
how this problem can be resolved and new password or token info can be obtained ???

Forgive me for my poor language :)

@mgp25
Copy link
Contributor

mgp25 commented Aug 4, 2014

Hi, that error is not because of the token, its because you tried to request the code many times, so it returns to you this:

status: fail
retry_after: 2524
reason: too_recent

that means you have to wait 2524 seconds to request code again

@farid327
Copy link
Author

farid327 commented Aug 5, 2014

Thanks. But, after one i try it again and get this error.

yowsup-cli.py -c config
status: fail
retry_after: 3600
reason: no_routes

Is the problem with the cellphone operator ?

@mgp25
Copy link
Contributor

mgp25 commented Aug 5, 2014

Because WhatsApp has some issues with reaching certain cell networks to send SMS messages. Try WART instead

@CODeRUS
Copy link
Contributor

CODeRUS commented Aug 5, 2014

@mgp25 most useless comment here

@CODeRUS
Copy link
Contributor

CODeRUS commented Aug 5, 2014

@farid327 there are some issues with some operators in Europe, 3rd party clients can't request sms code, but official whatsapp application can. You can try to request voice call with some luck.

The only option is register with android whatsapp on rooted phone and extract password with following script: #234

@mgp25
Copy link
Contributor

mgp25 commented Aug 5, 2014

@CODeRUS didnt know that. But is that really working? Because i tried this on php and the password it generates it wasn't valid.

$id = hex2bin($waString) . $country . $phone2;
$salt = substr(hex2bin($noMediaHash),2,4);
$key = pbkdf2('sha1', $id, $salt, 16, 16, true);
$iv = substr(hex2bin($noMediaHash),6,16);
$data = substr(hex2bin($noMediaHash),22);
$td = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', 'nofb', '');
mcrypt_generic_init($td, $key, $iv);
$aes_secret = mcrypt_generic($td, $data);
mcrypt_module_close($td);

@CODeRUS
Copy link
Contributor

CODeRUS commented Aug 5, 2014

yes it's working for me and i'm using it in my c++ project

@mgp25
Copy link
Contributor

mgp25 commented Aug 5, 2014

@CODeRUS I`ll try that later then... But i have one question because i tried this a long time ago. With this you actually could know everyone password as you only need to know basic information about the user. But this code does only generates 1 passwords, does it means that WhatsApp devices uses only one password? I dont know if noMediaHash is different in every Device, waString is the same for all, but im not sure with noMediaHash.

Thanks for the info ;)

@CODeRUS
Copy link
Contributor

CODeRUS commented Aug 5, 2014

what is happening inside your mind if you allow the possibility of the existence of the same passwords? of course .nomedia are nor same on different devices :D

@mgp25
Copy link
Contributor

mgp25 commented Aug 5, 2014

Yep, that confused me haha, this code always return the same password but if you try to request a password with the api you get always different ones, that because i get confused. I tried to do a PoC on this and didnt worked but what i successfully did is to spoof a number :_)

I`ll check that lately today, thanks ;)

@farid327
Copy link
Author

farid327 commented Aug 5, 2014

@CODeRUS Can you send your code in c++?
the code in #234 is so vague.
also thanks for your helps @mgp25 @CODeRUS

@CODeRUS
Copy link
Contributor

CODeRUS commented Aug 5, 2014

@mgp25 new registration always returning new password, it was explained many times.
@farid327 no, sorry. python script is ok for once. just call decode_pw(".me", ".pw"), no need for .nomedia for decrypting password. nomedia only contains next challenge data.

@farid327
Copy link
Author

farid327 commented Aug 5, 2014

@CODeRUS it's worked. tnx alot :)

@farid327 farid327 closed this as completed Aug 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants