venomous0x / WhatsAPI

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

Password problem #153

Open jayay opened 11 years ago

jayay commented 11 years ago

I'm using WhatsAPP for S40 on my Nokia X3-02. How do I have to encrypt the password then? I tried the IMEI, the md5'd IMEI and the md5ed WLAN MAC repeated twice. None of these are valid in the WhatsAPP API. Does anyone know a solution? Thanks!

jayay commented 11 years ago

Hint: I found this page: http://pastebin.com/npbwcj1s showing the original WhatsAPP code which encrypts the IMEI. Could someone please translate it into PHP? I cannot understand Java :(

jayay commented 11 years ago

I encrypted my password using the java code posted above, then I have put the encrypted version into $imei. Then I've changed line 74 in whatsprot.class.php from

return md5(strrev($this->_imei));

into

return $this->_imei;

Works.

in00b commented 11 years ago

encrypted my password using the java code posted above... But Still it doesn't work.

jayay commented 11 years ago

did you...

in00b commented 11 years ago
put your IMEI into the variable? - Line 8 : String imei = "1234"; - edited ..

compile the program? - successfully returns some hash code.

comment out the php function which encrypts the password in WhatsAPI? -  
public function encryptPassword()  {return $this->_imei;}

All done but the api says wrong password.

jayay commented 11 years ago

Did you register your whatsapp with another phone number and changed then? In this case you have to log in with your old phone number.

in00b commented 11 years ago

I tried with 3 different accounts of my friends...

Even below Api Give Wrong Password Error...

https://github.com/perezdidac/WhatsAPINet

jayay commented 11 years ago

I tried it using the original URL to the API: https://r.whatsapp.net/v1/exist.php?cc=49&in=15123456&udid=xxx where "cc" is the international country's prefix (49 for Germany), "in" is the rest of the phone number and udid is the generated password hash. Which version of WhatsApp for S40 are you running?

in00b commented 11 years ago

I already tried that doesnot work for some acc but it did worked for 1 acc ..... now is there any way to find my own password?

jayay commented 11 years ago

yup. Type *#06# into your phone, this will show you the IMEI. the encrypted IMEI is the password.

Vinzet88 commented 11 years ago

Hello, I would to use Whatsapi for a Nokia N80; I tried normal Whatsapi procedure but it doesn't work; How can i use whatsapi for my Nokia N80? Thank you.

(I'm sorry for my low level english)

shirioko commented 11 years ago

You can't.