venomous0x / WhatsAPI

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

Blackberry seems to not use IMEI as password #78

Open MoebiuZ opened 11 years ago

MoebiuZ commented 11 years ago

Any news on how BB generates the password? I couldn't try with MAC yet.

eleazan commented 11 years ago

https://github.com/venomous0x/WhatsAPI/issues/35

Not IMEI and not MAC (and not pin xD) for me! >_<

zstars commented 11 years ago

Seems to be working to some people such as @cdesjardins but not to others, such as myself (though I haven't been able to physically get a blackberry to test properly).

Maybe it uses a different password depending on the model/version?

If anyone has some insight into the issue it would be welcome :)

Meanwhile, I downloaded the cod file. In case anyone wants it, this is the direct link, so that you needn't mess with your user-agent: http://www.whatsapp.com/ota/build/RELEASE/5.0.0/OTA/WhatsApp-20.cod

Unfortunately my knowledge about the blackberry is very limited, and I don't think I have the time/ability to disassemble it. Around the web there are mentions of a "coddec" blackberry decompiler, but I haven't been able to find links and it doesn't sound very usable.

fquinto commented 11 years ago

Hello all! All information about this: https://www.box.com/s/nwb5kix4wunjxrphqdqj MD5SUM: d00578c6a7a19a892bcdf57e614a0843 decompiled_disassembling_files.zip This is from WhatsApp v.7 for BlackBerry.

I can NOT test anything on BlackBerry I don't have one.

zstars commented 11 years ago

Nice @fquinto! I've had a quick look at the code and I guess the password is being used, for instance, here: (On FunXMPP$Login's generateResponse method)

    aload_6  
    invokevirtual java.lang.StringBuffer append( java.lang.StringBuffer, java.lang.String ) // pc=2
    invokevirtual_short .toString // idx=2 pc=1

This IMHO suggests that generateResponse is receiving the password as its sixth argument. Unfortunately I have so far been unable to trace it back, because nothing seems to call generateResponse :( Something kinda must be calling it, but maybe it's not been properly resolved by the decompiler and is referencing the interface method by number or so.

It's also mildly interesting (and somewhat unrelated) that there is a DEBUG_PASSWORD constant defined:

    arrayinit [W, A, 4, B, B]
    putstatic DEBUG_PASSWORD // Constants

Though I guess that doesn't help us much.

fquinto commented 11 years ago

Decode array number table

You can see that inside the decompiled code, often presents numbered arrays [69, 83, ...]. These are texts. You need a table to translate this numbers to text. You can see my table that I used to "translate" code It's interesting translate all code to read easily. Are there any volunteers to do this?

Inside me last post on this thread you can see a file (inside link) called: WhatsApp-42\cod\com\whatsapp\client\Constants.java

and inside same path, a file called: Constants_ok.java -> this file was "translated" using the table indicated.

In another words: when you see: arrayinit [69, 83, 38, 80, 80] is arrayinit [W, A, 4, B, B]

globz commented 11 years ago

I got it to work on my blackberry, you can read more here http://kittybomber.com/blog/2012/whatsapp_blackberry/

eleazan commented 11 years ago

What BB u have? And what's your RIM OS? >_<

globz commented 11 years ago

Blackberry 9700 / os v5.0.0.862

eleazan commented 11 years ago

8900 / os v5.0.0.1036 and not is imei >_<

globz commented 11 years ago

okay, this is what I use for this test :

Account created on september 11 2012 Blackberry 9700 / os v5.0.0.862 Whatsapp v2.8.1914

montasir1 commented 11 years ago

Iam not understand ur question?

liana medical company ltd.co Gad Greeb Building First floor North Al Fardous Hotel P.O. Box 13511 sudan - khartoum

Tel: + 249 155 109673 Fax: + 249 183 793072 skype liana_company


From: Andrés notifications@github.com To: venomous0x/WhatsAPI WhatsAPI@noreply.github.com Sent: Wednesday, September 26, 2012 5:24 PM Subject: Re: [WhatsAPI] Blackberry seems to not use IMEI as password (#78)

What BB u have? And what's your RIM OS? >_< — Reply to this email directly or view it on GitHub.

montasir1 commented 11 years ago

مرحباً،

لقد حملّت WhatsApp Messenger على جهاز أي فون الخاص بي.

هو كناية عن تطبيق للمراسلة الفورية أعد للهواتف الذكية ومن شأنه أن يغنيك عن الرسائل النصية. كما يتيح إرسال الصور والفيديو وغيرها من الوسائط!

إن تطبيق واتساب متوفر للأجهزة التالية: أي فون، أندرويد، نوكيا وبلاك بيري. وهو لا يتطلب تسجيل دخول أو حفظ اسم مستخدم وكلمة مرور. كما يعمل تماماً مثل الرسائل النصية ويستخدم خطة بيانات الإنترنت للمراسلة.

احصل على البرنامج الآن من هذا الرابط http://www.whatsapp.com/download/ وقل وداعاً للرسائل النصية.

‏من جهاز الـ iPhone الخاص بي

gerswin commented 11 years ago

Wtf

Enviado desde mi iPhone

El 30/09/2012, a las 11:56, montasir notifications@github.com escribió:

مرحباً،

لقد حملّت WhatsApp Messenger على جهاز أي فون الخاص بي.

هو كناية عن تطبيق للمراسلة الفورية أعد للهواتف الذكية ومن شأنه أن يغنيك عن الرسائل النصية. كما يتيح إرسال الصور والفيديو وغيرها من الوسائط!

إن تطبيق واتساب متوفر للأجهزة التالية: أي فون، أندرويد، نوكيا وبلاك بيري. وهو لا يتطلب تسجيل دخول أو حفظ اسم مستخدم وكلمة مرور. كما يعمل تماماً مثل الرسائل النصية ويستخدم خطة بيانات الإنترنت للمراسلة.

احصل على البرنامج الآن من هذا الرابط http://www.whatsapp.com/download/ وقل وداعاً للرسائل النصية.

‏من جهاز الـ iPhone الخاص بي

— Reply to this email directly or view it on GitHubhttps://github.com/venomous0x/WhatsAPI/issues/78#issuecomment-9015102.

globz commented 11 years ago

Ok, I want a follow up on this issue, anyone else besides me and cdesjardins got to make it work on a blackberry?

Please read this if you want to know how : http://kittybomber.com/blog/2012/whatsapp_blackberry/

When you are done testing please post your result and what you are using for the test, in this format :

Account created on september 11 2012 Blackberry 9700 / os v5.0.0.862 Whatsapp v2.8.1914