yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

yowsup-cli unable to authenticate

Open k1p0d opened this issue 12 years ago • 6 comments

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 <receipt_acks> </receipt_acks> <w:profile:picture type="all"> /w:profile:picture <w:profile:picture type="group"> /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 <receipt_acks> </receipt_acks> <w:profile:picture type="all"> /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!

k1p0d avatar Jul 14 '14 14:07 k1p0d

OK Post ur command line and ur config file

On Jul 14, 2014 6:23 PM, k1p0d [email protected] 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 <receipt_acks> </receipt_acks> <w:profile:picture type="all"> /w:profile:picture <w:profile:picture type="group"> /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 <receipt_acks> </receipt_acks> <w:profile:picture type="all"> /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

mrtass avatar Jul 14 '14 14:07 mrtass

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

CODeRUS avatar Jul 14 '14 14:07 CODeRUS

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.

k1p0d avatar Jul 14 '14 14:07 k1p0d

password = "" #obtained during registration
password = base64.b64decode(bytes(password.encode('utf-8')))

Maybe your account is blocked

mgp25 avatar Jul 14 '14 15:07 mgp25

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 :)

k1p0d avatar Jul 15 '14 09:07 k1p0d

Thanks!

tgalal avatar Nov 25 '14 23:11 tgalal