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
How can i send message by using phone number witch already being registered? #2849
Comments
how can i get client static keypair? |
I don't think you can. It's probably encrypted in your app data folder somewhere or in the db... |
With iOS I'm not aware of a way, but if you have a rooted Android device available, you can pull the values and I can't remember the exact location though, you'll have to find that yourself. |
Are you sure the client key is in there? I looked through the axolotl.db from my phone but it doesn't appear like there is anything that resembles the client static key... |
I'm gonna guess that you opened that file as the SQLite3 (Android variant) it is, and not as a text or binary file. |
Of course. But the only table in the db that looked somehow interesting to me were the prekeys that yowsup also downloads right after registration. |
I just checked, apparently I found |
nice I somehow missed that. |
@Neolysion If you manage to do it correctly can you make a short how-to for dummies? |
{
"__version__": 1,
"cc": "[countrycode]",
"client_static_keypair": "...",
"edge_routing_info": "...",
"expid": "...",
"fdid": "...",
"id": "...",
"mcc": "[mcc]",
"mnc": "[mnc]",
"phone": "[phone]",
"pushname": "[yourname]",
"server_static_public": "...",
"sim_mcc": "000",
"sim_mnc": "000"
} Alternative, keyval format: Lines 23 to 40 in f14a03f
Where is that saved? Lines 85 to 108 in f14a03f
I'd love people reading code and/or learning at least Python before asking. |
Hi guys, sorry for reopening the topic, but I've got the keyspair from this file data/com.whatsapp/shared_prefs/keystore.xml and I tried to use convert it to BASE64 but the code complained about the length. Is there something I'm doing wrong here? |
@bryanjhv I got the same error as @SAMY-MOHSEN: |
Please at least share the stack trace. A simple GitHub search for "wrong length" returned no code matches so it might be from some of Yowsup's dependencies, would be useful to see. Apart from that, other error that I can think of is that the "echo" command must go with single quotes instead of double to avoid shell expansion, escaping and those things. Regarding the keyval example, I don't remember it correctly but I think quotes are needed (at the start and the end of the string) because it contains an "=" sign which could be misinterpreted by the parser (note: I might be wrong). |
@bryanjhv here is the stack trace:
If I use single quotes instead of double quotes with echo, the base64 result is the same. |
Here are the links relevant to the stack trace you provided. After looking at Here's a script which could help (just adds the required "=" padding): # save as pad.py and run:
# python pad.py '[keypair]'
from sys import argv, exit
from base64 import b64decode
if len(argv) != 2:
print('ERROR: Missing keypair.')
exit(1)
value = argv[1]
if len(value) > 88:
print('ERROR: Invalid keypair.')
exit(1)
print(value + (88 - len(value)) * '=') NOTE: This does not guarantee that it will work or even be a valid one. I'm just helping with the validation. WhatsApp is banning most accounts so be careful, I'm not held responsible for you getting banned or someting, neither I am affiliated with someone here. |
@bryanjhv thanks, since I don't use Android / iOS on my smartphone, I registered my phone number with the official WhatsApp Android app on my laptop using Anbox (it works using Android x86 in VirtualBox also). I read that they ban people who register with yowsup but anyway I don't really use WhatsApp since they don't provide a standalone web version that works without Android / iOS app. The keypair was indeed already in base64 format, I just had to add 2 equals.
Update: @tgalal could it mean that yowsup does not work anymore because WhatsApp changed its API? I often see updates for the Android app that requires the user to download the new version. |
Now we cant register by yowsup,so i registered a account by ios whatsapp application,
Then i logged on and send some message by whatsapp app.
The problem is how can i use this phone number to send message by yowsup?
there is not password thing.just a phone number and Verification Code to logging.
Guys,What should i do?
The text was updated successfully, but these errors were encountered: