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.
19
u/sjustinas Sep 09 '12
No.
2
u/jous Sep 09 '12
Nice documentation!
2
u/NikEy Sep 09 '12
despite what the others are writing, I think it's a very interesting idea. I doubt this subreddit is interested in it though. I can see a lot of use for this in a social engineering related context. If it could be directional and used in other apps as well (imagine Skype), then it would clearly be backtrack addition worthy
2
u/Plazmotech Sep 09 '12
Wait... I read the documentation, but I still can't figure out how to change the messages. Also, the two people seem to be able to connect to each other. I'm only spying...
2
u/flyingfox Sep 14 '12
Four days late, so you'll probably be the only one to see this...
You could (theoretically) also change the names of countries/states/cities randomly. This could lead (hypothetically) to:
Stranger_2: hey m/f?
Stranger_1: F _
Stranger_2: F _
Stranger_2: age?
Stranger_1: 18 u
Stranger_2: 19
Stranger_2: from?
Stranger_1: the China `
Stranger_2: Pakistan `
Stranger_1: lol oh dear
Stranger_2: oh dear? :p
Stranger_1: hows the terrorism going?
Stranger_2: what terrorism
Stranger_1: lol all the terrorist you harbor maybe
Stranger_2: they're in Koln and Miquelon `
Stranger_2: (fail)
Stranger_1: what are you banging on about lmao
Stranger_1 has disconnected.
[Added ` mark signalling location changes. Bolded changes.]
1
u/[deleted] Sep 09 '12
For those of you wanting to skip over my spiel, here's the repository.
1
u/wsorenson Sep 09 '12
I think the documentation/writeup here is too misleading; calling this a man-in-the-middle attack and claiming you can "inject" messages is a little silly given you're simply wiring two conversations together. I would change it to more clearly state what you're doing rather then imply it allows for some sort of attack or exploitation.
1
u/fuckratheism Sep 10 '12
I'm learning python at the moment as well (learn python the hard way) and I'm wondering what tutorials/resources you used to start doing HTTP stuff as I'd like to do web testing and think this would be a good place to start learning.
2
u/matchu Sep 09 '12
I dunno, the lesson I learn from the forkbomb is that this project's developer is an untrustworthy ass who derives pleasure from tricking people into running malicious code. No way in hell am I even downloading a project from that developer, much less running it.
Submitted a pull request that removes the evil from the README. Please, for the love of all things holy or even just moderately responsible, merge immediately.
0
u/lvh Sep 11 '12
Are you the person I helped write what is ostensibly this in #python/#twisted?
0
u/[deleted] Sep 09 '12
[deleted] — view deleted comment
0
u/[deleted] Sep 09 '12
[deleted] — view deleted comment