Author Topic: Openbook - Connect and share whether you want to or not  (Read 7812 times)

Offline thefinn93

  • PLA Underling
  • *
  • Posts: 105
  • 1337 13V3L: +10/-2
Openbook - Connect and share whether you want to or not
« on: May 17, 2010, 06:26:06 PM »
http://www.youropenbook.org/ lets you search public Facebook posts, and thanks to Facebook's new privacy "features" that means most of them. I thought you guys might enjoy it. Searching for "Text me" turns up an decent amount of phone numbers.

Offline Acidpez

  • PLA Guru
  • *****
  • Posts: 231
  • 1337 13V3L: +7/-10
Re: Openbook - Connect and share whether you want to or not
« Reply #1 on: May 17, 2010, 07:28:19 PM »
Search New Phone NUmber turns up good stuff.

Time for some SMS fun.

Offline buzzard

  • Newb
  • *
  • Posts: 16
  • 1337 13V3L: +0/-1
Re: Openbook - Connect and share whether you want to or not
« Reply #2 on: May 18, 2010, 12:23:36 PM »
Just made some prank calls lot's of fun. I hope they write about it on facebook.
P.S Shouldn't this be on the let's stalk people! board?
Buzzzzaarrd

Offline thefinn93

  • PLA Underling
  • *
  • Posts: 105
  • 1337 13V3L: +10/-2
Re: Openbook - Connect and share whether you want to or not
« Reply #3 on: May 18, 2010, 12:59:47 PM »
P.S Shouldn't this be on the let's stalk people! board?

Good point. I kinda posted it in a rush as I was out the door...

Offline rogueclown

  • phone mob enforcer
  • Elite Cactus Squad
  • PLA Henchman
  • *****
  • Posts: 856
  • 1337 13V3L: +60/-38
  • Awkward Hugs for everyone!
    • rogueclown.net
Re: Openbook - Connect and share whether you want to or not
« Reply #4 on: May 22, 2010, 10:23:54 AM »
i found another site along those lines:

http://www.tomscott.com/evil/

it XXX-es out the last few digits of the phone numbers, but the numbers are easy enough to find.  hell, it gives you the google search right there...search facebook for any of those "lost phone number" groups, and you have an almost endless fountain of people to prank-call.
RogueClown has been known to cause the following side effects. Smiling, <3ing, dizziness, and the desire to listen to poorly recorded phone mobs. RogueClown is an MAO inhibitor.
  --Nod

Offline thefinn93

  • PLA Underling
  • *
  • Posts: 105
  • 1337 13V3L: +10/-2
Re: Openbook - Connect and share whether you want to or not
« Reply #5 on: May 22, 2010, 10:55:50 AM »
I bet it would be really easy to write something like that but without the Xs. it could even have the numbers link to a skype call link or something... the possibilities are endless.

Offline nyphonejacks

  • PLA Corporate Drone
  • *****
  • Posts: 435
  • 1337 13V3L: +22/-5
    • nyphonejacks
Re: Openbook - Connect and share whether you want to or not
« Reply #6 on: May 22, 2010, 02:31:10 PM »
that would be pretty awesome... setting up a completely automated prank calling system, that would mine the numbers like this site is doing, add them to skype, or into asterisk and call them all... and tell them that there auto warranty was about to expire...

Offline thefinn93

  • PLA Underling
  • *
  • Posts: 105
  • 1337 13V3L: +10/-2
Re: Openbook - Connect and share whether you want to or not
« Reply #7 on: May 22, 2010, 07:51:11 PM »
Is anyone here any good with regular expressions? I'm writing this but apparently suck at regular expressions (I've never used them before really). I need something that will match messages with phone numbers in them. I found one on some site that only matched for two area codes (I managed to modify it to match any area code), but that will only match if the message is *just* the phone number, no preceding or following text. At the moment I have the following, which has been returning a lot of false positives with actual live Facebook data:
Code: [Select]
^.*(\()?([0-9]{3})(\)|-|.)?([0-9]{3})(-|.)?([0-9]{4}|[0-9]{4}).*$

Offline thefinn93

  • PLA Underling
  • *
  • Posts: 105
  • 1337 13V3L: +10/-2
Re: Openbook - Connect and share whether you want to or not
« Reply #8 on: May 22, 2010, 08:34:40 PM »
it XXX-es out the last few digits of the phone numbers, but the numbers are easy enough to find.

If you use firebug you can go into the source and change the variable "onlyMildlyEvil" to false, then it won't XXX them out. I'm working on a greasemonkey script to do this with ease for those who don't want to/don't know how to do this. I'll post it here when I get it working (or more likely I'll give up and do something totally unrelated)

Offline thefinn93

  • PLA Underling
  • *
  • Posts: 105
  • 1337 13V3L: +10/-2
Re: Openbook - Connect and share whether you want to or not
« Reply #9 on: May 22, 2010, 09:29:30 PM »
http://thefinn93.com/facebook/pn/tomscott.php - i just copied his code and got rid of the bit that adds the XXXs

Offline Godot

  • Go away, PLA!
  • PLA Corporate Drone
  • *****
  • Posts: 427
  • 1337 13V3L: +34/-7
    • Godot's Website
Re: Openbook - Connect and share whether you want to or not
« Reply #10 on: May 23, 2010, 12:16:34 PM »
For Greasemonkey:

Code: [Select]
// ==UserScript==
// @name           More Evil
// @namespace      http://phonelosers.org/
// @include        http://www.tomscott.com/evil/
// ==/UserScript==

var script = document.createElement('script');
script.innerHTML = 'function parseNumber(num) { return num; }';
document.getElementsByTagName('head')[0].appendChild(script);

It bypasses the number parsing altogether, though, so it doesn't give nicely formatted numbers like usual.

Here is a longer version that parses the numbers:

Code: [Select]
// ==UserScript==
// @name           More Evil
// @namespace      http://phonelosers.org/
// @include        http://www.tomscott.com/evil/
// ==/UserScript==

var script = document.createElement('script');
script.innerHTML = 'function parseNumber(num) {         \
  var digits = num.toString().replace(/[^0-9]/g, \'\'); \
  var parsed = \'\';                                    \
  if (digits.match(/^0[127]\\d{9}$/)) {                 \
    parsed += \'(\' + digits.substr(0,5) + \') \';      \
    parsed += digits.substr(6);                         \
  }                                                     \
  if (digits.match(/^[2-9]\\d{9}$/)) {                  \
    parsed += \'(\' + digits.substr(0,3) + \') \';      \
    parsed += digits.substr(3,3) + \'-\';               \
    parsed += digits.substr(6);                         \
  }                                                     \
  if (parsed.length == 0) { parsed = num; }             \
  return parsed;                                        \
}';
document.getElementsByTagName('head')[0].appendChild(script);
« Last Edit: May 23, 2010, 06:13:43 PM by Godot »
"I bought a cactus and it died a week later... I was really depressed, I thought, 'Damn, I am less nurturing than a desert.'" -Demetri Martin

Offline thefinn93

  • PLA Underling
  • *
  • Posts: 105
  • 1337 13V3L: +10/-2
Re: Openbook - Connect and share whether you want to or not
« Reply #11 on: May 23, 2010, 06:47:58 PM »
That doesn't seem to work... I just installed it and it did nothing.

Offline Godot

  • Go away, PLA!
  • PLA Corporate Drone
  • *****
  • Posts: 427
  • 1337 13V3L: +34/-7
    • Godot's Website
Re: Openbook - Connect and share whether you want to or not
« Reply #12 on: May 23, 2010, 09:04:20 PM »
That doesn't seem to work... I just installed it and it did nothing.

Neither of them? The second one is exactly what I am using right now in Greasemonkey in Firefox 3.6.3 and I am getting the full numbers. I even deleted my existing copy, and reinstalled it by copying what I posted, and is working.

Are you sure Greasemonkey and the script are enabled and "http://www.tomscott.com/evil/" is in the Included Pages for the script?

BTW, it is now available at http://userscripts.org/scripts/show/77452
"I bought a cactus and it died a week later... I was really depressed, I thought, 'Damn, I am less nurturing than a desert.'" -Demetri Martin

Offline thefinn93

  • PLA Underling
  • *
  • Posts: 105
  • 1337 13V3L: +10/-2
Re: Openbook - Connect and share whether you want to or not
« Reply #13 on: May 23, 2010, 09:16:39 PM »
I tried the second one, but I was runnng Firefox 3.5.9. I'm updating now.

EDIT: it still doesn't work
« Last Edit: May 23, 2010, 09:30:35 PM by thefinn93 »

Offline Godot

  • Go away, PLA!
  • PLA Corporate Drone
  • *****
  • Posts: 427
  • 1337 13V3L: +34/-7
    • Godot's Website
Re: Openbook - Connect and share whether you want to or not
« Reply #14 on: June 01, 2010, 05:18:06 PM »
Here is a Perl script that allows mass collection of phone numbers from public Facebook groups. It needs an API token to work. If you don't want to get your own, you can just use the one from Tom Scott's page. Just view the source for the page and look for the line starting with "var token = ". It will output a tab-delimited list of Facebook IDs, names, and phone numbers.

Code: [Select]
#!/usr/bin/perl -w

use warnings;
use strict;
use JSON;
use LWP::Simple;

my $access_token = 'Replace with a valid access token for the Facebook Graph API.';
my $search_query = 'lost "need numbers"';

my $fetch_delay = 1;
my $group_limit = 1000;

my $us_phone_regex = '1?\s*\W?\s*([2-9][0-8][0-9])\s*\W?\s*([2-9][0-9]{2})\s*\W?\s*([0-9]{4})+';

my $json = new JSON;

my $content = get 'https://graph.facebook.com/search?limit=' . $group_limit . '&q=' . $search_query . '&type=group&access_token=' . $access_token;
my $groups = $json->allow_nonref->utf8->relaxed->escape_slash->loose->allow_singlequote->allow_barekey->decode($content);

foreach my $group(@{$groups->{data}}) {

 sleep $fetch_delay;
 my $content = get 'https://graph.facebook.com/' . $group->{id} . '/feed?access_token=' . $access_token;
 my $posts = $json->allow_nonref->utf8->relaxed->escape_slash->loose->allow_singlequote->allow_barekey->decode($content);

 foreach my $post(@{$posts->{data}}) {
  if($post->{message} =~ /$us_phone_regex/) {
   print "$post->{from}->{id}\t$post->{from}->{name}\t($1) $2-$3\n";
  }
 }

}

It took no more than 15 minutes to collect 8000 numbers.
« Last Edit: June 01, 2010, 07:01:49 PM by Godot »
"I bought a cactus and it died a week later... I was really depressed, I thought, 'Damn, I am less nurturing than a desert.'" -Demetri Martin