Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create a readable email for harvesters
- // parts of the script taken from http://snipplr.com/view/18517/human-readable-random-string/
- function create_random_readable_email()
- {
- $domains = array('gmail.com', 'hotmail.com', 'mail.com', 'yahoo.com', 'outlook.com'); // add as many domains as you want
- $conso = array('b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z');
- $vocal = array('a', 'e', 'i', 'o', 'u');
- $email_prefix = '';
- srand ((double)microtime() * 1000000);
- $str_length = rand(5, 10);
- for($i = 1; $i <= $str_length / 2; $i++)
- {
- $email_prefix .= $conso[rand(0, 19)];
- $email_prefix .= $vocal[rand(0, 4)];
- }
- if (time() % 2 == 0) // add suffix numbers randomly
- {
- $numbers_length = rand(2, 4);
- for($i = 0; $i < $numbers_length; $i++)
- {
- $email_prefix .= mt_rand(0, 9);
- }
- }
- $domain = $domains[rand(0, count($domains) - 1)];
- return $email_prefix . '@' . $domain;
- }
- print_r(create_random_readable_email());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement