Tool Mega Account Creator v1.3 [WIN]

Thicc Lord

Thiccest Mod
Moderator
Donor
Game Developer
Mar 20, 2019
4,840
12,904
This tool is very much like Ryahn's Node.js Mega Generator, but runs on pure PowerShell and the unofficial tool.

Installation
Download the script, run it anywhere.

OPTIONAL
Create an API key at (free) to generate random full names also.
Update the $strAPIKey on Line 50.

Usage
The script has two parameters:
  • Count: How many accounts you want to generate (Defaults to 1)
  • Tools: This is set to $True by default, you do not need to specify it. This will force the script to use megatools
The script uses megatools, it will automatically download and unzip into C:\MEGA\
C:\MEGA is automatically created, if you want to use a different folder location, please adjust $LogPath variable on line 30.

Running the script without parameters will create one account and dump it in C:\MEGA\MEGA-Accounts-%DATE%-%TIME%.txt
PS C:\> .\ThiccMEGACreator.ps1

Use the parameter on the command line to adjust count
PS C:\> .\ThiccMEGACreator.ps1 -Count 10

Use the megacmd tool
PS C:\> .\ThiccMEGACreator.ps1 -Tools $False

Changelog
You don't have permission to view the spoiler content. Log in or register now.

Download
DOWNLOAD

IMPORTANT
 
Last edited:

Thicc Lord

Thiccest Mod
Moderator
Donor
Game Developer
Mar 20, 2019
4,840
12,904
Currently working on v1.3. This will bring the following functionality:
  • Mega tools backup option
  • Better logging
  • Functions for better internal error handling
 
  • Like
Reactions: Pif paf

Pif paf

Engaged Member
Jr. Uploader
Feb 5, 2018
2,797
1,697
ok looks awesome, just to clear my thinking: instead of using VPN when the download limit is reached, I use several temporary accounts on Mega to achieve the same result, right?
 

Thicc Lord

Thiccest Mod
Moderator
Donor
Game Developer
Mar 20, 2019
4,840
12,904
ok looks awesome, just to clear my thinking: instead of using VPN when the download limit is reached, I use several temporary accounts on Mega to achieve the same result, right?
That's regarding downloading files, I believe MEGA uses IP throttling for that.
 

rodrigo_ricardo

New Member
Dec 26, 2018
1
0
I had some issues with the tool not parsing the verification email properly but I managed to fix it.
If anyone is interested, replace the
try catch block on line 267 with this function

Code:
try{
        $CurrentStep = 'Verification URL'
        # Retrieving verification email URL
        Write-ToLog -String "Getting verification URL"
        $objEmail = Invoke-RestMethod -Method Get -Uri ($strURL + '?action=readMessage' + $strLogin + '&id=' + $intEmailId)
        Write-ToLog -String "Email found"
        $arrEmailContent = $objEmail.textBody.Split([Environment]::NewLine)
        [regex]$regex = "(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])"
        $strActLink = $regex.Matches($arrEmailContent).Value
        $global:strActLink = $strActLink.Trim()
        Write-ToLog -String "Verification link found"
}catch{
        Write-ToLog -String "Error with verification URL" -Severity ERROR
        throw $_.Exception.Message
}
 

Thicc Lord

Thiccest Mod
Moderator
Donor
Game Developer
Mar 20, 2019
4,840
12,904
I had some issues with the tool not parsing the verification email properly but I managed to fix it.
If anyone is interested, replace the
try catch block on line 267 with this function

Code:
try{
        $CurrentStep = 'Verification URL'
        # Retrieving verification email URL
        Write-ToLog -String "Getting verification URL"
        $objEmail = Invoke-RestMethod -Method Get -Uri ($strURL + '?action=readMessage' + $strLogin + '&id=' + $intEmailId)
        Write-ToLog -String "Email found"
        $arrEmailContent = $objEmail.textBody.Split([Environment]::NewLine)
        [regex]$regex = "(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])"
        $strActLink = $regex.Matches($arrEmailContent).Value
        $global:strActLink = $strActLink.Trim()
        Write-ToLog -String "Verification link found"
}catch{
        Write-ToLog -String "Error with verification URL" -Severity ERROR
        throw $_.Exception.Message
}
Ah, if they have changed anything in the email, that may happen.
I will take this code and test, then update for 1.4. Thanks for letting me know.
 
  • Like
Reactions: rodrigo_ricardo

Thicc Lord

Thiccest Mod
Moderator
Donor
Game Developer
Mar 20, 2019
4,840
12,904
I had some issues with the tool not parsing the verification email properly but I managed to fix it.
If anyone is interested, replace the
try catch block on line 267 with this function

Code:
try{
        $CurrentStep = 'Verification URL'
        # Retrieving verification email URL
        Write-ToLog -String "Getting verification URL"
        $objEmail = Invoke-RestMethod -Method Get -Uri ($strURL + '?action=readMessage' + $strLogin + '&id=' + $intEmailId)
        Write-ToLog -String "Email found"
        $arrEmailContent = $objEmail.textBody.Split([Environment]::NewLine)
        [regex]$regex = "(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])"
        $strActLink = $regex.Matches($arrEmailContent).Value
        $global:strActLink = $strActLink.Trim()
        Write-ToLog -String "Verification link found"
}catch{
        Write-ToLog -String "Error with verification URL" -Severity ERROR
        throw $_.Exception.Message
}
I just tested generating 5 accounts with 1.3 and I had no issues.
What version of PowerShell are you running? ($PSVersionTable.PSVersion from a PoSH terminal)
Also, are you activating in English? Or another language?

Code:
-- 08:41
Step: Verification URL
Severity: INFO
Getting verification URL

-- 08:41
Step: Verification URL
Severity: INFO
Email found

-- 08:41
Step: Verification URL
Severity: INFO
Verification link found: https://mega.nz/#confirmQ29uZmlybUNvZGVWMqQlL5_9DAAMlBl9ZkbFvDA3dDJ1bXRAbGFhZmQuY29tCU5hdGhhbmlhbERlYXJpbmele4Da8Ubfiw

-- 08:41
Step: Activate Account
Severity: INFO
Attempting to activate account

-- 08:41
Step: Activate Account
Severity: INFO
Successfully activated MEGA account

-- 08:41
Step: Login Test
Severity: INFO
Testing MEGA login

-- 08:41
Step: Login Test
Severity: INFO
Successfully logged in