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

Fix for #2919: General Disconnect without getting banned? #2924

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iacup
Copy link

@iacup iacup commented Jan 28, 2020

WA protocol upgraded to 3.0

Copy link

@mugonix mugonix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm

@AlessandroSantos
Copy link

Works fine

@utkarshdalal
Copy link

Works well - can this be merged in?

@everaldoscabral
Copy link

Tks.
\O

@ChetanAmrao
Copy link

hi, hope all is well with you, i am trying to login to whatsapp using yowsup and have stuck at

image

how do i make the changes suggested above

@utkarshdalal
Copy link

utkarshdalal commented Feb 13, 2020

hi, hope all is well with you, i am trying to login to whatsapp using yowsup and have stuck at

image

how do i make the changes suggested above

@ChetanAmrao I assume you have registered with a phone number?
You just need to type /L to login. Then to send a message, something like /message send 91xxxxxxx 'your message here'

To use the changes from this PR, you will first need to pull from here - https://github.com/iacup/yowsup, and then run python setup.py install to install it.

@magnussolution
Copy link

Hello, I install python 3.6, edit the files from pull #2924, execute the install again and register a new number.

When I try login receive Authentication Failure.

/usr/bin/python3.6 yowsup-cli demos --config-phone XXXXXXXXXXXX -y
/L
I 2020-02-13 09:10:55,201 yowsup.layers.network.layer - Connecting to e2.whatsapp.net:443
I 2020-02-13 09:10:55,340 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Login Failed, reason: None
general: Disconnected: Authentication Failure

@everaldoscabral
Copy link

Hello, I install python 3.6, edit the files from pull #2924, execute the install again and register a new number.

When I try login receive Authentication Failure.

/usr/bin/python3.6 yowsup-cli demos --config-phone XXXXXXXXXXXX -y
/L
I 2020-02-13 09:10:55,201 yowsup.layers.network.layer - Connecting to e2.whatsapp.net:443
I 2020-02-13 09:10:55,340 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Login Failed, reason: None
general: Disconnected: Authentication Failure

Use "-d"

@majamatwo
Copy link

majamatwo commented Feb 19, 2020

I used

yowsup-cli demos -c mydetails -y -d

Copyright (c) 2012-2019 Tarek Galal
http://www.openwhatsapp.org

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate

D 2020-02-19 10:51:07,539 yowsup.stacks.yowstack - Initializing stack
D 2020-02-19 10:51:07,539 yowsup.stacks.yowstack - Constructed Network Layer
D 2020-02-19 10:51:07,539 yowsup.stacks.yowstack - Constructed Noise Segments Layer
D 2020-02-19 10:51:07,540 yowsup.stacks.yowstack - Constructed Noise Layer
D 2020-02-19 10:51:07,540 yowsup.stacks.yowstack - Constructed Coder Layer
D 2020-02-19 10:51:07,540 yowsup.stacks.yowstack - Constructed Logger Layer
D 2020-02-19 10:51:07,541 yowsup.stacks.yowstack - Constructed <yowsup.layers.axolotl.layer_control.AxolotlControlLayer object at 0x7f406c12d890>
D 2020-02-19 10:51:07,541 yowsup.stacks.yowstack - Constructed Axolotl Layer - <yowsup.layers.axolotl.layer_receive.AxolotlReceivelayer object at 0x7f406cef0910>
D 2020-02-19 10:51:07,541 yowsup.stacks.yowstack - Constructed Authentication Layer - Messages Layer - Receipt Layer - Ack Layer - Presence Layer - Ib Layer - Iq Layer - notification Ib Layer - Contact Iq Layer - Chatstate Layer - call Layer - Groups Iq Layer - Media Layer - Privacy Layer - Profiles Layer
D 2020-02-19 10:51:07,543 yowsup.stacks.yowstack - Constructed CLI Interface Layer
D 2020-02-19 10:51:07,544 yowsup.stacks.yowstack - setProfile(YowProfile(profile_name=52122xxxxxxxx))
Yowsup Cli client

Type /help for available commands

D 2020-02-19 10:51:44,892 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-02-19 10:51:44,892 yowsup.layers.network.layer - Connecting to e10.whatsapp.net:443
D 2020-02-19 10:51:44,892 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e10.whatsapp.net', 443))
D 2020-02-19 10:51:46,095 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect
D 2020-02-19 10:51:46,096 yowsup.layers.network.layer - Connected
D 2020-02-19 10:51:46,096 yowsup.axolotl.factory - get_manager(profile_name=52122xxxxxxxx, username=52122xxxxxxxx)
D 2020-02-19 10:51:46,097 yowsup.axolotl.manager - Initialized AxolotlManager [username=52122xxxxxxxx, db=/root/.config/yowsup/52122xxxxxxxx/axolotl.db]
D 2020-02-19 10:51:46,097 yowsup.axolotl.manager - level_prekeys(force=False)
D 2020-02-19 10:51:46,100 yowsup.axolotl.manager - len(pending_prekeys) = 781
D 2020-02-19 10:51:46,100 yowsup.axolotl.manager - load_unsent_prekeys
D 2020-02-19 10:51:46,101 yowsup.layers.noise.layer - Received auth event
D 2020-02-19 10:51:46,101 yowsup.env.env - Env not set, setting it to android
D 2020-02-19 10:51:46,101 yowsup.env.env - Current env changed to android
D 2020-02-19 10:51:46,101 yowsup.layers.noise.layer - Performing handshake [username= 52122xxxxxxxx, passive=False]
D 2020-02-19 10:51:46,101 yowsup.layers.noise.layer - Starting handshake worker
D 2020-02-19 10:51:46,425 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close
D 2020-02-19 10:51:46,426 yowsup.layers.network.layer - Disconnected
D 2020-02-19 10:51:46,455 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected:
offline:

any suggestions

@GM12Tick
Copy link

WA protocol upgraded to 3.0

@iacup what is the process you took to update protocol tokens?

@iacup
Copy link
Author

iacup commented Feb 28, 2020

WA protocol upgraded to 3.0

@iacup what is the process you took to update protocol tokens?

I reverse engineered the original WA apk. I'm afraid there is no other way to get them.

@GM12Tick
Copy link

WA protocol upgraded to 3.0

@iacup what is the process you took to update protocol tokens?

I reverse engineered the original WA apk. I'm afraid there is no other way to get them.

Specific files / strings to focus the RE efforts?
Would love to connect with you and work together for any future issues / discussions

@iacup
Copy link
Author

iacup commented Mar 3, 2020

WA protocol upgraded to 3.0

@iacup what is the process you took to update protocol tokens?

I reverse engineered the original WA apk. I'm afraid there is no other way to get them.

Specific files / strings to focus the RE efforts?
Would love to connect with you and work together for any future issues / discussions

Well, the original WA code is heavily obfuscated, so I was trying to find strings like "iq", "enc" etc.. Found some file, rewrote it to python and yowsup started working. That's it, no rocket science.

@Johnprogg
Copy link

Johnprogg commented Apr 1, 2020

@iacup Its Not a Rocket Science, But Still you are a Genius for us All, Iacup recently most of the users are getting this error while registering
First One is
status: fail
reason: old_version
login: 1XXXXXXXX

Second is
status: fail
retry_after: 3600
login: 180437XX166

Please Update the Commit @iacup yowsup stopped working, Please modify the commit!

Copy link

@artemrootman artemrootman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! It works!

@HoshenKadosh HoshenKadosh mentioned this pull request Apr 22, 2020
@munozrc munozrc mentioned this pull request Apr 22, 2020
@DannyWongSz
Copy link

I got banned after send a test message to my personal phone number.

[email protected]

Hello,

Thank you for your message.

We apologize for any confusion or inconvenience this may have caused. Our system classified your account activity as a violation of our Terms of Service and therefore blocked your account.

In order to verify your number again, please download the official version of WhatsApp from our website: www.whatsapp.com/download

Importantly, we do not provide support for unofficial versions, or jailbroken \ root devices (including emulators), or other unsupported devices, such as tablets.

Summer
WhatsApp Support Team

@McMoe89
Copy link

McMoe89 commented May 8, 2020

Hi together,

i did the protocol update mentioned above. Then i reinstalled yowsup. I registered my number without issues. I can also start yowsup, but the login still doesnt work.

When i start yowsup with "python3 yowsup-cli demos --yowsup --config 49173700XXXX" and press /L:

I 2020-05-08 09:12:32,981 yowsup.layers.network.layer - Connecting to e5.whatsapp.net:443
I 2020-05-08 09:12:33,264 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Disconnected:
offline:

When i start yowsup with "python3 yowsup-cli demos --config 49173700XXXX -y -d" and press /L:

D 2020-05-08 09:15:00,344 yowsup.config.manager - load(path_or_profile_name= 49173700XXXX, profile_only=False)
D 2020-05-08 09:15:00,345 yowsup.config.manager - _load_path(path=49173700XXXX)
D 2020-05-08 09:15:00,345 yowsup.config.manager - _load_path couldn't find the p ath: 49173700XXXX
D 2020-05-08 09:15:00,345 yowsup.config.manager - path_or_profile_name is not a path, using it as profile name
D 2020-05-08 09:15:00,346 yowsup.config.manager - Detecting config for profile= 49173700XXXX, dir=/home/ubuntu/.config/yowsup/49173700XXXX
D 2020-05-08 09:15:00,346 yowsup.config.manager - Trying /home/ubuntu/.config/yo wsup/49173700XXXX/config.yo
D 2020-05-08 09:15:00,346 yowsup.config.manager - Trying /home/ubuntu/.config/yo wsup/49173700XXXX/config.json
D 2020-05-08 09:15:00,347 yowsup.config.manager - _load_path(path=/home/ubuntu/. config/yowsup/49173700XXXX/config.json)
D 2020-05-08 09:15:00,347 yowsup.config.manager - Detected config type: json
D 2020-05-08 09:15:00,347 yowsup.config.manager - Opening config for reading
D 2020-05-08 09:15:00,348 yowsup.config.manager - Loading config
D 2020-05-08 09:15:00,349 yowsup.profile.profile - Constructed Profile(profile_n ame=49173700XXXX)
D 2020-05-08 09:15:00,349 yowsup-cli - starting cmd
yowsup-cli v3.2.0
yowsup v3.2.3
consonance v0.1.3-1
dissononce v0.34.3
python-axolotl v0.2.2
cryptography v2.9.2
protobuf v3.11.3

Copyright (c) 2012-2019 Tarek Galal
http://www.openwhatsapp.org

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate

D 2020-05-08 09:15:01,034 yowsup.stacks.yowstack - Initializing stack
D 2020-05-08 09:15:01,035 yowsup.stacks.yowstack - Constructed Network Layer
D 2020-05-08 09:15:01,036 yowsup.stacks.yowstack - Constructed Noise Segments La yer
D 2020-05-08 09:15:01,045 yowsup.stacks.yowstack - Constructed Noise Layer
D 2020-05-08 09:15:01,046 yowsup.stacks.yowstack - Constructed Coder Layer
D 2020-05-08 09:15:01,047 yowsup.stacks.yowstack - Constructed Logger Layer
D 2020-05-08 09:15:01,048 yowsup.stacks.yowstack - Constructed <yowsup.layers.ax olotl.layer_control.AxolotlControlLayer object at 0xb61da830>
D 2020-05-08 09:15:01,048 yowsup.stacks.yowstack - Constructed Axolotl Layer - < yowsup.layers.axolotl.layer_receive.AxolotlReceivelayer object at 0xb5c5a2d0>
D 2020-05-08 09:15:01,049 yowsup.stacks.yowstack - Constructed Authentication La yer - Messages Layer - Receipt Layer - Ack Layer - Presence Layer - Ib Layer - I q Layer - notification Ib Layer - Contact Iq Layer - Chatstate Layer - call Laye r - Groups Iq Layer - Media Layer - Privacy Layer - Profiles Layer
D 2020-05-08 09:15:01,066 yowsup.stacks.yowstack - Constructed CLI Interface Lay er
D 2020-05-08 09:15:01,067 yowsup.stacks.yowstack - setProfile(YowProfile(profile _name=49173700XXXX))
Yowsup Cli client

Type /help for available commands

D 2020-05-08 09:15:21,111 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-05-08 09:15:21,111 yowsup.layers.network.layer - Connecting to e6.whatsapp.net:443
D 2020-05-08 09:15:21,112 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e6.whatsapp.net', 443))
D 2020-05-08 09:15:21,249 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect
D 2020-05-08 09:15:21,250 yowsup.layers.network.layer - Connected
D 2020-05-08 09:15:21,251 yowsup.axolotl.factory - get_manager(profile_name=49173700XXXX, username=49173700XXXX)
D 2020-05-08 09:15:21,257 yowsup.axolotl.manager - Initialized AxolotlManager [username=49173700XXXX, db=/home/ubuntu/.config/yowsup/49173700XXXX/axolotl.db]
D 2020-05-08 09:15:21,257 yowsup.axolotl.manager - level_prekeys(force=False)
D 2020-05-08 09:15:21,344 yowsup.axolotl.manager - len(pending_prekeys) = 812
D 2020-05-08 09:15:21,344 yowsup.axolotl.manager - load_unsent_prekeys
I 2020-05-08 09:15:21,423 yowsup.axolotl.manager - Loaded 812 unsent prekeys
D 2020-05-08 09:15:21,424 yowsup.layers.noise.layer - Received auth event
D 2020-05-08 09:15:21,425 yowsup.env.env - Env not set, setting it to android
D 2020-05-08 09:15:21,425 yowsup.env.env - Current env changed to android
D 2020-05-08 09:15:21,425 yowsup.layers.noise.layer - Performing handshake [username= 491737004848, passive=True]
D 2020-05-08 09:15:21,426 yowsup.layers.noise.layer - Starting handshake worker
D 2020-05-08 09:15:21,740 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close
D 2020-05-08 09:15:21,741 yowsup.layers.network.layer - Disconnected
D 2020-05-08 09:15:21,824 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected:
offline:
offline:

Any ideas?

@antoniovalenzuela
Copy link

antoniovalenzuela commented Jun 1, 2020

https://github.com/tgalal/yowsup/pull/2924/files/b0b80e1dbbb0103d7e990f2b68660addb46a942f

Ok Works!

_MD5_CLASSES = "PzuZ7EJNcuXEealGEJT6+g=="
_VERSION = "2.20.134"

image

image

@pyweb-wa
Copy link

pyweb-wa commented Jun 7, 2020

@iacup can I get you mail please ? I need to ask you a few questions
my mail :[email protected]

@pyweb-wa
Copy link

pyweb-wa commented Jun 8, 2020

I got temporarily_unavailable even after update yowsup to @iacup pull request

2020-06-08 19:57:38,033 yowsup.config.manager - load(path_or_profile_name=79031323050, profile_only=False)
D 2020-06-08 19:57:38,033 yowsup.config.manager - _load_path(path=79031323050)
D 2020-06-08 19:57:38,034 yowsup.config.manager - _load_path couldn't find the path: 79031323050
D 2020-06-08 19:57:38,034 yowsup.config.manager - path_or_profile_name is not a path, using it as profile name
D 2020-06-08 19:57:38,034 yowsup.config.manager - Detecting config for profile=79031323050, dir=/home/whats/.config/yowsup/79031323050
D 2020-06-08 19:57:38,034 yowsup.config.manager - Trying /home/whats/.config/yowsup/79031323050/config.json
D 2020-06-08 19:57:38,035 yowsup.config.manager - _load_path(path=/home/whats/.config/yowsup/79031323050/config.json)
D 2020-06-08 19:57:38,035 yowsup.config.manager - Detected config type: json
D 2020-06-08 19:57:38,035 yowsup.config.manager - Opening config for reading
D 2020-06-08 19:57:38,036 yowsup.config.manager - Loading config
D 2020-06-08 19:57:38,036 yowsup.profile.profile - Constructed Profile(profile_name=79031323050)
yowsup-cli     v3.2.0
yowsup         v3.2.3
consonance     v0.1.3-1
dissononce     v0.34.3
python-axolotl v0.2.2
cryptography   v2.7
protobuf       v3.6.0


Copyright (c) 2012-2019 Tarek Galal
http://www.openwhatsapp.org

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate


W 2020-06-08 19:57:38,078 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
D 2020-06-08 19:57:38,078 yowsup.profile.profile - Constructed Profile(profile_name=79031323050)
D 2020-06-08 19:57:38,078 yowsup.axolotl.factory - get_manager(profile_name=79031323050, username=79031323050)
D 2020-06-08 19:57:38,079 yowsup.axolotl.manager - Initialized AxolotlManager [username=79031323050, db=/home/whats/.config/yowsup/79031323050/axolotl.db]
D 2020-06-08 19:57:38,080 yowsup.axolotl.manager - load_latest_signed_prekey
D 2020-06-08 19:57:38,080 yowsup.common.http.warequest - send(parser=None, encrypt=True, preview=False)
D 2020-06-08 19:57:38,080 yowsup.common.http.warequest - sendGetRequest(parser=None, encrypt_params=True, preview=False)
D 2020-06-08 19:57:38,081 yowsup.common.http.warequest - Encrypting parameters
D 2020-06-08 19:57:38,081 yowsup.common.http.warequest - pre-encrypt (encoded) parameters = 
cc=7&in=9031323050&lg=en&lc=GB&mistyped=6&authkey=c40Pziui95OeLEweGW42GLDC2DmiCHSvUH%2dA9TnRaAw&e_regid=QBxNdA&e_keytype=BQ&e_ident=GljmgtHeDzLHKAWOxsLSvJ36EFj4OSpkmQheAkiyJWc&e_skey_id=AAAA&e_skey_val=O%2dpBvUg1bGSMpE3IJjl3el0V9Ep%5f7mr3HeSODtmekjg&e_skey_sig=ta5mv6V2DG%5f3%5fJzjV3FqM7Fyzx9lhvA%2dGY73wDt%5fhH7bOMbIRgYVxdXybFkcYVhfJ6i6nPFA6%5fe%2djN9i6qXzhQ&fdid=86984b9f%2d2ce6%2d457c%2db684%2dc4304290021c&expid=tmNc09IeTE69j0cH4xZ7uw&network_radio_type=1&simnum=1&hasinrc=1&pid=5171&rc=0&id=%26%15%60%02%d1%19%85%f3J%92Sq%ad%c7BW%2b%17%7c%d7&code=850029
D 2020-06-08 19:57:38,083 yowsup.env.env - Env not set, setting it to android
D 2020-06-08 19:57:38,083 yowsup.env.env - Current env changed to android 
D 2020-06-08 19:57:38,083 yowsup.common.http.warequest - sendRequest(host=v.whatsapp.net, port=443, path=/v2/register, headers={'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.20.134 Android/8.2.0 Device/samsung-star2lte'}, params=[('ENC', 'EpBnotue61ZsggRmPEq9WcbfwHfTB8TnclrQElkxyHvLNapv7WtmyVFq2PQCHm58DH8Za0MtEMyxz+6Ewj7jnzXsL1nPgylLVCMG8qDZciPvvKJJIZWGyWY2nuZjEOAzyvGGz+SwKVV7sBwrgBJB3+fGmz1eSpckS0N578qv/SB9juygPYJVRksoS/+cBl+8k2AtqvtC+ESBSHP48arPJWdvlYOGYEkShfwLtqxgjKj4EPems4vjsleoC0/AZgCGTcVJlEt+HCVnfHn9cB4Mrl0L+d0iLh4c/aNHaNy33/A6TInUdfI+PafkCWT6V5l/SVOr2CKKr+L7SR+wU5jTNqjGQwey90TTgtbz9Tes7ZJ41S/iVYvtwmDbz/dMXNzN6q5LhSr9plrkvUI9UbBdfXR/2lFs6+gxfw+TAfPhC1j7vv6eiZMwnWqEFnNBLuasx152I9WEDZceuaPdZW8F27yOj8MkjMksFJ1+lis9W2Q+9q+RkmYqGACHap4AMA1WoftUuZ7QFaILRODsT4v6I5VoIQkCDEQxnWkFZLoMnJRL5lAPn09OhYSClveMZguHCBNQX63na7OF2MBkPI4uckSp09/+kkmMxZpJDajjRuIU49DmhdfE9ERDb+qCgJ3Jed7JyzjXMYv66fxb4FNwl1KmmI9NrNGzijcRr7VSNwzbb0KbO7zFcM8rExGa2ZmlcMOUrwZcloyuJTpbD20S3gEjpGK+Peru2crfNigzok6JFlvloa07bIBZ6rdzuTOOV/5qYdD18pUSaNnj/k+VxxIcUAom0NF85/LsxmJZ')], reqType=GET, preview=False)
D 2020-06-08 19:57:38,084 yowsup.common.http.warequest - Opening connection to v.whatsapp.net
D 2020-06-08 19:57:38,085 yowsup.common.http.warequest - Sending GET request to /v2/register?ENC=EpBnotue61ZsggRmPEq9WcbfwHfTB8TnclrQElkxyHvLNapv7WtmyVFq2PQCHm58DH8Za0MtEMyxz%2b6Ewj7jnzXsL1nPgylLVCMG8qDZciPvvKJJIZWGyWY2nuZjEOAzyvGGz%2bSwKVV7sBwrgBJB3%2bfGmz1eSpckS0N578qv%2fSB9juygPYJVRksoS%2f%2bcBl%2b8k2AtqvtC%2bESBSHP48arPJWdvlYOGYEkShfwLtqxgjKj4EPems4vjsleoC0%2fAZgCGTcVJlEt%2bHCVnfHn9cB4Mrl0L%2bd0iLh4c%2faNHaNy33%2fA6TInUdfI%2bPafkCWT6V5l%2fSVOr2CKKr%2bL7SR%2bwU5jTNqjGQwey90TTgtbz9Tes7ZJ41S%2fiVYvtwmDbz%2fdMXNzN6q5LhSr9plrkvUI9UbBdfXR%2f2lFs6%2bgxfw%2bTAfPhC1j7vv6eiZMwnWqEFnNBLuasx152I9WEDZceuaPdZW8F27yOj8MkjMksFJ1%2blis9W2Q%2b9q%2bRkmYqGACHap4AMA1WoftUuZ7QFaILRODsT4v6I5VoIQkCDEQxnWkFZLoMnJRL5lAPn09OhYSClveMZguHCBNQX63na7OF2MBkPI4uckSp09%2f%2bkkmMxZpJDajjRuIU49DmhdfE9ERDb%2bqCgJ3Jed7JyzjXMYv66fxb4FNwl1KmmI9NrNGzijcRr7VSNwzbb0KbO7zFcM8rExGa2ZmlcMOUrwZcloyuJTpbD20S3gEjpGK%2bPeru2crfNigzok6JFlvloa07bIBZ6rdzuTOOV%2f5qYdD18pUSaNnj%2fk%2bVxxIcUAom0NF85%2fLsxmJZ
I 2020-06-08 19:57:17,967 yowsup.common.http.warequest - {"login":"79031323050","status":"fail","reason":"temporarily_unavailable","retry_after":3600}


{
    "__version__": 1,
    "cc": "7",
    "client_static_keypair": "UGwyQun+XXjlC86DWrV4wsnVbPWEERIi4bHFhvY9Mk9zjQ/OK6L3k54sTB4ZbjYYsMLYOaIIdK9Qf4D1OdFoDA==",
    "expid": "tmNc09IeTE69j0cH4xZ7uw==",
    "fdid": "86984b9f-2ce6-457c-b684-c4304290021c",
    "id": "JhVgAtEZhfNKklNxrcdCVysXfNc=",
    "login": "79031323050",
    "mcc": "250",
    "mnc": "50",
    "phone": "79031323050",
    "sim_mcc": "000",
    "sim_mnc": "000"
}
status: fail

so what we can do ?

@CyberSinister
Copy link

CyberSinister commented Jun 15, 2020

Hi,

I followed all the changes in the pull and setup.py install using python3.6 too. The number is registered. I then did
python3.6 yowsup-cli demos --config-phone XXXNUMBERXXX -y -d

Which shows the cli and then upon doing /L, I get this. Any help?

[offline]:/L
D 2020-06-15 18:09:46,664 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-06-15 18:09:46,665 yowsup.layers.network.layer - Connecting to e5.whatsapp.net:443
D 2020-06-15 18:09:46,665 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e5.whatsapp.net', 443))
E 2020-06-15 18:09:46,873 yowsup.layers.network.dispatcher.dispatcher_asyncore - Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncore.py", line 83, in read
    obj.handle_read_event()
  File "/usr/local/lib/python3.6/asyncore.py", line 420, in handle_read_event
    self.handle_connect_event()
  File "/usr/local/lib/python3.6/asyncore.py", line 428, in handle_connect_event
    raise OSError(err, _strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

D 2020-06-15 18:09:46,873 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close
D 2020-06-15 18:09:46,873 yowsup.layers.network.layer - Disconnected
D 2020-06-15 18:09:46,944 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected: 
[offline]:

Update:
I built and installed using setup.py again and upone executing this command:
``

I was stuck here:

I 2020-06-15 18:26:49,426 yowsup.layers.network.layer - Connecting to e15.whatsapp.net:443
I 2020-06-15 18:26:56,834 yowsup.axolotl.manager - Loaded 812 unsent prekeys

When I pressed CTRL + C and executed the command again, the original error I mentioned first occured.

@JoelSaldanaMontoya
Copy link

Same problem here .!!!!

Yowsup Cli client

Type /help for available commands

I 2020-06-15 08:35:08,539 yowsup.layers.network.layer - Connecting to e2.whatsapp.net:443
E 2020-06-15 08:35:08,675 yowsup.layers.network.dispatcher.dispatcher_asyncore - Traceback (most recent call last):
File "/usr/lib/python2.7/asyncore.py", line 83, in read
obj.handle_read_event()
File "/usr/lib/python2.7/asyncore.py", line 446, in handle_read_event
self.handle_connect_event()
File "/usr/lib/python2.7/asyncore.py", line 454, in handle_connect_event
raise socket.error(err, _strerror(err))
error: [Errno 111] Connection refused

general: Disconnected:
offline:

@JoelSaldanaMontoya
Copy link

Open new issue #2992

@vinay221097
Copy link

works good with these changes

@ShiSHcat
Copy link

Works like a charm!

@M3dS0 M3dS0 mentioned this pull request Jul 30, 2020
@PayntonDavonnkY
Copy link

@antoniovalenzuela Did you still get the config.json using the yowsup-cli registration subcommand which has risk of ban (WARNING in README.md), or another way? could you please tell me? thanks.😀

@antoniovalenzuela
Copy link

@antoniovalenzuela Did you still get the config.json using the yowsup-cli registration subcommand which has risk of ban (WARNING in README.md), or another way? could you please tell me? thanks.😀

;) email

@Poojamok
Copy link

https://github.com/tgalal/yowsup/pull/2924/files/b0b80e1dbbb0103d7e990f2b68660addb46a942f

Ok Works!

_MD5_CLASSES = "PzuZ7EJNcuXEealGEJT6+g=="
_VERSION = "2.20.134"

image

image

how could you solve this im getting same error

@RogerHartmann
Copy link

hello all,

I have started with a fresh installation of Yowsup on a raspi 3 running Raspian.

  • I started with the Yowsup from apt (sudo apt install Yowsup), where I could register my number but could not send any message. Then I continued with the sources and included _MD5_CLASSES and _VERSION update, in my case:
    ** _VERSION = "2.21.7" (actually 2.21.7.13, but the .13 causes another failure, so I removed it)
    ** _MD5_CLASSES = "gHqILxwuu/sHmeo7gdDdyA=="
  • I did the update in yowsup/layers/noise/layer.py mentioned here: 3038
  • rebuild and installed everything again
    ** sudo python3 setup.py build
    ** sudo python3 setup.py install

my versions are:
yowsup-cli v3.2.0
yowsup v3.2.3
consonance v0.1.3-1
dissononce v0.34.3
python-axolotl v0.2.2
cryptography v2.6.1
protobuf v3.6.1

but still, when I want to send a message, it fails

  • python3 yowsup-cli demos -c 49xxxxxxxxxxx -s "49yyyyyyyyyy" "das ist eine Testnachricht" -d

... D 2021-04-07 08:01:58,719 yowsup.layers.noise.layer - Performing handshake [username= 49xxxxxxxxxxx, passive=True] D 2021-04-07 08:01:58,720 yowsup.layers.noise.layer - Starting handshake worker D 2021-04-07 08:01:59,890 yowsup.layers.logger.layer - rx: <fail add="1617775319" id="26" index="odn" img="1617706627" /> D 2021-04-07 08:02:00,118 yowsup.layers.logger.layer - rx: <failure action="after"> <modify> <missing> 0x080b080c </missing> </modify> </failure> D 2021-04-07 08:02:00,120 yowsup.layers.network.dispatcher.dispatcher_asyncore - disconnect D 2021-04-07 08:02:00,121 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2021-04-07 08:02:00,122 yowsup.layers.network.layer - Disconnected D 2021-04-07 08:02:00,126 yowsup.layers.logger.layer - rx: <failure action="after"> <on_msg_rtt account="flt" audio/x-ms-wma="1617775319" /> </failure> D 2021-04-07 08:02:00,128 yowsup.layers.network.dispatcher.dispatcher_asyncore - disconnect D 2021-04-07 08:02:00,129 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2021-04-07 08:02:00,130 yowsup.layers.network.layer - Disconnected D 2021-04-07 08:02:00,133 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False D 2021-04-07 08:02:00,236 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False

and just trying to re-register the phone number also does not do any change and it also does not ring the phone:

... D 2021-04-07 08:09:16,929 yowsup.common.http.warequest - Sending GET request to /v2/exist?ENC=HPqZ43vB2nfo8ZjCjYSGerwhfZby7qMWKWuQ01UHliBIWkolFD7MxfEUPUx%2bBtZzk%2fizFzMwyAOdS4ywBQHK4aHxo4A2yVTnPxPmjFPIuYdX3acjv6%2b2IY%2bDlfyfB3v3H%2bmL7JwSe1EWJziNrmW9f5tywmLbwe%2fL4XBhOjj%2bwSkRF7Edbr7X0H4EFd%2fNmdeWWpvEqNcQfuN7K5JBHHrgEAs40y6v9r5876YzdzzwRutKd68bIGJQW7CxRn9ATcMXKKTNb1phwO24v60rfL5EMt1quU1he%2bgf8sqLlS1qC%2fLP85KDk9vDIh2BipCC%2fSzrz6AN%2fEJkX3ZN5pTkFKIEYEITfUSDb1v2nPr680T3BcxobwrWl28aWzuv%2fSSDBPkp5nGRm6Ry%2ff5LseMPAP8aorDqNcUdh9wREsGvqcfd4BOuRdLFe%2f%2b9vwtzvnh4C5P5rsu7mxcZ9wdmS251BQdq02GtFgSDwpJm1I7fc8Ehzj046B2CQhI9tM0%2f83%2b99AD52ibXvrU8pZiPMlnQI8HLUxYvO0W8BiiRBTVOZ0sr7HNOuRQZe3XF4xsVI%2f0LdlKLbZvhHJZmV%2f%2fndCvqYT6KCkToMOkz6m2v27IZRM6zR%2blE0lVRM3u0sUFLAuQdD2QKRJR1pI0FvrcwwFVuBFvIxKawiWRFEB1Rq10Sw5ZXjzJUUMdu5EmmpaDzHLlKM3I8Qkj%2flNBU30DFaawvK5aEZK8WzHdbOQPxJb80300%2fQ20xFTc1vjviHVwp5YqeTM1dlH7RlW%2bJu8GR5n6JHZcKQjns%2fpgJh2SdgfhJ0ayQSCBinymdKPVVkS5d6NMwRE%2b3oT1E5LnA6Q%3d%3d I 2021-04-07 08:09:18,252 yowsup.common.http.warequest - b'{"status":"ok","login":"49xxxxxxxxxxx","type":"existing","edge_routing_info":"CAsIDA==","security_code_set":false}\n' D 2021-04-07 08:09:18,254 yowsup.profile.profile - write_config for 49xxxxxxxxxxx D 2021-04-07 08:09:18,256 yowsup.common.tools - writeProfileData(profile_name=49xxxxxxxxxxx, name=config.json, val=[omitted]) D 2021-04-07 08:09:18,257 yowsup.common.tools - Writing /home/pi/.config/yowsup/49xxxxxxxxxxx/config.json status: b'ok' login: b'49xxxxxxxxxxx' type: b'existing' edge_routing_info: b'CAsIDA=='

thanksful for any hints.

@ben221199
Copy link

@RogerHartmann To which protocol version did you update it? 4.0 or 4.1? Maybe you have to update the tokenmap too.

@RogerHartmann
Copy link

hello @ben221199 , I updated to 4.0 -- shall I use 4.1 instead? How to update the token map?

HEADER = b'WA\x04\x00'
4, 0, protocol_state_callbacks=self._on_protocol_state_changed

thanks for your help

@Rettungssani
Copy link

Hi @RogerHartmann,

could you solve the problem / is yowsup running? I am facing the same actually...

BR
Dennis

@RogerHartmann
Copy link

Hello @Rettungssani, no I could not get it working since then. I also did not try again.

Copy link

@DevOFVictory DevOFVictory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not working anymore... :(
I think, WhatsApp updated to Noise Layer Protocol 4.0 or something.
How did you how did you managed to reverse engineer the byte array data?

@rafaelnordavind rafaelnordavind mentioned this pull request Jul 21, 2022
@xnodcorp
Copy link

still working in 2023??

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

Successfully merging this pull request may close these issues.