tgalal / yowsup

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

yowsup-cli unable to authenticate #303

Closed k1p0d closed 9 years ago

k1p0d commented 10 years ago

Hey i've tried to use the yowsup-cli tool to send a message but apparently the authentication had failed. i've done exactly whats written in the documentation - registered, got the code via sms. update the config file with the exact IMEI, phone number, password base64 and country code. using the debugging mode switch i've got this output - am i doing something wrong or did whatsup updated something in the challenge process which broke this code ?

Thanks :)

debug output -

YowsupConnectionManager: >>>>>>>> AUTH CALLED BinTreeNodeReader: Reader init YowsupAuth: Connecting to c2.whatsapp.net WAuth: Yowsup WAUTH-1 INIT WAuth: Starting stream WAuth: Sending Features BinTreeNodeWriter: Outgoing BinTreeNodeWriter:
stream:features

/w:profile:picture /w:profile:picture /stream:features WAuth: Sending Auth BinTreeNodeWriter: Outgoing BinTreeNodeWriter: WAuth: Read stream start WAuth: Read features and challenge BinTreeNodeReader: Incoming BinTreeNodeReader: stream:features /w:profile:picture /stream:features WAuth: GOT FEATURES !!!! BinTreeNodeReader: Incoming BinTreeNodeReader: �a>ɵ����V{�F���Jh| WAuth: GOT CHALLENGE !!!! WAuth: Sending Response BinTreeNodeWriter: Outgoing BinTreeNodeWriter: S��Kfa���2v� i����~�����٠s����K�/�^ WAuth: Read success BinTreeNodeReader: Incoming BinTreeNodeReader: WAuth: Login Status: failure YowsupAuth: Authentication failed!! Auth Failed!
mrtass commented 10 years ago

OK Post ur command line and ur config file

On Jul 14, 2014 6:23 PM, k1p0d notifications@github.com wrote: Hey i've tried to use the yowsup-cli tool to send a message but apparently the authentication had failed. i've done exactly whats written in the documentation - registered, got the code via sms. update the config file with the exact IMEI, phone number, password base64 and country code. using the debugging mode switch i've got this output - am i doing something wrong or did whatsup updated something in the challenge process which broke this code ?

debug output -

YowsupConnectionManager: >>>>>>>> AUTH CALLED BinTreeNodeReader: Reader init YowsupAuth: Connecting to c2.whatsapp.net WAuth: Yowsup WAUTH-1 INIT WAuth: Starting stream WAuth: Sending Features BinTreeNodeWriter: Outgoing BinTreeNodeWriter: stream:features

/w:profile:picture /w:profile:picture /stream:features WAuth: Sending Auth BinTreeNodeWriter: Outgoing BinTreeNodeWriter: WAuth: Read stream start WAuth: Read features and challenge BinTreeNodeReader: Incoming BinTreeNodeReader: stream:features /w:profile:picture /stream:features WAuth: GOT FEATURES !!!! BinTreeNodeReader: Incoming BinTreeNodeReader: �a>ɵ����V{�F���Jh| WAuth: GOT CHALLENGE !!!! WAuth: Sending Response BinTreeNodeWriter: Outgoing BinTreeNodeWriter: S��Kfa���2v� i����~�����٠s����K�/�^ WAuth: Read success BinTreeNodeReader: Incoming BinTreeNodeReader: WAuth: Login Status: failure YowsupAuth: Authentication failed!! Auth Failed! --- Reply to this email directly or view it on GitHub: https://github.com/tgalal/yowsup/issues/303
CODeRUS commented 10 years ago

seems you didn't get real password and used sms code as password

k1p0d commented 10 years ago

i dont think posting my config file is a good idea.. and as i said i used the base64 returned after i finished the second part of the challenge as password.. as written in the documentation.

does this code works for you guys ? cause if so i'll just redo the whole process. and see where i got it wrong.

mgp25 commented 10 years ago
password = "" #obtained during registration
password = base64.b64decode(bytes(password.encode('utf-8')))

Maybe your account is blocked

k1p0d commented 10 years ago

Hey guys I've figured the problem; its really a misleading part of the wiki documentation which states the following - phone=00123456789 #replace with your phone number with two extra leading 00 (zeros). Your number is supposed to be 123456789 really

when the actual config example says phone: Your full phone number including country code, without '+' or '00'

anyhow i made the correction :)

tgalal commented 9 years ago

Thanks!