Get your own back on spammers

The Spam Book generator will generate random addresses and other garbage when ever viewed. Written in PHP.

Get your own back on spammers, create fake contact lists:

<?
/*

Get your own back on spammers, use this light weight script to fill up spammers databases with junk

*/
$number_of_addresses	= 100;
$make_pretty			= true;
$use_names_in_email		= true;

$emailaddress_chars = "1234567890abcdefghijklmnopqrstuvwxyz";
$domain_postfix = array( "com", "net", "org", "gov", "co.uk", "biz", "info", "name", "com.au", "net.au", "edu", "edu.au", "gov.au", "gov.uk", "ac.uk", "af", "al", "dz", "as", "ad", "ao", "ai", "aq", "ag", "ar", "am", "aw", "au", "at", "az", "bs", "bh", "bd", "bb", "by", "be", "bz", "bj", "bm", "bt", "bo", "ba", "bw", "bv", "br", "io", "bn", "bg", "bf", "bi", "kh", "cm", "ca", "cv", "ky", "cf", "td", "cl", "cn", "cx", "cc", "cc", "co", "km", "cg", "cd", "ck", "cr", "ci", "hr", "cu", "cy", "cz", "dk", "dj", "dm", "do", "tp", "ec", "eg", "sv", "gq", "er", "ee", "et", "fk", "fo", "fj", "fi", "fr", "gf", "pf", "tf", "ga", "gm", "ge", "de", "gh", "gi", "gr", "gl", "gd", "gp", "gu", "gt", "gn", "gw", "gy", "ht", "hm", "va", "hn", "hk", "hu", "is", "in", "id", "ir", "iq", "ie", "il", "it", "jm", "jp", "jo", "kz", "ke", "ki", "kp", "kr", "kw", "kg", "la", "lv", "lb", "ls", "lr", "ly", "li", "lt", "lu", "mo", "mk", "mg", "mw", "my", "mv", "ml", "mt", "mh", "mq", "mr", "mu", "yt", "mx", "fm", "md", "mc", "mn", "ms", "ma", "mz", "mm", "na", "nr", "np", "nl", "an", "nc", "nz", "ni", "ne", "ng", "nu", "nf", "mp", "no", "om", "pk", "pw", "ps", "pa", "pg", "py", "pe", "ph", "pn", "pl", "pt", "pr", "qa", "re", "ro", "ru", "rw", "sh", "kn", "lc", "pm", "vc", "ws", "sm", "st", "sa", "sn", "sn", "sc", "sl", "sg", "sk", "si", "sb", "so", "za", "gs", "es", "lk", "sd", "sr", "sj", "sz", "se", "ch", "sy", "tw", "tj", "tz", "th", "tg", "tk", "to", "tt", "tn", "tr", "tm", "tc", "tv", "ug", "ua", "ae", "gb", "us", "um", "uy", "uz", "vu", "ve", "vn", "vg", "vi", "wf", "eh", "ye", "yu", "zm", "zw", "info" );
$first_names = array("Jack", "Oliver", "Thomas", "Harry", "Joshua", "Alfie", "Charlie", "Daniel", "James", "William", "Olivia", "Ruby", "Emily", "Grace", "Jessica", "Chloe", "Sophie", "Lily", "Amelia", "Evie");
$surnames = array("Smith", "Jones", "Williams", "Brown", "Taylor", "Davies", "Wilson", "Evans", "Thomas", "Johnson", "Roberts", "Walker", "Wright", "Robinson", "Thompson", "White", "Hughes", "Edwards", "Green", "Hall", "Wood", "Harris", "Lewis", "Martin", "Jackson", "Clarke", "Clark", "Turner", "Hill", "Scott", "Cooper", "Morris", "Ward", "Moore", "King", "Watson", "Baker", "Harrison", "Morgan", "Patel", "Young", "Allen", "Mitchell", "James", "Anderson", "Phillips", "Lee", "Bell", "Parker", "Davis", "Bennett", "Miller", "Cook", "Price", "Campbell", "Shaw", "Griffiths", "Kelly", "Richardson", "Simpson", "Carter", "Collins", "Marshall", "Bailey", "Gray", "Stewart", "Cox", "Murphy", "Adams", "Murray", "Richards", "Ellis", "Robertson", "Wilkinson", "Foster", "Graham", "Chapman", "Mason", "Russell", "Powell", "Webb", "Rogers", "Hunt", "Mills", "Holmes", "Owen", "Palmer", "Matthews", "Gibson", "Fisher", "Thomson", "Barnes", "Knight", "Lloyd", "Harvey", "Barker", "Butler", "Jenkins", "Reid", "Stevens" );

if($make_pretty){
	$jobtitle_1 = array("Lead", "Senior", "Direct", "Corporate", "Dynamic", "Future", "Product", "National", "Regional", "District", "Central", "Global", "Customer", "Investor", "Dynamic", "International", "Legacy", "Forward", "Internal", "Human", "Chief", "Principal");
	$jobtitle_2 = array("Solutions", "Program", "Brand", "Security", "Research", "Marketing", "Directives", "Implementation", "Integration", "Functionality", "Response", "Paradigm", "Tactics", "Identity", "Markets", "Group", "Division", "Applications", "Optimization", "Operations", "Infrastructure", "Intranet", "Communications", "Web", "Branding", "Quality", "Assurance", "Mobility", "Accounts", "Data", "Creative", "Configuration", "Accountability", "Interactions", "Factors", "Usability", "Metrics");
	$jobtitle_3 = array("Supervisor", "Associate", "Executive", "Liason", "Officer", "Manager", "Engineer", "Specialist", "Director", "Coordinator", "Administrator", "Architect", "Analyst", "Designer", "Planner", "Orchestrator", "Technician", "Developer", "Producer", "Consultant", "Assistant", "Facilitator", "Agent", "Representative", "Strategist");
}

function rs($input_string, $min_len=2, $max_len=50){
	$loopcount = rand($min_len, $max_len);
	$output_string = "";
	for($x=0;$x<=$loopcount-1;$x++){ $output_string .= $input_string{rand(0, strlen($input_string)-1)}; }
	return $output_string;
}
if($make_pretty){
	print "<table>";
	print "<tr><td>Name</td><td>Job</td><td>Email</td></tr>";
}
for($x=0;$x<=$number_of_addresses-1;$x++){
	$first_name = $first_names[rand(0, count($first_names)-1)];
	$surname = $surnames[rand(0, count($surnames)-1)];
	$name = $first_name . " " . $surname;
	if($use_names_in_email){
		$email_postfix = "";
		if(rand(0, 1)==0){
			$parts[] = (rand(0, 1)==0)?$first_name{0}:$first_name;
			$parts[] = (rand(0, 1)==0)?".":"";
			$parts[] = (rand(0, 1)==0)?$surname{0}:$surname;
		}else{
			$parts[] = (rand(0, 1)==0)?$surname{0}:$surname;
			$parts[] = (rand(0, 1)==0)?".":"";
			$parts[] = (rand(0, 1)==0)?$first_name{0}:$first_name;
		}
		$email_postfix = strtolower(implode("", $parts));
		unset($parts);
		$email = $email_postfix . "@" . rs($emailaddress_chars, 3, 20) . "." . $domain_postfix[rand(0, count($domain_postfix)-1)];
	}else{
		$email = rs($emailaddress_chars, 2, 10) . "@" . rs($emailaddress_chars, 3, 20) . "." . $domain_postfix[rand(0, count($domain_postfix)-1)];
	}
	if(!$make_pretty){
		print '<a href="mailto:' . $email . '">' . $name . '</a><br>';
	}else{
		$jobtitle = $jobtitle_1[rand(0, count($jobtitle_1)-1)] . " " . $jobtitle_2[rand(0, count($jobtitle_2)-1)] . " " . $jobtitle_3[rand(0, count($jobtitle_3)-1)];
		print '<tr><td>' . $name . '</td><td>' . $jobtitle . '</td><td><a href="mailto:' . $email . '">Email</a></td></tr>';
	}
}
if($make_pretty){
	print "</table>";
}
?>
Share this