venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.13k forks source link

SMS code doesn't sent #529

Open alaanasreng opened 10 years ago

alaanasreng commented 10 years ago

When i try this Code:

$username = "2010XXXXXXXX"; $identity = strtolower(urlencode(sha1($username, true))); // Obtained during registration with this API or using MissVenom (https://github.com/shirioko/MissVenom) to sniff from your phone. $nickname = 'Eng Alaa Nasr';

i get this reply:

Array ( [cc] => 20 [in] => 10XXXXXXXX [to] => 2010XXXXXXXX [lg] => ar [lc] => EG [method] => sms [mcc] => 602 [mnc] => 001 [token] => j%2FGZFmni4ryhqNE0uIeMaBh7GFs%3D [id] => %f3%f9%23w%f9%f5%7ev%a0z%a5-c%a7a%94%8f%8a%84%a3 )

but the SMS code does't sent to my mobile, please help my to get the password

shirioko commented 10 years ago

^ that's not a reply, that's the request. Post the response data.

alaanasreng commented 10 years ago

How can i get the response data, y can see this link:

http://smartech-it.com/Whatsapp/src/php/exampleRegister.php

mgp25 commented 10 years ago

Take a look at the code https://github.com/venomous0x/WhatsAPI/blob/master/src/php/exampleRegister.php

Once you have the sms code, simply use:

$w->codeRegister('SMS CODE'); //sms code you received, if you receive for example 123-345, use it without '-' like this: 123456
alaanasreng commented 10 years ago

i am really use it with this data

$username = "2010XXXXXXXX"; $identity = strtolower(urlencode(sha1($username, true))); // Obtained during registration with this API or using MissVenom (https://github.com/shirioko/MissVenom) to sniff from your phone. $nickname = 'Eng Alaa Nasr';

mgp25 commented 10 years ago

sigh

Change your config, and try this scripts...

with this you request the sms code

<?php

require_once('whatsprot.class.php');

$username = '34666554433';                      // Telephone number including the country code without '+' or '00'.
$nickname = 'John Doe';                         // This is the username displayed by WhatsApp clients.

$w = new WhatsProt($username, $identity, $nickname, TRUE);

$w->codeRequest('sms');
?>

With this you register with the code you received

<?php

require_once('whatsprot.class.php');

$username = '34666554433';                      // Telephone number including the country code without '+' or '00'.
$nickname = 'John Doe';                         // This is the username displayed by WhatsApp clients.

$w = new WhatsProt($username, $identity, $nickname, TRUE);

$w->codeRegister('123456');
?>
alaanasreng commented 10 years ago

mgp25

I really use this:

<?php

require_once('whatsprot.class.php');

$username = '20102505300'; // Telephone number including the country code without '+' or '00'. $nickname = 'Eng Alaa Nasr'; // This is the username displayed by WhatsApp clients.

$w = new WhatsProt($username, $identity, $nickname, TRUE);

$w->codeRequest('sms'); ?>

and when i call this link: http://smartech-it.com/Whatsapp/src/php/exampleRegister.php

print:

Array ( [cc] => 20 [in] => 1025053800 [to] => 201025053800 [lg] => ar [lc] => EG [method] => sms [mcc] => 602 [mnc] => 001 [token] => j%2FGZFmni4ryhqNE0uIeMaBh7GFs%3D [id] => %da9%a3%ee%5ekk%0d2u%bf%ef%95%60%18%90%af%d8%07%09 )

and the SMS code does't send. Any Help please

mgp25 commented 10 years ago

I run the script, sms is already sent to you, just register the code with the second script. If you dont know, use WART instead