davidgfnet / whatsapp-purple

WhatsApp protocol implementation for libpurple (pidgin)
856 stars 211 forks source link

How do I use it? #20

Closed lbochitt closed 11 years ago

lbochitt commented 11 years ago

Sorry for being such an ignorant but I have just started using Ubuntu (A total noob) and I'm a little confused on how to add this package into Pidgin. I have downloaded your whole folder as a .zip file. I have extracted the files but now I don't know what to do. I would appreciate if you could tell me what to do next. Thanks in advance

dtrunk90 commented 11 years ago

https://developer.pidgin.im/wiki/ThirdPartyPlugins

lbochitt commented 11 years ago

Thanks for replying. Unfortunately, I've followed the steps mentioned in the link, but Pidgin hasn't recognized the plugin yet. I've copied the .so file and created a folder called "plugins" inside the .purple folder. I am doing something wrong, but I can't figure out what.

davidgfnet commented 11 years ago

Are you sure that the plugin is in: /home/whateveryouruseris/.purple/plugins/libwhatsapp.so In that case check that "WhatsApp" appears as a valid protocol in the "Help > Plugin info". There you should be able to see WhatsApp as loadable and loaded.

Also you can start pidgin with debug info and send us the log so we can check. To do so just launch pidgin from the commandline: pidgin --debug > log.txt

Hope this helps

lbochitt commented 11 years ago

It worked! Turns out I had to shut down the program and start it again (I don't know why I thought about trying that) "WhatsApp" appeared as a valid protocol in the "Help > Plugin info" ---> Loadable and loaded.

Here's another problem... when setting up my account I was unable to connect). I attach the debug info:

Pidgin Debug Log : Fri 16 Aug 2013 12:06:08 AM ART (00:04:56) account: Connecting to account 54(here was my phone number) (00:04:56) connection: Connecting. gc = 0x7f88d6b72f40 (00:04:56) waprpl: logging in (here was my phone number) (00:04:56) dnsquery: Performing DNS lookup for c3.whatsapp.net (00:04:56) dns: Wait for DNS child 2875 failed: No child processes (00:04:56) dns: Created new DNS child 2892, there are now 1 children. (00:04:56) dns: Successfully sent DNS request to child 2892 (00:04:56) dns: Got response for 'c3.whatsapp.net' (00:04:56) dnsquery: IP resolved for c3.whatsapp.net (00:04:56) proxy: Attempting connection to 184.173.161.183 (00:04:56) proxy: Connecting to c3.whatsapp.net:443 with no proxy (00:04:56) proxy: Connection in progress (00:04:57) proxy: Connecting to c3.whatsapp.net:443. (00:04:57) proxy: Connected to c3.whatsapp.net:443. (00:04:59) util: Writing file prefs.xml to directory /home/luciano/.purple (00:04:59) util: Writing file /home/luciano/.purple/prefs.xml (00:04:59) connection: Connection error on 0x7f88d6b72f40 (reason: 0 description: Server closed the connection) (00:04:59) account: Disconnecting account (here was my phone number) (0x7f88d5e8aa00) (00:04:59) connection: Disconnecting connection 0x7f88d6b72f40 (00:04:59) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file /usr/share/pixmaps/pidgin/protocols/16/whatsapp.png: Failed to open file '/usr/share/pixmaps/pidgin/protocols/16/whatsapp.png': No such file or directory (00:04:59) connection: Destroying connection 0x7f88d6b72f40 (00:05:02) util: Writing file accounts.xml to directory /home/luciano/.purple (00:05:02) util: Writing file /home/luciano/.purple/accounts.xml (00:06:08) prefs: /pidgin/filelocations/last_save_folder changed, scheduling save.

What shall I do?

Thanks again for helping me!

davidgfnet commented 11 years ago

Your user and password are incorrect. I guess you don't even know your username :)

lbochitt commented 11 years ago

Yeah you are right :smile: . I've looked on other website and there I was able to place my phone number and it sent me a 6 number code to my phone via SMS which was supposed to create me a Whatsapp account. I tried using that code as a password but no luck. I read on "other issues" that I should use a program called MissVenom. I looked at MIssVenom instructions but that was complete rocket science to me :stuck_out_tongue:

shirioko commented 11 years ago

IT'S NOT FUCKING ROCKET SCIENCE https://github.com/shirioko/MissVenom/wiki/WP7-tutorial

damn you people, do you need a video tutorial as well?? :')

lbochitt commented 11 years ago

No offense intended Shirioko. I am new to Ubuntu and have 0 programming skills. I know I am asking dumb questions but it's because I am a complete ignorant :+1:

shirioko commented 11 years ago

:+1: AFAIK MissVenom doesn't work with Mono on Ubuntu, you'll need a Windows machine to use it.

lbochitt commented 11 years ago

Thanks for answering! I'll try getting my password running whatsapp on bluestacks and using your program from one of the computers at work :+1: That should do the trick

davidgfnet commented 11 years ago

I think Shiroko is tired of explaining this over and over. Thanks for the wiki BTW! Do you think it would be possible to extract the password directly from the phone? I mean, reversing pw.dat

shirioko commented 11 years ago

No

davidgfnet commented 11 years ago

I took a look at https://github.com/tgalal/yowsup/issues/77 and the pw.dat contains the raw bytes of the password. I don't have WA in my phone so I cannot check it, but if you do, could you extract the pw.dat file and check whether the content matches the password?

shirioko commented 11 years ago

I don't have an iPhone so I can't test it, but I can try accessing WhatsApp binary settings on WP7

dtrunk90 commented 11 years ago

Damned guys. Stop flooding my inbox! I was on the way and got 10 mails... This isn't a discussion forum. If MissVenom doesn't work on Linux I wouldn't use it. There's Java and it's platform independant. If some developers want to use C# shit they're the ignorants.

lbochitt commented 11 years ago

Tried using bluestacks on windows and running MissVenom at the same time to see if i could get my password. Nothing happened. I tried using yowsup to see if I could get my password from there. I followed this commands and finally I was able to get my password. http://hacktracking.blogspot.com.ar/2013/02/yowsup-cli-send-whatsapp-messages-from.html

Now I am able to use whatsapp! Thanks for your help!! :smile: :+1:

davidgfnet commented 11 years ago

For future reference, you better ask at MissVenom's, as I don't really care about registering process in my projects but the chat protocol itself. Closing!