tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.08k stars 2.23k forks source link

Number Registration Status : fail, reason :Old Version #1905

Closed tomatensuppe closed 7 years ago

tomatensuppe commented 7 years ago

Hello,

I'm trying to register a new number with my yousup client - i have the newest version also with the last updates for the Android and s40 env files (https://github.com/tgalal/yowsup/pull/1716).

I get always the issure "Old Version"

have anyone of you an idear how i can fix this issure ?

Thanks

darkchicles commented 7 years ago

The project has some months left over and whatsapp takes some version updates currently found in: 2.16.19 so you need to edit the file: yowsup-2.5.0 \ yowsup \ env \ env_s40.py in the line: _VERSION = "2.16.9", should also be edited _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030 {phone}", the only problem is that I do not know how to get TOKEN_STRING, maybe with a Sniff when registering a number, but I leave that to Otherwise, it seems that whatsapp has changed its activation request strings a bit (INFO: yowsup.common.http.warequest: {"status": "fail", "reason": "incorrect", "sms_length ": 6," voice_length ": 6," sms_wait ": 0," voice_wait ": 0}) so now I only have to wait for it to update or investigate a little what is the TOKEN STRING and the request string Of activation. ............................................................. El proyecto tiene algunos meses abandonado y whatsapp lleva algunas actualizaciones de version actualmente se encuentra en: 2.16.19 por lo que es necesario editar el archivo: yowsup-2.5.0\yowsup\env\env_s40.py en la linea: _VERSION = "2.16.9" , tambien se debe editar _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030{phone}" , el unico problema es que no se como obtener el TOKEN_STRING, tal vez con un Sniff al momento de registrar un numero, pero eso lo dejo para otra ocación, adicional a eso parece ser que whatsapp ha cambiado un poco sus cadenas de solicitud de activaicion (INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}) por lo que ahora solo me queda esperar a que se actualice o bien investigar un poco cual es el TOKEN STRING y la cadena de peticion de activacion.

darkchicles commented 7 years ago

Reading: https://github.com/tgalal/yowsup/issues/1885, try the version _VERSION = "2.16.11" Y _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452 {phone}"

And worked perfectly. ........................................................... Leyendo: https://github.com/tgalal/yowsup/issues/1885, intente con la version _VERSION = "2.16.11" y _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"

y funciono perfectamente.

jlguardi commented 7 years ago

This is a very old PR. Use my master env_s40.py file instead.

Jan2220 commented 7 years ago

Tried nearly every token and version from the issue entries... nothing worked... Still getting status: fail reason: bad_token

s40 at this time: 2.16.11 PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030 {phone}

maybe new Token String?

tomatensuppe commented 7 years ago

you are great!!! Thanks a lot !!!

thejockel commented 7 years ago

@Jan2220 you have to remove the space between the token and {phone} PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030{phone}

f2012444 commented 7 years ago

With or without space, same error

status: fail reason: old_version login: XXXXXXXXXXX

Jan2220 commented 7 years ago

@thejockel

With or without space, same error

status: fail reason: old_version login: XXXXXXXXXXX

Same Error at my system... login: XXX = my phone number

cjaburto commented 7 years ago

same thing here , i solved changing the _VERSION and ,_TOKEN_STRING , i believe theres a pull request for this, i follow this https://github.com/tgalal/yowsup/pull/1889/files

1889

and boom!! now i can register and send messages.

Jan2220 commented 7 years ago

same thing here , i solved changing the _VERSION and ,_TOKEN_STRING , i believe theres a pull request for this, i follow this https://github.com/tgalal/yowsup/pull/1889/files

1889

and boom!! now i can register and send messages.

Again, same error...

My s40 enfv: class S40YowsupEnv(YowsupEnv): _VERSION = "2.16.11" _OS_NAME= "S40" _OS_VERSION = "14.26" _DEVICE_NAME = "302" _MANUFACTURER = "Nokia" _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}" _AXOLOTL = True

mrdamaia commented 7 years ago

very sad :(

Pflasterbicker commented 7 years ago

I used the Info from darkchicles...

Changed Version Nr. to 2.16.11 and i´m using this token: PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}

Works fine since a reboot :)

Thanks guys!!!!!

Jan2220 commented 7 years ago

Changed Version Nr. to 2.16.11 and i´m using this token: PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}

i let setup.py build and install yowsup again and it worked after this :)

Gab0 commented 7 years ago

This env fix got things working here.

ruha9005 commented 7 years ago

"Old version" issue can be fixed with this MD5 generator. Just download last apk from official WhatsApp website, get it's version and generate MD5 from apk (classes.dex) String classesMd5 = "1naz8gL5pIYWbtaOZ3207g=="; String WHATSAPP_DEVICE = "Android"; String WHATSAPP_VER = "2.17.16"; But I can't login after that..

PPIII commented 7 years ago

Hi @ruha9005 we have the same issue, have you made any progress?

ruha9005 commented 7 years ago

@PPIII Hi. I don't have any issue with registration process, but I can't login, because I don't know how to properly make auth blob (Error: </stream:error>)...

xhcardoza commented 7 years ago

Hello, I have the old version error, I have updated the s40 file with output from: https://coderus.openrepos.net/whitesoft/whatsapp_scratch

_VERSION = "2.17.76" and _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk{phone}"

But I still get the Old version error.

Could you please tell me what I'm missing?

Thanks in advance

xhcardoza commented 7 years ago

I solved the issue by deleting the .pyc since it has the old version. I successfully register my phone and obtain the password but now I am stuck just in the same point I was with Chat API after we send a response i get disconnected without any error.

Could you please tell me what can I check to solve this?

tgalal commented 7 years ago

fixed

teunbruijnen commented 7 years ago

I've been unable to fix this problem. Also can't find setup.py anywhere in the yowsup directory

DobmanHeras commented 7 years ago

teunbruijnen, this worked for me:

did a search on filesystem for "env_s40.py". Found mine in /usr/lib/python2.7/dist-packages/yowsup/env

Then edited the file as per #1889

In the future you might want to use https://github.com/mgp25/classesMD5-64 to generate md5

cinatic commented 7 years ago

The version has been updated again, it's not working again.

i got the data from https://coderus.openrepos.net/whitesoft/whatsapp_scratch and tried to set the version in env_s40 to 2.16.12 but then it says invalid token

SteGe88 commented 7 years ago

Indeed, same for me. The old s40 env file isn't working anymore (old version) and the code from cinatic is giving a bad token error.....

efendimansur commented 7 years ago

I facing same issue. My environment: yowsup-cli v2.0.15 yowsup v2.5.2 status: fail reason: bad_token

_VERSION = "2.17.188" _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk{phone}"

Currently Whatsapp version for android is 2.17.190.

Thanks

ruha9005 commented 7 years ago

@efendimansur Try this: _VERSION = "2.16.11" _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk" + 1478194306452L + phone Second Long is release time. 2.17.188 is last version for Android, not for S40.

efendimansur commented 7 years ago

@ruha9005 still not working for me. My env_s40 configuration : https://paste.fedoraproject.org/paste/nVUq7EpSOAs7NbHYBA0CLV5M1UNdIGYhyRLivL9gydE=

And this is the error message : https://paste.fedoraproject.org/paste/3n6uy3yzmZyYUgokhKWOy15M1UNdIGYhyRLivL9gydE=

ruha9005 commented 7 years ago

@efendimansur My code: private static final String RELEASE_TOKEN_CONST = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk"; generateRequestToken(String phone) throws IOException, NoSuchAlgorithmException { if (WHATSAPP_METHOD_FOR_S40) return WhatsMediaUploader.md5(RELEASE_TOKEN_CONST + 1478194306452L + phone); } It's in Java. Try to delete 'L' letter from release time. P.S: I'll send you my env_s40.py in pm if you want.

ruha9005 commented 7 years ago

@efendimansur Try to use this: https://paste.ofcode.org/39Ex7FfcqF4KT5GNLmWtJw2

efendimansur commented 7 years ago

@ruha9005 Thanks before for your help.

The configuration env_s40.py is still not working for me, error message old_version.

ruha9005 commented 7 years ago

@efendimansur It's strange, because this configuration works recently. Try to comletely replace your env_s40.py with this codepaste. P.S: yowsup have problems with detecting russian phone numbers. It detects them as kazakhstan numbers.

DusanBrejka commented 7 years ago

@ruha9005 too bad, registration still doesn't work even with your env

yerunkar11 commented 7 years ago

@everybody, i have the same issue, my number got blocked yesterday, so i was trying with new number. i have even changed the env_android.py to latest i.e 2.17.188. still the same issue. wheather it is s40 or android it dosent affect me, Kindly help @tgalal

ruha9005 commented 7 years ago

@yerunkar11 Don't use env_android.py regardless of registration success when using this.

goku53 commented 7 years ago

Hi @ruha9005 i tried the versión 2.16.9 and sent me this error: old_version And tried too with the versión 2.16.11 and sent me this other error: bad_token when i tried this token: PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}

Sorry for my english.

Thanks so much!!

cinatic commented 7 years ago

@ruha9005 Can you tell us why? env_android is the only way it works for me

ruha9005 commented 7 years ago

@cinatic Many people say that using this method leads to account ban. I can't provide issue thread where I read this, but I remember this.

efendimansur commented 7 years ago

@ruha9005 It's still doesn't work with your env_s40.py configuration. Still error old_version.

Any idea?

jinnkhan88 commented 7 years ago

@efendimansur do not use env_s40.py. Use env_android.py.

here is the link:

https://paste.fedoraproject.org/paste/f16Yp0Bwl5vqjW9FVcSRTl5M1UNdIGYhyRLivL9gydE=

hope this helps.

use env android during registration

efendimansur commented 7 years ago

@jinnkhan88 Thanks a lot. It's worked to register my phone number

jgianpiere commented 7 years ago

When trying with the tokens, it shows me the same message of old version, I tried almost all the variants and versions that I found in the forums. Please if someone has a token that is currently valid and I can provide it, I thank you beforehand.

arkataja commented 7 years ago

Same here, none of those works. Please let me know if you find a solution. Can the token be sniffed somehow?

cinatic commented 7 years ago

here you can get the new tokens: https://coderus.openrepos.net/whitesoft/whatsapp_scratch

you need to enter them either in env_s40.py or into env_android.py. If s40 does not work try android. e.g:

./yowsup-cli registration -E android --requestcode sms --phone numberxxx --cc 49 --mcc 232 --mnc 10

BTW from 30 June 2017 S40 will be abandoned from WhatsApp so Yowsup will most likely stop working

linuslabo commented 7 years ago

@cinatic how do we use these codes? Guess a goes to the MD5_CLASSES, but the others?

cinatic commented 7 years ago

the one with ending "==" is for md5_classes then you need to try the versions and that's it

the other keys are for ens_s40

ageof commented 7 years ago

Version: 2.17.242 String classesMd5 = "ziYneeSZm5qExsEFX/AoMQ==";

paolospane commented 7 years ago

could someone leave the current version and Md5? Still does not work for me!

apevzner-dp commented 7 years ago

ageof, thanks a lot! That worked.

ageof commented 7 years ago

Hi can some one help me, i got the this error: The Sim Kart is from Vodafon. Thank you for help

Array ( [cc] => 49 [in] =>1522540XXXX [lg] => de [lc] => DE [id] => &�z�s������"7�� [token] => zmfqZkUu1eQAHsD8HG8KkOrPE= [mistyped] => 6 [network_radio_type] => 1 [simnum] => 1 [s] => [copiedrc] => 1 [hasinrc] => 1 [rcmatch] => 1 [pid] => 7750 [rchash] => e632075766318032a21cfa51a2e0c3306f8c9ba9241569fbd5dd27b1eebe02d1 [anhash] => 5c4bde877e73870f99dd26db2509043c [extexist] => 1 [extstate] => 1 [mcc] => 262 [mnc] => 004 [sim_mcc] => 262 [sim_mnc] => 004 [method] => sms ) stdClass Object ( [login] => 4915143442279 [status] => fail [reason] => no_routes [retry_after] => 3600 [sms_wait] => 60 [voice_wait] => 60 )

apevzner-dp commented 7 years ago

Guys, could you tell me where do you obtain the tokens for the new WhatsApp versions?