AIM Scanner

Bryanz

New Member
Joined
Apr 15, 2008
Messages
19
Reaction score
0
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:
really i understand that is true scanner I think so careful email I understand I hope better technology
 
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.
 
Back
Top