Wordpress Account Creator

Status
Not open for further replies.

Rascagua

New member
Jun 18, 2007
281
3
0
Im pretty new to php, really new i should say.

But I have been learning some and I followed this tutorial here (thanks Smaxor!) and edited around and set it so that you have a form where you can enter the details instead of it being in the actual variable....

So you enter username, password, and email and it will create an Blog for you on wordpress.

here is the script:

Code:
<?
    $display = '<center>
            <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                          <tr>
                        <td>            
                <form action="wordpresser.php" method="post"> 
                    username: <input type="text" name="username" />
                    password: <input type="text" name="password" />
                    email: <input type="text" name="email" />
                    <input type="submit"/>
                </form>
            </td>
                      </tr>
                          </table>
             </center>' ;
            $email = $_POST["email"];
            $email = str_replace("@", "%40", $email);
            $url = "http://wordpress.com/signup/?abcde=1";
            $post = "stage=validate-user-signup&u=&user_name=" . $_POST["username"] . "&pass1=" . $_POST["password"] ."&pass2=" . $_POST["password"] ."&user_email=" . $email . 

"&tos=1&signup_for=user&Submit=Next+%C2%BB";
        if ($_POST["username"]=="")
            echo $display;
        else {
            echo $display;
            echo '<br>' ;
            $ch = curl_init($url);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            echo curl_exec($ch);
            curl_close($ch);
                }
?>
Right now it creates one account at a time.
Im going to keep messing with it later so that you can set how many blogs to create, and it automatically adds a number to the end of your username... such as

jimjim1
jimjim2
jimjim3
jimjim4
etc

and same with the email,

jimjim1@mydomain.com
jimjim2@mydomain.com
etc

so, being my first actual form filling script, tell me what you think.

If you need help setting this up tell me.
 


uhhuh.

Suppose it depends on the purpose of the blogs, but jimjimN (i.e. number increments) is a bit predictable.

Could append $mixedword (see code below) to your $_POST['username'] for something a little more random than number increments:

Code:
<?php

$words=array(one,two,three); 
$length=rand(1,5);
for ($i=0;$i<=$length;$i++){
	$mixedword.=$words[array_rand($words)];
}
print $mixedword;

?>
Obviously fill $words with something relevant to your niche/area/blog/thing, change $length accordingly. Append $mixedword to the $_POST['username'] (or just use $mixedword itself).
 
Last edited:
uhhuh.

Suppose it depends on the purpose of the blogs, but jimjimN (i.e. number increments) is a bit predictable.

Could append $mixedword (see code below) to your $_POST['username'] for something a little more random than number increments:

Code:
<?php

$words=array(one,two,three); 
$length=rand(1,5);
for ($i=0;$i<=$length;$i++){
    $mixedword.=$words[array_rand($words)];
}
print $mixedword;

?>
Obviously fill $words with something relevant to your niche/area/blog/thing, change $length accordingly. Append $mixedword to the $_POST['username'] (or just use $mixedword itself).

Sweet, im going to try that out... that works way better than numbers...

Here's a tip. Let it use catchall email addresses, aka...

johnblack37453@domain.com
rogerclover726@domain.com etc and allow them all to go to one email address.

Then make it create wordpress blogs based on keywords, and bam - owned. ;)

That's what my script does.

Yeah... thats what I have planned for this script... ill be sure to post when ive developed it a little.
 
Also make 2 new vars with arrays of keywords and combine them. aka
best/great/good/amazing/super
niche1/niche2/niche3/niche4/niche5

best-niche1 / great-niche3 / great-niche2
etc. See where I'm comin from? :)

Yeah, thats a good idea...
 
haha, i find myself doing that.
I've been practising my PHP with scripts that i have no way of monetizing.

I'll post what i have later.


Nice work though dude, if you need a study partner hit me up on MSN.
 
bam bam and Rascagua - sounds like we might be working on similar things.

I've got my script creating WP accounts (with username based on keyword), scraping and rewriting relevant content and posting the rewritten content with a random link to a relevant page in my network.

I want to add support for other free hosts as well and build a bunch of other link building tools to make sure my network sites have a good variety of incoming link types.

The limiting factor for me is time though (full time job + family doesn't leave much spare time) so maybe we could work on some stuff together and share the scripts for our own personal use?

I'll PM you both my AIM when I get home.
 
Status
Not open for further replies.