1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Random username and password

Discussion in 'PHP & Perl' started by rufus15, Dec 4, 2009.

  1. rufus15

    rufus15 Junior Member

    Joined:
    May 21, 2009
    Messages:
    134
    Likes Received:
    162
    Occupation:
    Spammer :D
    Location:
    Philippines
    Guys, I need a little help here please.

    I know about creating randomized function using arrays but that was it.

    I don't know anything about creating a random username (pronounceable) and a random password.

    Please I need help here. :)
     
  2. Crooker

    Crooker Newbie

    Joined:
    Jun 1, 2009
    Messages:
    0
    Likes Received:
    483
    • Thanks Thanks x 1
  3. rufus15

    rufus15 Junior Member

    Joined:
    May 21, 2009
    Messages:
    134
    Likes Received:
    162
    Occupation:
    Spammer :D
    Location:
    Philippines
    thanks bro, but mostly its all about random password.
    Isn't there any for generating random (pronounceable) username ??
     
  4. Crooker

    Crooker Newbie

    Joined:
    Jun 1, 2009
    Messages:
    0
    Likes Received:
    483
    You could try a name, another name and a number like
    JohnyJohnson1246
    You first take a list of names from somewhere;
    Code:
    http://www.keepandshare.com/doc/view.php?u=12825
    Just search for baby names.

    Than you make that into arrays. Maybe make a a automated script to do that via a foreach loop.
    Say for instance name 1 has variable 1.
    you then use mt_rand to create a number that is name, another number for the second name and then for four other generic numbers.
    Always original.
     
    • Thanks Thanks x 1
  5. embersion

    embersion BANNED BANNED

    Joined:
    Jun 13, 2009
    Messages:
    430
    Likes Received:
    15
    yes.. you can take names and add random some numbers at end of it..
     
  6. aмillionaírе

    aмillionaírе Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 20, 2008
    Messages:
    532
    Likes Received:
    358
    fng makes it too easy :), but its best you create your own algorithm/database if you're going to need this in bulk.

    PHP:
    <?php

    //scrape this motherfucker!
    preg_match('/\<span\sclass="given\-name"\>\w+\<\/span\>/i'file_get_contents('http://www.fakenamegenerator.com/'), $fn);
    preg_match('/\<span\sclass="family\-name"\>\w+\<\/span\>/i'file_get_contents('http://www.fakenamegenerator.com/'), $sn);
    preg_match('/\<li\S+\<\/li\>/i'file_get_contents('http://www.fakenamegenerator.com/'), $p);
    // user info
    $uid strip_tags(utf8_decode($fn[0].$sn[0]));
    $pass strip_tags(utf8_decode($p[0]));

    //confirm info
    echo $uid.'<br>';
    echo 
    $pass.'<br>';


    ?>