[PHP] Simple account generator

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

[PHP] Simple account generator

Post by ayu »

I needed to make a very simple generator that creates legitimate looking emails and password hashes for Swedish accounts for a thing at work.
I threw together something quick and dirty and I thought I would share it since it worked better than I thought it would in the end.

I have edited the code to some extent since I'm not allow to publish the original, but it functions just the same as the original.

Stuff
sv_names.txt: Just a list of Swedish names that I had
sv_words.txt: Just a list of English and Swedish words that I had
sv_domains.txt: Just a list of common email hosts in Sweden (hotmail.com, gmail.com, telia.se ... etc)

Code
http://code.suck-o.com/42558" onclick="window.open(this.href);return false;

Sample output (from the database it's inserted into)
| 4860 | greta470@yahoo.com | ef7f286427141b7b7dc07d7ff5546c0e |
| 4861 | _ireneus_460@spray.se | 8267ba6bd0fb117701cbfc8f6d2c1e87 |
| 4862 | _pontus_@gmail.com | 6cb1d3e47623a5fc559ed25cd1532618 |
| 4863 | _gudmund_105@hotmail.com | 3e36b6dc1c62dc08deb7f595157a920f |
| 4864 | remigius146@yahoo.se | 8e220b80c9b7741445e18acc16096bdd |
| 4865 | 237ireneus_@yahoo.se | d704a861eb72a635690e3411499be27c |
| 4866 | kronans43_@msn.com | 8b5c7e29f846c9876df75e72223df0b5 |
| 4867 | _cornelia_461@hotmail.com | 75b2d0a79a1b4cffccf4e2d140855705 |
| 4868 | _teofil_@telia.se | 1ae7670c27f504c5e4b131738d4e1369 |
| 4869 | impiously458_@msn.com | 69bb84b728b11ca6cf20a05e1a16de33 |
| 4870 | mark_love@spray.se | 88741ac125078ef74caefeaedcb72918 |
| 4871 | cosmas360@yahoo.com | 619a3c9b959e17d32e50f594c4dac0cf |
| 4872 | kononmorotsfluga@spray.se | 6157b24449b063ef2fadc95b971419e2 |
| 4873 | 27cordula_@gmail.com | 97fec402231d141d6293017736e5afb2 |
| 4874 | blackamoor297@hotmail.com | ec6b6953f8b76441019a60aa39c6486f |
| 4875 | verner_egon@gmail.com | da4cac72c06488686b706b35ad457e9d |
| 4876 | 424rufus_@yahoo.se | b8a5e2a0b8af5c5fe34d029d1894a67d |
| 4877 | 223robin_@yahoo.se | 8cffbd81e2fe1cb32e18cb7e798bba9e |
| 4878 | _malakias249@gmail.com | 92965711e2cae0902e73d996da3b89e9 |
| 4879 | rikardgenomsoka@outlook.com | 78dd75f9ac5bfd7d7af51ae4ebab7c2d |
| 4880 | meddelats425@telia.se | 99c5f7a44f2f91ea730950ae9672186e |
| 4881 | 400lilly_@gmail.com | 29761fc05da6e4ae5279a70d5d0625f8 |
| 4882 | 374josephina_@yahoo.com | 7395ff2c06dd17e01fd2e78f9909df5d |
| 4883 | ejenominativform@gmail.com | d5abf495d249bbd47709d49023e69173 |
| 4884 | _florentina_147@hotmail.com | 01d76adf8f3efffc55e5c088c7059693 |
| 4885 | _astri_50@telia.se | b8e7d69562d21d79b59fc6087d82d007 |
| 4886 | beslutsfattare460_@spray.se | d805ded78acfc63b5da4795ae2052b02 |
| 4887 | _halvard_355@msn.com | c4e1973c09c4ff17a4aaa788633d0426 |
| 4888 | 5v3n50@gmail.com | 406682df73f116b490c830c39839f690 |
| 4889 | wildness320@telia.se | bc826761e1aecef9f8abf7173e8b728e |
| 4890 | granskning107@yahoo.com | f871421913b0eace926f6830c6f68899 |
| 4891 | _basilia_212@yahoo.com | acc0238c7c6edd1f80d1a3bfcd449bea |
| 4892 | kalhuvud22_@spray.se | 6dd92505e38a219431bf9ade1dddc5e3 |
| 4893 | erik_johnny@spray.se | 1f1f5776b85adc201202e355fa99011a |
| 4894 | alexander146_@gmail.com | 6e0435b38b304c32b596fdf04cccacb0 |
| 4895 | _botolf_@gmail.com | f6a51290524c2e15b1f0f4c9ca46575b |
| 4896 | ricky_ludvig@outlook.com | fee2eee1bc8e8bedb12ced19af1fab9a |
"The best place to hide a tree, is in a forest"

scatter
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 366
Joined: 01 Jan 2014, 05:22
10

Re: [PHP] Simple account generator

Post by scatter »

nice thx :) it reminds me of a script that can generate fake ids for you but it doesn t make the emails so I guess together they can make a perfect tool :)

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: [PHP] Simple account generator

Post by bad_brain »

ohhh...remember that little incident where I accidentally backscattered myself through that Wordpress newletter plugin on my home server?
now that generator would be very nifty to populate the user database.... 8)
Image

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: [PHP] Simple account generator

Post by ayu »

bad_brain wrote:ohhh...remember that little incident where I accidentally backscattered myself through that Wordpress newletter plugin on my home server?
now that generator would be very nifty to populate the user database.... 8)
hehe ; D

I can make a few modifications if you need it for anything ^^
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: [PHP] Simple account generator

Post by bad_brain »

cats wrote:I can make a few modifications if you need it for anything ^^
well, simply some extra fields would be needed to fit the WP database scheme:
http://codex.wordpress.org/Database_Des ... :_wp_users" onclick="window.open(this.href);return false;
Image

cwdykarn
suck-o-fied!
suck-o-fied!
Posts: 77
Joined: 19 Dec 2012, 10:15
11

Re: [PHP] Simple account generator

Post by cwdykarn »

Neat ^.^ it will realy help me out on my exame project :) i was just about start writing something similar to fill up a local db with junk accounts. Thanks a alot, realy nice and clean coding btw keep it up *thumb*

Post Reply