Taking a look at Omegle

Bad threads go here

Re: Taking a look at Omegle

Post by odomobo on Mon Feb 01, 2010 4:58 am
([msg=34235]see Re: Taking a look at Omegle[/msg])

Hi All,

First, the code: http://joshodom.net/misc/omegle_hal.pl

I am running it on perl v5.8.8.

It's about as kludgy as any of my code, as of late. If you notice any obvious errors or inefficiencies, they were probably accidental on my part, since I'm not all that proficient with perl or any of the modules I was using.

The way it works is as follows: there's a main thread and an event-polling thread. I have a separate polling thread because requesting the events page blocks until it has an event. The main thread opens a new chat, and waits for the events thread to get a message (which gets placed in the shared scalar $pending_messages). Once it receives a message, the main thread waits a couple seconds (as if it were reading), generates a response, toggles "typing", "types" for several seconds, and sends it. If the person waited too long to respond initially, then hal disconnects. If the person waited too long to respond after sending a message, hal gives them another chance (by sending another message), and if it times out again, hal disconnects.

Perhaps I should port all of my omegle-specific code to an omegle module. That would make omegle hacking a lot easier...

As for a man-in-the-middle attack, I was actually thinking about doing that, again, for the purpose of logging chats. That's my next project, I think.

Finally, megahal is sort of a confused parrot -- he will respond back with things he had already heard (or mutations thereof). The fact that he turned from an insane encyclopedia into a rude, obscene, horny sexbot says a lot about the internet (or, at least about omegle). The fact that a lot of people seem to consider him human also says a lot about the internet... (or, at least about the turing test).
odomobo
New User
New User
 
Posts: 6
Joined: Sat Jan 30, 2010 9:34 am
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by faazshift on Mon Feb 01, 2010 6:06 am
([msg=34238]see Re: Taking a look at Omegle[/msg])

Too bad I don't have perl compiled with ithreads support. Recompiling everything depending on perl would be a pain. Anyway, good job!

-- Tue Feb 02, 2010 12:39 pm --

I just made a pure python version of that program (using someone elses hal class). The first time after I got it working, it quickly turned gay. Now it seems to have an obsession with "How are you?". Its quite entertaining though.
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by jeffory on Wed Feb 03, 2010 12:29 pm
([msg=34382]see Re: Taking a look at Omegle[/msg])

I've quickly made a class in python for connecting to omegle if anyone wants to take a peek:

http://snipplr.com/view/27621/omegle-class/

It seems like a "hackish" or poor method to loop a function like that, but I don't know any other way yet.
:P
jeffory
New User
New User
 
Posts: 2
Joined: Wed Feb 03, 2010 12:18 pm
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by faazshift on Wed Feb 03, 2010 2:41 pm
([msg=34386]see Re: Taking a look at Omegle[/msg])

Likewise, if you care to look at my, in some ways hackish, bot for this: http://python.pastebin.com/f36b47dfa
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by jeffory on Wed Feb 03, 2010 5:09 pm
([msg=34403]see Re: Taking a look at Omegle[/msg])

There's a response not mentioned here:
Code: Select all
recaptchaRequired


Took me all night mucking around to get it and it looks like one of those generic recaptcha.net ones.

EDIT: It's asking for a captcha everytime I connect, I've been blacklisted :oops:
http://i47.tinypic.com/2iw2iav.jpg
jeffory
New User
New User
 
Posts: 2
Joined: Wed Feb 03, 2010 12:18 pm
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by odomobo on Wed Feb 03, 2010 11:05 pm
([msg=34435]see Re: Taking a look at Omegle[/msg])

jeffory wrote:There's a response not mentioned here:
Code: Select all
recaptchaRequired


Took me all night mucking around to get it and it looks like one of those generic recaptcha.net ones.

EDIT: It's asking for a captcha everytime I connect, I've been blacklisted :oops:
http://i47.tinypic.com/2iw2iav.jpg


*shudders* that's terrible. I really wonder why I haven't been blacklisted yet... Maybe I should increase my timeout between chats.

I just made a zorkbot: http://joshodom.net/omegle/omegle_zork/

Not as entertaining as megahal, but it seems like a worthwhile service to me.

Finally, it looks like someone beat me to making an omegle perl module:

http://search.cpan.org/dist/WWW-Omegle/ ... /Omegle.pm

I haven't tried it, but it seems limited. It doesn't look like it supports "typing".

My next goal: to make a "fully-functioning" sexbot. That would definitely be a worthwhile service for omegle.
odomobo
New User
New User
 
Posts: 6
Joined: Sat Jan 30, 2010 9:34 am
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by DamegedSpy on Wed Feb 03, 2010 11:35 pm
([msg=34438]see Re: Taking a look at Omegle[/msg])

OMG, you are my hero :D
Can you make the Zork bot to send Twitter updates with all messages :D or at least the ones that get at least 1 point in the game score :D
DamegedSpy
Poster
Poster
 
Posts: 273
Joined: Sat Dec 19, 2009 1:40 pm
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by odomobo on Thu Feb 04, 2010 12:00 am
([msg=34440]see Re: Taking a look at Omegle[/msg])

DamegedSpy wrote:OMG, you are my hero :D
Can you make the Zork bot to send Twitter updates with all messages :D or at least the ones that get at least 1 point in the game score :D


I don't know why I'd want to do twitter updates, other than to be obnoxious.

I had a friend who said I should make an rss for this; I think I'll do that... eventually -- set up a cron job that scans through my files and builds an rss file from it.

A lot of people seem to think that zork is just a guy sending the messages, and other people don't have the intelligence/patience to figure out how to play the game. However, this guy actually impressed me... until he reset the game and quit:

http://joshodom.net/omegle/omegle_zork/ ... _33_38.log

I have another friend who read through all my hal logs... I think that means I need to fire him up again, with a clean brain.
odomobo
New User
New User
 
Posts: 6
Joined: Sat Jan 30, 2010 9:34 am
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by faazshift on Thu Feb 04, 2010 12:09 am
([msg=34442]see Re: Taking a look at Omegle[/msg])

odomobo wrote:I have another friend who read through all my hal logs... I think that means I need to fire him up again, with a clean brain.

I haven't yet gotten the persistent brain stuff working yet (mostly because I haven't really put much effort into it), mine starts with only a simple training file every time I run it. For kicks, here are some of my logs: http://66.93.224.121/pub/MyOmegler%20logs/.
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Taking a look at Omegle

Post by odomobo on Thu Feb 04, 2010 12:27 am
([msg=34445]see Re: Taking a look at Omegle[/msg])

faazshift wrote:
odomobo wrote:I have another friend who read through all my hal logs... I think that means I need to fire him up again, with a clean brain.

I haven't yet gotten the persistent brain stuff working yet (mostly because I haven't really put much effort into it), mine starts with only a simple training file every time I run it. For kicks, here are some of my logs: http://66.93.224.121/pub/MyOmegler%20logs/.


I don't know how to make a persistent brain, but you can get a nice initial brain, full of science factoids and poetry and songs here:

http://sourceforge.net/projects/megahal/files/

You'll want to extract the file megahal.dic, I believe.


And WOW, reading through your logs, people will suffer through a lot of abuse on omegle. I could probably make a bot that only says "20/f looking for sex ;-)" and get a lot of positive response.

This is all really cool, though. I feel like I have created a monster, or at least perpetuated one.
odomobo
New User
New User
 
Posts: 6
Joined: Sat Jan 30, 2010 9:34 am
Blog: View Blog (0)


PreviousNext

Return to Graveyard

Who is online

Users browsing this forum: No registered users and 0 guests