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

What does the commercial version of registration v2/register?ENC= vname mean? How to generate it? #3237

Open
musir88 opened this issue Oct 9, 2023 · 6 comments
Assignees

Comments

@musir88
Copy link

musir88 commented Oct 9, 2023

What does the commercial version of registration v2/register?ENC= vname mean? How to generate it?

@is99zsq
Copy link

is99zsq commented Oct 11, 2023

it is a VerifiedNameCertificate in e2e_pb.

@musir88
Copy link
Author

musir88 commented Oct 12, 2023

May I ask for your advice on registering WhatsApp business

I found some information online that someone prompted me to obtain a verification code for the commercial version.
I can indeed obtain the verification code here
url: 'https://v.whatsapp.net/v2/code?ENC=',
params: {
cc: '63',
in: '9364319565',
lg: 'en',
lc: 'US',
mistyped: '6',
authkey: 'kPJXyvR61l5U4RuxnrPXGav71EgKZE+IGiYo55YNP2s=',
e_regid: 'AAAhrw==',
e_keytype: 'BQ',
e_ident: 'hVqt4SmAkH6AkaoB5T6PChiNgG9CSaIF1UGSNrZSn0I=',
e_skey_id: 'AAAA',
e_skey_val: 'GjtP8R8XCWIQ4b/okWIpkujJE3Z6Xx3YNDy6uX+ynAg=',
e_skey_sig: '2VwlWwM7w89ahN0utkgpAmgb3JcTtfLUhbn8PUpNcgbmrfA+nQyrKpF/Pz3JAuZh7Zz3Qznktq1wdmlwPsedhg==',
fdid: 'e7cca6c6-2240-4197-9612-c65d3efc342b',
expid: 'lIi6lfIWRGGD4iiq3H6p7A==',
network_radio_type: '1',
simnum: '1',
hasinrc: '1',
pid: 9634,
rc: 0,
client_metrics: '{"attempts"%3A1}',
read_phone_permission_granted: '1',
offline_ab: '{"exposure"%3A[]%2C"metrics"%3A{}}',
network_operator_name: '',
sim_operator_name: '',
sim_state: '1',
mcc: '515',
mnc: '088',
sim_mcc: '000',
sim_mnc: '000',
method: 'sms',
reason: '',
token: '5stFFRT5w3wb/Ed+PasoUQq/WdA=',
hasav: '2',
id: <Buffer 3e 2a 70 79 70 da e7 e3 90 e8 5d ac b7 f1 da 80 86 27 c4 fa>,
backup_token: 'PipweXDa5+OQ6F2st/Ha'
},
headers: {
Accept: 'text/json',
WaMsysRequest: 1,
request_token: 'd09162c2-54e0-466d-9b74-3a3309405b4e',
Host: 'v.whatsapp.net',
Connection: 'Keep-Alive',
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'WhatsApp/2.23.21.8 SMBA/10.11.0 Device/HUAWEI P60'
},
_p_in: '9364319565'
}

After obtaining the verification code, it looks like this.
url: 'https://v.whatsapp.net/v2/register?ENC=',
params: {
cc: '63',
in: '9364319565',
lg: 'en',
lc: 'US',
mistyped: '6',
authkey: 'F5siWheO531S+SlKm5HmT30JTM80LxeWenHXux7fgkM=',
e_regid: 'AAABgA==',
e_keytype: 'BQ',
e_ident: '1ab3RC5BWhDCneEWpPrY9G4uH/F8pGHyUMlHSboHJwA=',
e_skey_id: 'AAAA',
e_skey_val: 'rIbalSUBo3kaM6dcF+B5Q8g4cQGFOjccbUaTOF3KBFA=',
e_skey_sig: 'WJe6XBxZSJf0WokozsdaRjPuYW7vhfRTN15qpQCJJimYHOQs0yVHU/XRbAzDe1dSEqdp0Mui73sK2xZ6wugQAA==',
fdid: '50ac742e-99b3-4548-9d7a-31aa4adcfd23',
expid: 'SpKY15FwRG+cJ+UqsiZoKw==',
network_radio_type: '1',
simnum: '1',
hasinrc: '1',
pid: 1189,
rc: 0,
client_metrics: '{"attempts"%3A1}',
entered: '1',
sim_operator_name: '',
id: <Buffer 3a 2a 73 60 98 55 fc a8 36 20 bf 2c 09 6a ed a5 db 04 43 83>,
backup_token: 'OipzYJhV/Kg2IL8sCWrt',
code: '805959',
vname: 'ChQI0Paaj8HB3YkBEgZzbWI6d2EiABJAs+NIVc6kPJUt5yAAbdvn50XbfzHuoXA7oRHs0eWNuY2tsaMU97+yTmtmFeajWcdU3z4C+dX60SRw4gAjwWuSAA=='
},
headers: {
Accept: 'text/json',
WaMsysRequest: 1,
request_token: '9206f64f-6784-4759-88c1-28336a0e6195',
Host: 'v.whatsapp.net',
Connection: 'Keep-Alive',
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'WhatsApp/2.23.21.8 SMBA/10.11.0 Device/HUAWEI P60'
},
_p_in: '9364319564'
}

use code to register ===> {
login: '639364319565',
reason: 'temporarily_unavailable',
retry_after: 120,
sms_wait: 120,
status: 'fail',
voice_wait: 120
}

I don't know if it's right for me to register for business like this
generateVName(privateKeys) {

const privateKey = Buffer.from(privateKeys, 'base64');

 const vname = new VNameMessages.VName();
const cert = new VNameMessages.VName.CERT();

cert.setRand64(this.generateRandomInt(10000000000000000, 90000000000000000));
cert.setSmbWa("smb:wa");
cert.setNick("");

vname.setCert(cert);

const bs = cert.serializeBinary();
const signature = ed25519.Sign(bs, privateKey);
    vname.setSignature(signature);

return vname;

}

var vname = this.generateVName(request.params.e_ident);

const serializedVName = vname.serializeBinary();
const hexString = Buffer.from(serializedVName).toString('hex');
// console.log("hexString", hexString);

vname = Buffer.from(serializedVName).toString('base64');

@musir88
Copy link
Author

musir88 commented Oct 12, 2023

I am studying this and I am paying for it

@wanxings
Copy link

@musir88 Has this problem been solved?

@musir88
Copy link
Author

musir88 commented Oct 18, 2023

@musir88这个问题解决了吗?

YES

@musir88
Copy link
Author

musir88 commented Oct 19, 2023

我正在研究这个并且我正在为此付费

你好,你能出示你的电报吗?我想请求您进行演示并支付您的时间费用

https://t.me/vw900

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

No branches or pull requests

4 participants