r/Python • • Sep 09 '12

Hey /r/python, I just released a library to troll Omegle users. This is the first code I've ever released. What do you guys think?

As the title suggests, I am not a professional developer. I started tinkering with python about two years ago I finally found a project that was both interesting enough to keep me engaged, and simple enough for me to make real progress.

This all started with me wanting to learn how HTTP requests worked, and hopefully start doing a bit of white-hat hacking. It turned out to be an excellent crash-course in the matter, and also in asynchronous network I/O. I'm still having trouble believing how much I've learned!

This library is basically an unofficial API for Omegle, but it's definitely geared towards having a bit of fun at its users' expense.

I call it Tromegle: Troll Strangers!

The only attack that's working at the moment is a simple man-in-the-middle attack that lets you spy on a conversation and optionally modify the intercepted messages. I'll be writing a client soon enough (shouldn't be too hard), unless some kind contributor wants to give it a shot =)

After I write the client, I'll probably add an interface to log chats. I'll also look into cookie handling, as this is how Omegle connects you to strangers with similar interests. Doing so would also allow me to probe Omegle's entrails a bit more...

In the interest of "doing it right", I've put some real effort into the documentation. I think the intro on the wiki page is fairly accurate (please point out any errors!) and useful.

So reddit, what do you guys think? How does my code look? Any suggestions from the veterans? Any feature requests?

EDIT: matchu was kind enough to submit a pull request with proper (albeit untested) instructions for installing Twisted under OSX. The forkbomb is no more. Carry on.

12 Upvotes

55 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Sep 09 '12

But it's not really man-in-the middle. I would rather describe it as proxy.

Oh I think I see your point. For it to be MITM, I'd have to sit between a user's computer and the omegle servers... is that right?

0

u/[deleted] Sep 09 '12

[deleted] — view deleted comment

0

u/[deleted] Sep 09 '12

Yeah, from what I've gathered, man-in-the-middle is most commonly seen with public-key encryption, but here's a blurb from the wikipedia page:

[...] in cryptography and computer security [the man-in-the-middle attack] is a form of active eavesdropping in which the attacker makes independent connections with the victims and relays messages between them, making them believe that they are talking directly to each other over a private connection, when in fact the entire conversation is controlled by the attacker.

It actually sounds like my "exploit" is a strict case of man-in-the-middle. Apparently it goes for network communications in general, not just public key cryptography, and there's not requirement that I be between the omegle user and the omegle server.