AllDeaf.com
Our Sponsors

Go Back   AllDeaf.com > Technology > Web, Graphic Design & Site Building
  
Reply
 
LinkBack Thread Tools Display Modes
Old 09-24-2008, 10:39 AM   #1 (permalink)
Registered User
 
Join Date: Apr 2008
Posts: 19
AIM Scanner

I wrote a small script that scan AIM screen names for e-mails, just to see what e-mail AIM is registered on.

AIM screen names list must be in this format:

asdf
line2
line3
line4

And the file name must be sns.txt unless you want to change it in the script ($file=("sns.txt"))

Well enjoy :-|

Code:
<?php
set_time_limit(0);
$sn = file("sns.txt");
$headers = array("Host: aimprofiles.aol.co.uk",
    "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 (.NET CLR 3.5.30729)",
    "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
    "Accept-Language: en-us,en;q=0.5", "Accept-Encoding: text",
    "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Keep-Alive: 300",
    "Connection: keep-alive",
    "Cookie: MC_UNAUTH=0; bandType=narrowband; uuid=1311551288901222224789000; s_cc=true; s_sq=%5B%5BB%5D%5D; wlid=id%3Aa_ef9e6742214274b24e0e37b924f7edaf%3A; wlrcmd=");
$findemail = "/[a-zA-Z0-9\.\-\+\_]{1,20}@[a-zA-Z0-9\.\-\+\_]{1,15}.[a-zA-Z\.]{2,5}/";
for ($x = 0; $x < count($sn); $x++) {
    $screenname = strtolower($sn[$x]);
    $c = curl_init("http://aimprofiles.aol.co.uk/" . str_replace(" ", "", $screenname));
    curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($c, CURLOPT_HTTPHEADER, $headers);
    curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($c, CURLOPT_UNRESTRICTED_AUTH, 1);
    $data = curl_exec($c);
    preg_match_all($findemail, $data, $email);
    $aol = explode("@", $email[0][0]);
    if ($aol[1]=="aol.com" OR $aol[1]=="") {
    } else {
    echo str_replace(" ", "", $screenname) . " - " . $email[0][0] . "<br>";
    }
    curl_close($c);
}
?>
And the reason why I posted is to hear some critiques and suggestions, I'm still learning PHP and I want to get better.

EDIT: I forgot to add, I made it so it will NOT show any @aol.com e-mails.

Last edited by Bryanz; 09-24-2008 at 11:36 AM.
Bryanz is offline   Reply With Quote
Alt Today
Deafness

Beitrag Sponsored Links

__________________
This advertising will not be shown in this way to registered members.
Register your free account today and become a member on AllDeaf.com
   
Old 02-03-2009, 03:58 AM   #2 (permalink)
Registered User
 
Join Date: Feb 2009
Posts: 1
how do i use the script
chocolateboi is offline   Reply With Quote
Old 02-05-2009, 08:38 PM   #3 (permalink)
Registered User
 
smithtr's Avatar
 
Join Date: Jun 2006
Location: Saskatoon
Posts: 1,472
Blog Entries: 4
Send a message via MSN to smithtr Send a message via Yahoo to smithtr
really i understand that is true scanner I think so careful email I understand I hope better technology
smithtr is offline   Reply With Quote
Old 02-11-2009, 10:47 PM   #4 (permalink)
Registered User
 
Join Date: Mar 2003
Posts: 1,898
A quick glance at your PHP shows that you're using cURL to extract data from AOL website and get their profiles... but what I don't get it is how do you know their cookies? Are they even required to look up profiles?

It's been over 5 years since I last used the cURL but I know it is extremely useful.
netrox is offline   Reply With Quote
Old 02-12-2009, 03:59 PM   #5 (permalink)
L4D2 Nov 17 09'
 
Christer's Avatar
 
Join Date: Aug 2003
Location: Avon, Indiana
Posts: 1,280
I copy and paste into notepad and saved then what?
__________________
Christer is offline   Reply With Quote
Old 09-30-2009, 12:13 PM   #6 (permalink)
the central down under
 
posts from hell's Avatar
 
Join Date: Nov 2004
Posts: 1,155
nifty.
posts from hell is offline   Reply With Quote
Old 10-14-2009, 06:04 PM   #7 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 1
cURL is elite
r0fl is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:04 AM.


Join AllDeaf on Facebook!    Follow us on Twitter!

All text, images, and other content are Copyright © 2002-2009 by AllDeaf.com. All Rights Reserved.
vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.