Skip to main content

command line yahoo messanger

Here's the deal. I want to write a program that capture my Yahoo! Messanger (YM) chat in a text file. Basically, a command line chat program. I could have a listener program, which listens my chat partner's responses, and a writer / talker / sender, which sends my text to YM server.

The idea is a mix of dsniff's msgsnarf and Pidgin's finch. Once I can separate the text, I could do so many things (like write a Tcl/Tk wrapper around them building a new GUI, or send them to a web-based program like Meebo, or ... many intersting things).

Now. I need suggestions.

Should I write it from scratch? (Probably using perl or C. Which perl module should I use? I've been neglecting perl for quite a while. I am rusted. I also notice that there is a libpurple library in C. Should I use that one, instead?)

Or modify existing program(s)? Which one? (I just found out there's a program called ari-yahoo on the *BSD port. It's an old program and uses yahoolib. Is using yahoolib a good approach? Or should I go through the jabber route? Then, use this one: jarl - Perl/Tk jabber client.)

Any pointer is welcome.

Comments

silent said…
how about libpurple [http://developer.pidgin.im/wiki/WhatIsLibpurple] sir?
sandalian said…
Sir, there is libyahoo in C ready for this purpose. You can check InfoLinux magazine a few months back. The article was written by Noprianto.
budi said…
I've read the documentation, but to be frankly I don't know if I should go into that route.
amadarum.net said…
Good idea,
hm... it will hide from your boss.
thanks for your idea.
Ariya Hidayat said…
I recalled making supersimple & barebone Qt-based YIM client using libyahoo2, it was dead easy and took only a weekend. Give it a try!
budi said…
I've got a lead from www.ycoderscookbook.com/. A nice and thorough site.

Done with the thing. Basically I wrote a messanger sniffer. Capture the packets with tcpdump or snort, then process them with perl + Net::TcpDumpLog. An interesting little beast.

In the message, there are fields (id) and values, separated by "C0 80". I still don't know exactly what the fields mean though since they use number. I just made guesses. For example, "14" is the message and so on. Do you still remember what those fields mean? (Is there a table somewhere?)
zacko said…
net ym modules from cpan
, i am sure its fixable :)

Popular posts from this blog

Himbauan Kepada Hacker & Cracker Indonesia & Malaysia

Kepada Hacker & Cracker Indonesia & Malaysia,

Saya mengharapkan anda tidak melakukan penyerangan atau/dan pengrusakan situs-situs Indonesia dan Malaysia.

Saya mengerti bahwa akhir-akhir ini beberapa masalah di dunia nyata membuat kita kesal dan marah. Namun kekesalan tersebut sebaiknya tidak dilimpahkan ke dunia maya (cyberspace). Semestinya sebelum melakukan aksi yang berdampak negatif, kita bisa melakukan langkah-langkah positif seperti melakukan dialog (melalui email, mailing list, bulletin board, blog, dan media elektronik lainnya).

Kita harus ingat bahwa kita hidup bertetangga dan bersaudara. Yang namanya hidup bertetangga pasti mengalami perbedaan pendapat. Mari kita belajar bertetangga dengan baik.

Saya berharap agar kita yang hidup di dunia maya mencontohkan bagaimana kita menyelesaikan permasalahan dengan kepala dingin dan hati yang lapang, sehingga para pemimpin kita di dunia nyata dapat mencontoh penyelesaian damai. Mudah-mudahan mereka dapat lebih arif dan bijaksana da…

Yummy ...

[seafood lamien @ banquet, singapore]

Books, books, books

A snapshot of stacks and shelves of books that I have to read. The stack on the right side is actually on a chair. You can't see the bottom of it. It's a mess. Actually, it shows that I read them.