Générateur d'emails aléatoires

  Information

Ce code génère des emails aléatoirement à partir de tableaux pré remplis et va plus loin encore en créant aussi un nom et un prénom.

Pour résumer : ce code peut générer des millions de faux profils.  

  • Dev: NuggaN85
  • Github: NuggaN85
  • Twitter: @NuggaN85
  • Copyright 2015 All rights reserved
  • Licensed under CC BY 3.0
  code source classé dans  Mail - Emailing

 
 01    
 02    
 03    
 04    
 05    
 06    
 07    
 08    
 09    
 10    
 11    
 12    
 13    
 14    
 15    
 16    
 17    
 18    
 19    
 20    
 21    
 22    
 23    
 24    
 25    
 26    
 27    
 28    
 29    
 30    
 31    
 32    
 33    
 34    
 35    
 36    
 37    
 38    
 39    
 40    
 41    
 42    
 43    
 44    
 45    
 46    
 47    
 48    
 49    
 50    
 51    
 52    
 53    
 54    
 55    
 56    
 57    
 58    
 59    
 60    
 61    
 62    
 63    
 64    
 65    
 66    
 67    
 68    
 69    
 70    
 71    
 72    
 73    
 74    
 75    
 76    
 77    
 78    
 79    
 80    
 81    
 82    
 83    
 84    
 85    
 86    
 87    
 88    
 89    
 90    
 91    
 92    
 93    
 94    
 95    
 96    
 97    
 98    
 99    
 100    
 101    
 102    
 103    
 104    
 105    
 106    
 107    
 108    
 109    
 110    
 111    
 112    
 113    
 114    
 115    
 116    
 117    
 118    
 119    
 120    
 121    
 122    
 123    
 124    
 125    
 126    
 127    
 128    
 129    
 130    
 131    
 132    
 133    
 134    
 135    
 136    
 137    
 138    
 139    
 140    
 141    
 142    
 143    
 144    
 145    
 146    
 147    
 148    
 149    
 150    
 151    
 152    
 153    
 154    
 155    
 156    
                               
<?php
/*---------------------------------------------------------------*/
/*
    Titre : Générateur d'emails aléatoires                                                                             
                                                                                                                          
    URL   : https://phpsources.net/code_s.php?id=1069
    Auteur           : NuggaN85                                                                                           
    Website auteur   : https://tchatland.fr                                                                               
    Date édition     : 03 Avril 2019                                                                                      
    Date mise à jour : 05 Sept 2019                                                                                      
    Rapport de la maj:                                                                                                    
    - fonctionnement du code vérifié                                                                                    
*/
/*---------------------------------------------------------------*/ 

    $limit 5000// Nombre d'emails a générer
    $page '';
    for ($i 0$i $limit$i++) {
         $page .= generate_emails();
    }

    function generate_emails() {
    $email '';
        $names array ('Annabel''Asher''Atticus''August''Butch'
'Clementine''Daisy''Dashiell''Delilah''Dexter''Dixie''Duke''Edie',
 'Elvis''Flora''Frances''Frank''Georgia''Gus''Hazel''Homer'
'Hopper''Hudson''Hugo''Ike''India''Ione''Iris''Isla''Ivy'
'June''Kai''Kingston''Lennon''Leonora''Leopold''Levi''Lila'
'Lionel''Lola''Luca''Lulu''Magnus''Mamie''Matilda''Millie''Milo'
'Minnie''Moses''Olive''Orson''Oscar''Otis''Pearl''Piper'
'Poppy''Ray''Roman''Romy''Roscoe''Ruby''Rufus''Sadie''Scarlett',
 'Sebastian''Stella''Stellan''Sullivan''Talullah''Theo''Violet');
        $extensions array('.be''.biz''.ch''.com''.co''.co.uk''.de'
'.es''.eu''.fr''.gr''.im''.info''.io''.it''.lu''.lt''.me',
 '.mobi''.mx''.net''.nl''.org''.pro''.pt''.re''.ru''.se'
'.tel''.tv''.aero''.biz''.com''.coop''.info''.mobi''.name'
'.net''.org''.pro''.tel''.travel''.xxx''.ag''.ar.com''.br.com'
'.bz''.ca''.cc''.co''.gd''.gs''.gy''.hn''.ht''.la''.lc'
'.ms''.mx''.pe''.pm''.qc.com''.sx''.tc''.us''.us.com''.us.org'
'.uy.com''.vc''.vg''.at''.be''.cat''.ch''.co.uk''.com.de'
'.de''.de.com''.dk''.es''.eu''.eu.com''.fi''.fr''.gb.com'
'.gb.net''.gg''.gr''.gr.com''.hu.com''.hu.net''.im''.it''.je'
'.li''.lt''.lu''.lv''.me''.me.uk''.nl''.no''.no.com''.nu'
'.org.uk''.pl''.pt''.ro''.ru''.ru.com''.se''.se.com''.se.net'
'.uk.com''.uk.net''.ru''.ae.org''.af''.am''.asia''.cn''.cn.com',
 '.cx''.fm''.hk''.in''.in.net''.io''.jp''.jp.net''.jpn.com'
'.ki''.kr.com''.mn',    '.nf''.nz''.ph''.pw''.sa.com''.sb''.tl',
 '.tv''.tw''.wf''.ws''.cm''.mg''.mu''.re''.sc''.so''.tf'
'.yt''.za''.za.com' );
        $DomainPartA array('Babble''Buzz''Blog''Blue''Brain''Bright'
'Browse''Bubble''Chat''Chatter''Dab''Dazzle''Dev''Digi''Edge',
 'Feed''Five''Flash''Flip''Gab''Giga',  'Inno''Jabber''Jax''Jet'
'Jump''Link''Live''My''N''Photo''Pod''Real''Riff''Shuffle'
'Snap''Skip''Tag''Tek''Thought''Top''Topic''Twitter''Word'
'You''Zoom');
        $DomainPartB array'bean''beat''bird''blab''box''bridge'
'bug''buzz''cast''cat''chat''club''cube''dog''drive''feed'
'fire''fish''fly''ify''jam''links''list''lounge''mix''nation',
 'opia''pad''path''pedia''point''pulse''set''space''span'
'share''shots''sphere''spot''storm',  'ster''tag''tags''tube'
'tune''type''verse''vine''ware''wire''works''XS''Z''zone'
'zoom' );
        $DomainPartC array('Ai''Aba''Agi''Ava''Cami''Centi''Cogi',
 'Demi''Diva''Dyna''Ea''Ei''Fa''Ge''Ja''I''Ka''Kay''Ki'
'Kwi''La''Lee''Mee''Mi''Mu''My''Oo''O''Oyo''Pixo''Pla'
'Qua''Qui''Roo''Rhy''Ska''Sky''Ski''Ta''Tri''Twi''Tru''Vi'
'Voo''Wiki''Ya''Yaki''Yo''Za''Zoo');
        $DomainPartD array('ba''ble''boo''box''cero''deo''del'
'do''doo''gen''jo''lane''lia''lith''loo''lium''mba''mbee'
'mbo''mbu''mia''mm''nder''ndo''ndu''noodle''nix''nte''nti'
'nu''nyx''pe''re''ta''tri''tz''va''vee''veo''vu''xo''yo'
'zz''zzy''zio''zu');
 
        $rand mt_rand0);
       
        $A "";
        $B "";
       
        $name "";
       
    Switch ($rand) {
                case 0:
                $A $namesmt_rand0count($names) - 1) ];
                $B $DomainPartAmt_rand0count($DomainPartA) - 1) ];
                        break;
                case 1:
                $A $namesmt_rand0count($names) - 1) ];
                $B $DomainPartCmt_rand0count($DomainPartC) - 1) ];
                        break;
                case 2:
                $A $namesmt_rand0count($names) - 1) ];
                $B $namesmt_rand0count($names) - 1) ];
                        break;
                case 3:
                $A $namesmt_rand0count($names) - 1) ];
                        break;
                case 4:
                $A $DomainPartAmt_rand0count($DomainPartA) - 1) ];
                        break;
                case 5:
                $A $DomainPartCmt_rand0count($DomainPartC) - 1) ];
                        break;
    }
       
        If ($B != ""){
                $rand mt_rand0);
               
                If ($rand == 0){
                        $email $A '.' $B;
                        $name $A ' ' $B;
                }
                else
                {
                        $email $B '.' $A;
                        $name $B ' ' $A;
                }
 
        }
        else
        {
                $email $A;
                $B $namesmt_rand0count($names) - 1) ];
                $name $B ' ' $A;
        }
       
    $rand mt_rand0);
       
    Switch ($rand) {
                case 0:
                $A $DomainPartAmt_rand0count($DomainPartA) - 1) ];
                $B $DomainPartBmt_rand0count($DomainPartB) - 1) ];
                        break;
                case 1:
                $A $DomainPartCmt_rand0count($DomainPartC) - 1) ];
                $B $DomainPartDmt_rand0count($DomainPartD) - 1) ];
                        break;
                case 2:
                $A $DomainPartAmt_rand0count($DomainPartA) - 1) ];
                $B $DomainPartDmt_rand0count($DomainPartD) - 1) ];
                        break;
                case 3:
                $A $DomainPartCmt_rand0count($DomainPartC) - 1) ];
                $B $DomainPartBmt_rand0count($DomainPartB) - 1) ];
                        break;
    }
 
        $email .= '@';
        $email .= $A $B;
    $email .= $extensionsmt_rand0count($extensions) - 1) ];
    $email  $name' <a href="mailto:' $email '">' $email 
"</a></br>\n";
    return $email;
   }
?>

Exemple :

 
 01    
 02    
 03    
 04    
 05    
 06    
 07    
 08    
 09    
 10    
 11    
 12    
 13    
 14    
 15    
                                
<?php
     echo utf8_decode $page );
?>
     Affiche des emails comme :

     Homer Jax Jax@Livendo.tel
     Milo La La@Rifftune.eu
     Ski Hopper Ski.Hopper@Dynashots.org
     Word Minnie Word.Minnie@Gendo.re
     Ivy Voo Voo@Flippulse.es
     ...
     ..
     .

          Fonctions du code - Doc officielle PHP

   php.net   Description Versions PHP OUTIL
   array Crée un tableau PHP 4, PHP 5, PHP 7, PHP 8
   count Compte le nombre d'éléments d'un tableau ou le nombre de propriétés d'un objet PHP 4, PHP 5, PHP 7, PHP 8
   echo Affiche une chaîne de caractères PHP 4, PHP 5, PHP 7, PHP 8
   mt_rand Génère une meilleure valeur aléatoire PHP 4, PHP 5, PHP 7, PHP 8
   return Retourne le controle du programme au module appelant. PHP 4, PHP 5, PHP 7, PHP 8
   utf8_decode Convertit une chaîne UTF-8 en ISO-8859-1 PHP 4, PHP 5, PHP 7, PHP 8

   Dites merci aux auteurs pour leurs travail, ça ne coûte rien et ça fait toujours plaisir wink

Présentation de PHP

PHP débutant et initié 50 Tutoriel

Présentation de MySQL

avatar

NuggaN85

  03 Avril 2019

  SOURCE   Télécharger

Information sur les mises à jour

Dernière mise à jour :

    05 Sept 2019
    fonctionnement du code vérifié

2 995 Vues
Compatibilité
PHP 5, 7 et 8+