Version: 2.0

Type: Full Script

Category: Other

License: GNU General Public License

Description: This will generate a page with 100 randomly generated email addresses, in the hope that a spambot will stumble upon it and and them to its lists.



<html>
<head>
 <title>
	My email list
 </title>
</head>

<body>


<a href="<?php echo $_SERVER['PHP_SELF'];?>">Next</a>
<ul>
<?php

 for ($i = 0; $i < 100; $i++)
  {
   // Generate random email addresses
   $addresslength = rand(4, 12);
   $domainlength = rand(4, 12);
   $domainextension = rand(1, 100) % 3;
   $characters = "abcdefghijklmnopqrstuvwxyz0123456789.-";
   
   $address = substr($characters, rand(1, 36), 1);

   for ($z = 0; $z < $addresslength -1; $z++)
    {
     $address = $address . substr($characters, rand(1, 38), 1);
    }
    
   $domain = substr($characters, rand(1, 36), 1);
   for ($z = 0; $z < $domainlength -1; $z++)
    {
     $domain = $domain . substr($characters, rand(1, 38), 1);
    }
    
   if ($domainextension == 0)
    print "<a href=\"mailto:$address@$domain.com\">$address@$domain.com</a><br>";
   elseif ($domainextension == 1)
    print "<a href=\"mailto:$address@$domain.net\">$address@$domain.net</a><br>";
   elseif ($domainextension == 2)
    print "<a href=\"mailto:$address@$domain.org\">$address@$domain.org</a><br>";
  }
  

?>
</ul>

<a href="<?php echo $_SERVER['PHP_SELF'];?>">Next</a>

</body>
</html>