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

[SCRIPT] MASS Self-Hosted Email Accounts Creation - Make 1000s Email IDs within a minute

Discussion in 'Black Hat SEO Tools' started by redstone.1337, Jun 25, 2011.

  1. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    Today I needed bulk email ids and wanted to make use of my throwaway domains for it. So, I wrote up with a script for it. It can be very useful to each of you here too. Almost every tool supports cpanel email accounts (they can be accessed via POP like any other regular email accounts like gmail, yahoo, etc.). But these will be self-hosted email accounts you don't have to fear and risk getting them banned like for other email providers. Also you don't have to spend on captchas or buy accounts from providers. :D This script can be used to make accounts on bulk (as many you want but don't make more than 1000 at a time). Read the instructions, enter proper details, save it as whatever.php, upload it on your server (or run it from localhost using WAMP) and run it in the browser. It will output email ids and password after account creation is successful.

    Email ids will be created like - {prefix}{a number}@domain.com. Password will be same for each (or if you want a random password for each I can modify the script later but I don't see the point for different passes as you host these email accounts). Please read the instructions in the script twice before asking any question. Still if you have any doubts you can ask them here. Or if you want any modifications I can do it when I get time.

    Script-

    PHP:
    <?php

    set_time_limit
    (0);

    // cPanel info
    $cpuser 'cpaneluser'// cPanel username
    $cppass 'cpanelpass'// cPanel password
    $cpdomain 'domain.com'// cPanel domain or IP
    $cpskin 'x3';  // cPanel skin. Mostly x or x2.
    // Read here to know how to check cPanel skin - http://www.zubrag.com/articles/determine-cpanel-skin.php

    $epass 'emailpassy'// email password
    $edomain 'emaildomain.com'// email domain (usually same as cPanel domain above)
    $equota 50// amount of space in megabytes

    // Email format - {prefix}{number}@{domain.tld}
    $prefix "zz";
    $start "1";
    $end "100";
    $separator ":"// The script will output in format emailid{separator}password. So if you want emailid:pass then enter ":" separator.

    for($i=$start;$i<=$end;$i++) {
        
    $euser =  $prefix $i;    
        
    $f fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota""r");
          if (!
    $f) {
            
    $msg 'Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode';
            break;
          }
          echo 
    $euser "@" $edomain $separator $epass "<br />";
    }

    ?>
    Feel free to ask any questions you have. :)
     
    • Thanks Thanks x 14
  2. fung1990

    fung1990 Power Member

    Joined:
    Dec 21, 2009
    Messages:
    577
    Likes Received:
    51
    love this one.
    is it work for a hosting addedon many domain name?
     
  3. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    Yeah, works for addon domains too. :) Just replace 'emaildomain.com' with the addon domain that you want to use for email accounts creation in the script.
     
  4. youngguy

    youngguy Senior Member

    Joined:
    Apr 11, 2009
    Messages:
    1,053
    Likes Received:
    1,560
    Location:
    Hell
    Why don't you just make a catch all account? Catch-all account will receive any emails sent to blahblah@yourdomain.com
     
  5. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    Nice idea. But I think using it with tools can confuse it. If the tool uses 50 random email accounts to register on some site (say, WPMU) that emails the password then the software can mess it up while parsing out passwords because when it will login, all the 50 emails will have the same subject so it may keep on parsing out passwords till the end and open every email (maybe delete it too in most cases). Also it will be a mess using same inbox for everything unless you use different domains for every purpose. I haven't tested catch all account but when I have a better solution then I'd prefer to go with it. :)
     
  6. wannabie

    wannabie Elite Member

    Joined:
    Mar 11, 2009
    Messages:
    3,807
    Likes Received:
    2,954
    Occupation:
    Seo and Marketing Suprisingly
    Location:
    Your bedroom window
    Home Page:
    Damn I love your threads sometimes!

    Rep given and well deserved, anyone else should do the same!
     
    • Thanks Thanks x 1
  7. wannabie

    wannabie Elite Member

    Joined:
    Mar 11, 2009
    Messages:
    3,807
    Likes Received:
    2,954
    Occupation:
    Seo and Marketing Suprisingly
    Location:
    Your bedroom window
    Home Page:
    One small problem though, I cancelled my reseller with hostgator which means I can host as many domains as I like but I they are all under one cpanel like the screen shot attached!

    The script looks like its making the emails but when I go into cpanel I don't see them?

    I have a feeling its because I am on a different skin?
     

    Attached Files:

    • fd.jpg
      fd.jpg
      File size:
      62.8 KB
      Views:
      29
  8. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    Hostgator has modified the cPanel interface and I guess the link structures too. Can you give me the hyperlink of "Email Accounts" option and also of the cPanel Home and I'll see what is the problem. You don't need to disclose the domain. Just replace your domain with abc or whatever and give the link here.
     
  9. wannabie

    wannabie Elite Member

    Joined:
    Mar 11, 2009
    Messages:
    3,807
    Likes Received:
    2,954
    Occupation:
    Seo and Marketing Suprisingly
    Location:
    Your bedroom window
    Home Page:
    cpanel : 2082/frontend/x3/index.php?post_login=860033891828

    Email : :2082/frontend/x3/mail/pops.html

    That?
     
  10. dextor1372

    dextor1372 Regular Member

    Joined:
    Oct 4, 2008
    Messages:
    272
    Likes Received:
    274
    Occupation:
    6PS Co - CEO
    Location:
    Manchester, UK
    Home Page:
    ok so I edited the script and ran it

    the php page shows the email accounts but when i check the cpanel account, no email accounts had been created.

    any ideas?
     
  11. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    These are just fine. There is some other problem. Please recheck all the edits you have made.

    Uh, I can't diagnose the problem without looking at the output. Most probably you both are entering something wrong while editing.

    Just to remind. $cpdomain is for the domain of which the cPanel you want to use. It maybe the cPanel primary domain or maybe the addon domain, doesn't matters. $edomain is for the domain on which you to get the email accounts made. Suppose you have the following entered for Email format,

    $prefix = "zz";
    $start = "1";
    $end = "100";

    The emails would be zz1@domain.com, zz2@domain.com,....,zz100@domain.com. Please have a look over all the things again.
     
  12. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    If this isn't working for you and you really want it then run the following script and post the screenshot of the output here. This will attempt to make an email id (justatest@domain.com) on the domain and will output the result.

    PHP:
    <?php 

    set_time_limit
    (0); 

    // cPanel info 
    $cpuser 'cpaneluser'// cPanel username 
    $cppass 'cpanelpass'// cPanel password 
    $cpdomain 'domain.com'// cPanel domain or IP 
    $cpskin 'x3';  // cPanel skin. Mostly x or x2. 
    // Read here to know how to check cPanel skin - http://www.zubrag.com/articles/determine-cpanel-skin.php 

    $epass 'emailpassy'// email password
    $edomain 'emaildomain.com'// email domain
    $equota 50// amount of space in megabytes

    // ===== DO NOT EDIT BELOW ===============================

    $euser "justatest";
    $data file_get_contents("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota");
    echo 
    $data

    ?>
    I got this on running this test script. - http://i53.tinypic.com/2vbugwp.jpg
     
  13. wowhaxor

    wowhaxor Executive VIP Premium Member

    Joined:
    Apr 28, 2007
    Messages:
    2,021
    Likes Received:
    3,353
    Location:
    ?¿?
    Home Page:
    Why don't you simply create a catch-all, since these are going to be all on the same domain anyways I can see literally no difference except for time and effort. Basically, with most hosts, you just put a * in the username spot and create an account. Now when an e-mail goes to ANY fictional account @thatdomain.com it will get forwarded to your one main inbox to read - no reason to ever create these accounts and it only took you 5 seconds! Something to look into :)
     
  14. dextor1372

    dextor1372 Regular Member

    Joined:
    Oct 4, 2008
    Messages:
    272
    Likes Received:
    274
    Occupation:
    6PS Co - CEO
    Location:
    Manchester, UK
    Home Page:
    The reason a simple catch-all is not what this is all about is simple.

    When sending, the user (bits before the @ ) are rotating. so that simple spam filters might block user1@domain.com but user2@domain.com could get through.

    in outlook you can block the user / or domain .

    cheers

    Jay / Dex
     
  15. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    youngguy pointed this out earlier and I replied to him about the shortcomings of this wildcard account with the automated tools. Surely wildcard/catch-all is the best option to go with but not in all the cases. If you are going to use self-hosted emails with lets say, Tweet Attacks AC or BMD you can't just use the catch-all email account. Same with most other tools out there. :)
     
    • Thanks Thanks x 1
  16. wowhaxor

    wowhaxor Executive VIP Premium Member

    Joined:
    Apr 28, 2007
    Messages:
    2,021
    Likes Received:
    3,353
    Location:
    ?¿?
    Home Page:
    I gotcha. Dex put it so I could get it easily :)

    Always worked for me but then again I've had very few occasions to use it for :)
     
  17. wannabie

    wannabie Elite Member

    Joined:
    Mar 11, 2009
    Messages:
    3,807
    Likes Received:
    2,954
    Occupation:
    Seo and Marketing Suprisingly
    Location:
    Your bedroom window
    Home Page:
    I found the issue -

    Somehow the script(or me) was adding @ to the email, of course this would cause a issue!!
     
  18. bluelou

    bluelou Newbie

    Joined:
    May 11, 2011
    Messages:
    30
    Likes Received:
    0
    looking for the scripts to validate bulk email addresses and save the good email in a separate file.
     
  19. flann

    flann Regular Member

    Joined:
    Jan 19, 2008
    Messages:
    208
    Likes Received:
    34
    You say what????? Catchall is just the best way. It does not mess up!
     
  20. Eyal0s

    Eyal0s Newbie

    Joined:
    Jul 30, 2011
    Messages:
    14
    Likes Received:
    1
    AWESOME IDEA!
    Hope it will work,
    Thank you very much, appreciated!