Open ramyasha-mss opened 4 years ago
Can anyone assist in getting the proper token for the latest version of the Whatsapp APK
@ramyasha-mss #2979
if you change version Version: 2.20.197.18 to Version: 2.20.197 then it no error but it just disconnect. im struggling with same issue..
@fajarnurprasetyo thank you but this isn't the issue I'm facing. It's almost like the token is being extracted incorrectly. I did a fresh installation of a virtual machine as well to try to resolve the problem but still no go.
@riku2015 I'm only using 3 octets not 4.
i have exact same token as you have. have no idea whats wrong too. lets wait if someone else got issues and come here help
This problem was solved many times. Use search on issues
Hello, I've tried again to download, compile, and register. I've successfully reached the registration part and received the code. When I try to register the device though it tells me the following error:
W 2020-09-03 10:16:29,430 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead I 2020-09-03 10:16:29,967 yowsup.common.http.warequest - b'{"login":"XXXXXXXXXXXXXXXX","status":"fail","reason":"missing"}\n'
Any ideas? The current class and version are:
_MD5_CLASSES = "GP/EmE/Av2+/WYh2tY7QzQ=="
_VERSION = "2.20.198.16"
The one thing I'd like to ask though, is would I have to edit the _KEY ? I had everything working on a previous release and someone accidentally registered the phone again and kicked out the yowsup so in trying to re-register it now won't work.
Before you begin to register sim card, you should insert into your phone register in whatsapp and send several messages to anybody and receive from anyone. After that, you can register in yowsup client. Before you begin to do it you should modificate these files in yowsup client.
@fanishe I'm no expert in this kind of edit or programming language. Aren't these files just available for download and update or as part of the master or forked copy? Would really appreciate the help. I need to get this going and I'm more of an Infrastructure guy than a programmer/developer.
Oh, and to your point, this was previously working and with no issues. One of the staff re-registered the phone by accident, and then it broke. Now I'm trying to get it working again.
@ramyasha-mss check if the number is not banned. Insert into a phone and try to register in whatsapp. If it won't work buy new sim card.
If it not banned, the problem is different. Open files that I posted higher, and compare with green lines in files.
If these files was modifyed correct, and problem wasn't solved, check this issue
P.S. When you download some project from github, it becomes your local copy of files from owner repository. You can do whatever you want to do on it. And if you broke something after modifying, you can delete folder, and download again.
@fanishe thanks for the info and the update. I'm aware of the process of git and downloading a local copy. What I was looking for is the full copy edited and ready since I'm no expert in editing, etc. I'm trying again today downloading the latest Whatsapp APK, the request went out and waiting for the registration code. We'll see shortly.
@fanishe a quick update. So it looks like I completed a successful registration. When I try to run a test, it connects, and just hangs:
I 2020-09-06 16:19:27,712 yowsup.layers.network.layer - Connecting to e9.whatsapp.net:443
W 2020-09-06 16:18:25,439 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead I 2020-09-06 16:18:27,296 yowsup.common.http.warequest - b'{"status":"ok","login":"XXXXXXXXXXX","type":"existing","edge_routing_info":"CAgIBQ==","security_code_set":false}\n'
} status: b'ok' login: b'XXXXXXXXXXXx' type: b'existing' edge_routing_info: b'CAgIBQ=='
A quick update, when trying to login via the CLI, I got the following error:
D 2020-09-06 16:23:22,827 yowsup.layers.logger.layer - rx:
general: Login Failed, reason: None D 2020-09-06 16:23:22,827 yowsup.layers.network.dispatcher.dispatcher_asyncore - disconnect D 2020-09-06 16:23:22,827 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2020-09-06 16:23:22,827 yowsup.layers.network.layer - Disconnected D 2020-09-06 16:23:22,828 yowsup.layers.logger.layer - rx:
general: Login Failed, reason: None D 2020-09-06 16:23:22,828 yowsup.layers.network.dispatcher.dispatcher_asyncore - disconnect D 2020-09-06 16:23:22,828 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2020-09-06 16:23:22,828 yowsup.layers.network.layer - Disconnected D 2020-09-06 16:23:22,846 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False general: Disconnected: Authentication Failure [offline]: [offline]:D 2020-09-06 16:23:22,947 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected: Authentication Failure [offline]:
I modified the files you noted to me.
So I've made some progress, after recompiling and reinstalling it connects then disconnects. What I don't get is that this was all working before and suddenly stopped. :
D 2020-09-08 09:31:49,080 yowsup.layers.network.layer - Created asyncore dispatcher I 2020-09-08 09:31:49,080 yowsup.layers.network.layer - Connecting to e12.whatsapp.net:443 D 2020-09-08 09:31:49,080 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e12.whatsapp.net', 443)) D 2020-09-08 09:31:49,281 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect D 2020-09-08 09:31:49,281 yowsup.layers.network.layer - Connected D 2020-09-08 09:31:49,281 yowsup.axolotl.factory - get_manager(profile_name=XXXXXXXXXXXX, username=XXXXXXXXXXXx) D 2020-09-08 09:31:49,282 yowsup.axolotl.manager - Initialized AxolotlManager [username=962778005885, db=/root/.config/yowsup/962778005885/axolotl.db] D 2020-09-08 09:31:49,282 yowsup.axolotl.manager - level_prekeys(force=False) D 2020-09-08 09:31:49,286 yowsup.axolotl.manager - len(pending_prekeys) = 810 D 2020-09-08 09:31:49,286 yowsup.axolotl.manager - load_unsent_prekeys D 2020-09-08 09:31:49,287 yowsup.layers.noise.layer - Received auth event D 2020-09-08 09:31:49,287 yowsup.env.env - Env not set, setting it to android D 2020-09-08 09:31:49,287 yowsup.env.env - Current env changed to android D 2020-09-08 09:31:49,287 yowsup.layers.noise.layer - Performing handshake [username= 962778005885, passive=False] D 2020-09-08 09:31:49,287 yowsup.layers.noise.layer - Starting handshake worker D 2020-09-08 09:31:49,620 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2020-09-08 09:31:49,620 yowsup.layers.network.layer - Disconnected D 2020-09-08 09:31:49,690 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False general: Disconnected:
+1 i hame same erron when try to login,
_MD5_CLASSES = "cNybSe4rrqOXHTefQvd8VQ=="
_VERSION = "2.20.194"
[offline]:/L
D 2020-09-19 20:47:18,173 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-09-19 20:47:18,173 yowsup.layers.network.layer - Connecting to e12.whatsapp.net:443
D 2020-09-19 20:47:18,173 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e12.whatsapp.net', 443))
D 2020-09-19 20:47:18,268 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect
D 2020-09-19 20:47:18,268 yowsup.layers.network.layer - Connected
D 2020-09-19 20:47:18,268 yowsup.axolotl.manager - level_prekeys(force=False)
D 2020-09-19 20:47:18,271 yowsup.axolotl.manager - len(pending_prekeys) = 812
D 2020-09-19 20:47:18,271 yowsup.axolotl.manager - load_unsent_prekeys
I 2020-09-19 20:47:18,274 yowsup.axolotl.manager - Loaded 812 unsent prekeys
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Received auth event
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Performing handshake [username= 7964*******7, passive=True]
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Starting handshake worker
D 2020-09-19 20:47:18,487 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close
D 2020-09-19 20:47:18,487 yowsup.layers.network.layer - Disconnected
D 2020-09-19 20:47:18,494 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected:
+1 i hame same erron when try to login,
_MD5_CLASSES = "cNybSe4rrqOXHTefQvd8VQ==" _VERSION = "2.20.194"
[offline]:/L D 2020-09-19 20:47:18,173 yowsup.layers.network.layer - Created asyncore dispatcher I 2020-09-19 20:47:18,173 yowsup.layers.network.layer - Connecting to e12.whatsapp.net:443 D 2020-09-19 20:47:18,173 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e12.whatsapp.net', 443)) D 2020-09-19 20:47:18,268 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect D 2020-09-19 20:47:18,268 yowsup.layers.network.layer - Connected D 2020-09-19 20:47:18,268 yowsup.axolotl.manager - level_prekeys(force=False) D 2020-09-19 20:47:18,271 yowsup.axolotl.manager - len(pending_prekeys) = 812 D 2020-09-19 20:47:18,271 yowsup.axolotl.manager - load_unsent_prekeys I 2020-09-19 20:47:18,274 yowsup.axolotl.manager - Loaded 812 unsent prekeys D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Received auth event D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Performing handshake [username= 79644269337, passive=True] D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Starting handshake worker D 2020-09-19 20:47:18,487 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2020-09-19 20:47:18,487 yowsup.layers.network.layer - Disconnected D 2020-09-19 20:47:18,494 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False general: Disconnected:
see https://github.com/tgalal/yowsup/issues/3004#issuecomment-688215688
i changed it, to:
_MD5_CLASSES = "PzuZ7EJNcuXEealGEJT6+g=="
_VERSION = "2.20.134"
but i have new troible:
[offline]:/L
I 2020-09-19 21:51:52,866 yowsup.layers.network.layer - Connecting to e3.whatsapp.net:443
I 2020-09-19 21:51:52,969 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Disconnected:
i changed it, to:
_MD5_CLASSES = "PzuZ7EJNcuXEealGEJT6+g==" _VERSION = "2.20.134"
but i have new troible:
[offline]:/L I 2020-09-19 21:51:52,866 yowsup.layers.network.layer - Connecting to e3.whatsapp.net:443 I 2020-09-19 21:51:52,969 yowsup.axolotl.manager - Loaded 812 unsent prekeys general: Disconnected:
search for number that you register 79644***** you should found folder with number name . delete that folder and register again.
I deleted folder rm -rf /root/.config/yowsup/7964***** and try to use other phone number, registered is ok, but login is trouble:
[offline]:/L
I 2020-09-19 22:17:28,420 yowsup.layers.network.layer - Connecting to e11.whatsapp.net:443
I 2020-09-19 22:17:28,515 yowsup.axolotl.manager - Generating 812 prekeys, current max_prekey_id=0
I 2020-09-19 22:17:28,990 yowsup.axolotl.manager - Storing 812 prekeys
I 2020-09-19 22:17:31,882 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Disconnected:
[offline]:
root@instance-20200701-2158:/home/ubuntu/yowsup# yowsup-cli version
yowsup-cli v3.2.0
using:
yowsup v3.2.3
consonance v0.1.3-1
dissononce v0.34.3
python-axolotl v0.2.2
cryptography v2.8
protobuf v3.13.0
I deleted folder rm -rf /root/.config/yowsup/7964***** and try to use other phone number, registered is ok, but login is trouble:
[offline]:/L I 2020-09-19 22:17:28,420 yowsup.layers.network.layer - Connecting to e11.whatsapp.net:443 I 2020-09-19 22:17:28,515 yowsup.axolotl.manager - Generating 812 prekeys, current max_prekey_id=0 I 2020-09-19 22:17:28,990 yowsup.axolotl.manager - Storing 812 prekeys I 2020-09-19 22:17:31,882 yowsup.axolotl.manager - Loaded 812 unsent prekeys general: Disconnected: [offline]:
root@instance-20200701-2158:/home/ubuntu/yowsup# yowsup-cli version yowsup-cli v3.2.0 using: yowsup v3.2.3 consonance v0.1.3-1 dissononce v0.34.3 python-axolotl v0.2.2 cryptography v2.8 protobuf v3.13.0
try to install exact version from pip protobuf v4.0.0rc2 cryptography v3.1
if not fixed check this pull: https://github.com/tgalal/yowsup/pull/2924
status: fail reason: bad_token
Suddenly after a lengthy time of operating well, yowsup no longer logs in. In checking, I downloaded the latest Whatsapp APK . I went through the setup process here in this blog, https://iamjagjeetubhi.wordpress.com/2017/09/21/how-to-use-yowsup-the-python-whatsapp-library-in-ubuntu/ which worked before. I keep getting bad_token even after using the dexMD5.py script to get the information I needed to modify the yowsup/env/env_android.py file before building & installing. This is a bit urgent and was working a few days ago. The Whatsapp APK information generated was here:
Version: 2.20.197.18 ClassesDex: +ZPePApgUEaLrsODPbfSDA==
Please include any output as code blocks for proper formatting. For example:
Config file
I wasn't able to generate a configuration file since the SMS request didn't work.
Versions
Python 3.6.9 python3 yowsup-cli version yowsup-cli v3.2.0 using: yowsup v3.2.3 consonance v0.1.3-1 dissononce v0.34.3 python-axolotl v0.2.3 cryptography v2.9.2 protobuf v3.12.2
If you are not using a released version but code directly from the repository, please indicate the commit hash.
OS (please complete the following information): Ubuntu 18.0.4