Tutorial [JAVA]Recover your secret MEGA master key.

Discussion in 'PHP' started by rofl cake, Dec 8, 2015.

  1. rofl cake

    rofl cake WebApp Dev-Team TS3 Dev-Team Contributor

    I didn't create the code, however I was allowed to post this by the original creator of the source.
    LINK
    Source:
    PHP:
    function megaPWN() {[/B]
    [
    B]  var format = function(a) {
        var 
    padded "";
        var 
    hex s2hex(b2s(a));
        for (var 
    0hex.lengthi+= 8) {
          
    padded += hex.substr(i8);
          
    padded += ' ';
        }
        return 
    padded;
      };

      var 
    masterAESKey JSON.parse(window.localStorage.k);

      var 
    rsaPrivateKeyComponents JSON.parse(window.localStorage.privk);
      var 
    rsaD rsaPrivateKeyComponents[2];
      var 
    rsaP rsaPrivateKeyComponents[0];
      var 
    rsaQ rsaPrivateKeyComponents[1];
      var 
    rsaU rsaPrivateKeyComponents[3];

      var 
    lesson "Your MEGA master key is: " format(masterAESKey);
      
    lesson += "<br>";
      
    lesson += "Your RSA private key exponent starts with: d=" format(rsaD).substr(0107);
      
    lesson += "<br>";
      
    lesson += "MEGA and anyone else with access to your computer can see this, and use it to decrypt any file you upload.";

      
    Ext.Msg.show({
        
    title"megaPWN",
        
    msglesson
      
    });

    }
    megaPWN();


     
    Derp likes this.

Share This Page