|
-
July 6th, 2006, 06:16 PM
#1
Generating a spammers honeypot in PHP.
From the few honeypots of e-mail addresses that I've come across, I've mostly come across ones that look an awful lot like some typist has just mashed at thier keyboard and put @foo.com here and there. I figured that some bots could get wise to random strings so I thought that fake e-mail adresses could perhaps be more convincing.
My idea was to use metasyntactic text, that copies an idea that many spammers use to avert filters.
PHP Code:
<?php
$string= <<< STRING
Two households, both alike in dignity,
In fair Verona, where we lay our scene,
From ancient grudge break to new mutiny,
Where civil blood makes civil hands unclean.
From forth the fatal loins of these two foes
A pair of star-cross'd lovers take their life;
Whole misadventured piteous overthrows
Doth with their death bury their parents' strife.
The fearful passage of their death-mark'd love,
And the continuance of their parents' rage,
Which, but their children's end, nought could remove,
Is now the two hours' traffic of our stage;
The which if you with patient ears attend,
What here shall miss, our toil shall strive to mend.
STRING;
$string = str_replace("\n",' ',$string);
$string = ereg_replace('[^a-zA-Z0-9_ ]','',$string);
$string = explode(' ',$string);
$stop = count($string);
$i = 0;
while($i < $stop){
echo '<li><a href="mailto:'.$string[$i].'@'.$string[$i+1].".com\">".$string[$i].'@'.$string[$i+1].".com</a></li>\n";
$i= $i + 2;
}
?>
\"Some say they go looking for Drugs, Dirty Dancing and Pounding, Pounding Techno Music.\"
*ahem* contact me
-
July 16th, 2006, 03:35 PM
#2
*bump*
I don't currently have a website online apart from my freewebs account which naturally doesn't get much traffic. I've put an output from this script there but I reckon this would work great if people with larger websites could also use this (with different texts, for more honey, wikisource is always useful).
\"Some say they go looking for Drugs, Dirty Dancing and Pounding, Pounding Techno Music.\"
*ahem* contact me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|