Skip to content

🔴 MEGA.nz account generator written in Python. Uses Mail.tm temporary emails for generating accounts, and automatically verifies them. Can also be used to keep accounts alive, by periodically logging in to them.

License

Notifications You must be signed in to change notification settings

f-o/MEGA-Account-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord OAuth
MEGA.nz Account Creator

An Open Source demonstration of creating / managing multiple MEGA.nz accounts.


Key Features • How To Use • Acknowledgements • Support • License

Discord OAuth Demo

Key Features

  • Generate new MEGA.nz accounts in bulk
  • Automatically verify emails
  • Fetch information about available storage
  • Keep accounts alive by logging in periodically

How To Use

Prerequisites:

  • megatools installed and added to your PATH
  • Python 3.6+

Installation:

# Clone this repository
$ git clone https://github.com/f-o/MEGA-Account-Generator.git
# Go into the repository
$ cd MEGA-Account-Generator
# Install dependencies
$ pip install -r requirements.txt

Usage:

# Create new accounts
$ python generate_accounts.py
# Sign in to accounts to keep them alive
$ python signin_accounts.py
Click here for Advanced Usage
# Create new accounts with arguments
$ python generate_accounts.py [-h] [-n NUMBER_OF_ACCOUNTS] [-t NUMBER_OF_THREADS] [-p PASSWORD]
# Sign in to accounts to keep them alive
$ python signin_accounts.py
# Convert old CSV file to new format
$ python convert_csv.py [-h] [-i INPUT_FILE]
  • -n Number of new accounts to generate. If not specified, 3 accounts will be generated.
  • -t Number of threads to use for concurrent account creation. Maximum of 8.
  • -p Password to use for all accounts. If not specified, a random password will be generated for each account.
  • -h Show help.

Convert old CSV file to new format

What's this?

As of May 2024, the script has updated to use a new format for the CSV file. This means that the CSV file (accounts.csv) will be easier to use in the future.
Unfortunately the old format is not supported any more, so you will need to convert it to the new format.
You will need to convert the old CSV file only if you have accounts in the accounts.csv file from before May 2024.

Usage:

# Convert old CSV file to new format
$ python convert_csv.py [-h] [-i INPUT_FILE]
  • -i Path to the input CSV file. If not specified, accounts.csv will be used.
  • -h Show help.

FAQ

  • Will this automatically verify emails?

    • Yes, the script will automatically fetch the verification link from the email, and use it to verify the account.
  • Can I log in to the accounts, on the web, after generating them?

    • Yes, that is how this script is intended to be used. Simply copy the email address and password from the CSV file and log in to the account.
  • There are multiple passwords in the CSV file. Which one should I use?

    • As of May 2024, all columns have appropriate headers.
    • You will need to use the password in the second columns titled MEGA Password.
  • What's with the other password then? And why do I need the Mail.tm ID?

    • The other password, in the Mail.tm Password column, is the password for the Mail.tm account.
    • You can use this password to sign in to the temporary Mail.tm account on their website.
    • In order to access the Mail.tm account, through their API, we also need the ID of the account. This is stored in the case it will be needed in the future.
  • What's with the -p/--password flag? Do I need it?

    • The -p flag is optional.
    • You can use this to specify a password for all accounts. If not specified, a random password will be generated for each account.
  • Can I generate multiple accounts in parallel?

    • Yes, this script can generate multiple accounts in parallel using the -t flag.
    • This is, however, not recommended, and will likely result in rate limits from Mail.tm.
    • The script will automatically retry in the event of a rate limit up to 5 times.
  • Why can I only run 8 threads?

    • Because of rate limits from Mail.tm.
    • We do not want to overload their service, which they generously offer for free.
  • Something is broken? I'm having trouble using this script.


Acknowledgements

This software was based heavily on IceWreck/MegaScripts.
His original Python script utilized GuerillaMail to generate temporary email addresses.
I've modified the script to use Mail.tm instead, with a lot of help from qtchaos/py_mega_account_generator.
I highly recommend checking out both of their projects.

Support

This project is free and open source.
If you find it useful, please consider supporting the project by donating.

Buy Me A Coffee


License

MIT License

Copyright (c) 2023 Fox

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@f-o  ·  soon.to

About

🔴 MEGA.nz account generator written in Python. Uses Mail.tm temporary emails for generating accounts, and automatically verifies them. Can also be used to keep accounts alive, by periodically logging in to them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages