1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

anti-spambot code

Discussion in 'BlackHat Lounge' started by The Scarlet Pimp, Aug 25, 2008.

  1. The Scarlet Pimp

    The Scarlet Pimp Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 2, 2008
    Messages:
    788
    Likes Received:
    3,129
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    generates endless fake emails....


    <?php
    /* ++++++++++++++++++++++++
    * | PHPMySpamFIGHTER |
    * ++++++++++++++++++++++++
    *
    * @version: 0.1
    * @date: March 2008
    * @compatible : php4, php5
    * @description: phpMySpamFighter , to make/fill email extractors/spammers programs with thousands of fake email addresses endlessly dynamically generated by phpMySpamFighter
    * @credit: same like bfnsoftware.com's anti-spam implementation. but it's not open-source. I did wanna do it since 3/4 years ago. I forgot it.
    * @author d0ubl3_h3lix
    * @copyright yehg.org 2008
    * @license GPL
    *
    * [Security Notes] Web masters are suggested to change this file name to something innocent to be unable to be identified by spammers. eg. emailaddresses.php, contact_lists.php
    *
    */
    error_reporting(0);

    /********* [Func Lib] ************/

    function make_email($str)
    {
    $emailhosts = array('gmail.com','googlemail.com','hotmail.com','yahoo.com','mail4u.com','mail2love.co.uk','mxmail.net','megamail.com','mail2honey.co.uk');
    $rand = mt_rand(0,count($emailhosts)-1);
    echo '<a href="mailto:'.cut_str($str).'@'.$emailhosts[$rand].'">'.cut_str($str).'@'.$emailhosts[$rand].'</a><br><br>'."\n";
    }

    function cut_str($str,$split=20)
    {
    return substr($str,0,$split);
    }
    /********* [/Func Lib] ************/
    $human_names = array('John','Mary','Jack','Jones','WellSmith','Jackson','Bruce','Mayvem','Lee','Jeremy','Iowa','Johnson','Alison','Admin','Manager','Staff','Member','Guest','Jessiaca','Jenick','Oven','Wellson','Oreil','Hiren','Wellee','Little Boy','Little Girl');
    $rand_name = mt_rand(0,count($human_names)-1);
    ?>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>

    <head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <title><?=$human_names[$rand_name]?>'s Contact Email Addresses</title>
    </head>

    <body>

    <?
    // use mt_rand(),microtime(), time, md5, sha1,crypt
    $pg = isset($_GET['pg'])?(int)htmlentities($_GET['pg']):0;
    if ($pg==0)
    {
    ?>

    This page is a trap to spammers who collect our visitor emails and send spams and sell ours to third parties for their benefits. The YGN Ethical Hacker Group based in Yangon, Myanmar (<a href="http://yehg.org" target="_blank">http://yehg.org</a>) developed an attack-back mechanism.

    <?
    }
    else
    {


    for ($i=0;$i<=30;$i++)
    {
    $mictime = microtime();
    $time = time();
    $randval = mt_rand();
    make_email(md5($randval));
    make_email(sha1($randval));
    make_email(md5(crypt($randval)));
    make_email(sha1(crypt($randval)));

    make_email($mictime);
    make_email(md5($mictime));
    make_email(sha1($mictime));
    make_email(md5(crypt($mictime)));
    make_email(sha1(crypt($mictime)));

    make_email($time);
    make_email(md5($time));
    make_email(sha1($time));
    make_email(md5(crypt($time)));
    make_email(sha1(crypt($time)));

    }
    }
    $nextpg = $pg+1;
    ?>
    <a href="<?=$_SERVER['PHP_SELF'].'?pg='.$nextpg?>">Next Page</a>

    </body>
    </html>
     
  2. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107
    What a stupid program..... So it generates bs email addresses @ popular webmail sites.. Great way to overload an already overloaded system.. lol
     
  3. The Scarlet Pimp

    The Scarlet Pimp Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 2, 2008
    Messages:
    788
    Likes Received:
    3,129
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    unless your server is getting hammered a hundred times a day i doubt it would be a problem. it's a great way to strike back at the spambots. :D

    tsp
     
  4. vistacmarketing

    vistacmarketing Newbie

    Joined:
    Aug 12, 2008
    Messages:
    40
    Likes Received:
    3
    i think it'll harm your server!