Results 1 to 1 of 1

Thread: PMK calc speed test :)

  1. #1
    Member
    Join Date
    Jan 2008
    Posts
    326
    Thanks
    5
    Thanked 47 Times in 24 Posts
    Rep Power
    221
    Reputation
    681

    Default PMK calc speed test :)

    Hi,
    Got bored, so did the old school EMK -> PMK calc on iPhone 5 in 0.000025 seconds

    Basically the made up sample HMK 11 11 11 11 11 11 11 11 11 11 and EMK 22 22 22 22 22 22 22 22
    decrypt to PMK B7 C3 93 B2 DB A0 F6 E7.

    Crux of the app not including hash tables, MK index tables or functions to rotate arrays or check parity.
    Code:
        if (trigx == 129) {spdstart = [NSDate timeIntervalSinceReferenceDate];}
        
        while (trigx > 1) {
        trigx--;
            
        if (trigx == 128) {mktableindex = 0; hmkindex = 9;}
            
        hmkindex++;
        if (hmkindex == 10) { hmkindex = 0; shiftr(HMK, sizeof HMK);}
            
        hashindex = MK[mkindextable1[mktableindex]] ^ HMK[hmkindex];
        parity = HMK[hmkindex]; findparity();
        if (parity == 1) {
        MK[mkindextable2[mktableindex]] = MK[mkindextable2[mktableindex]] ^ hasha[hashindex];
        } else {
        MK[mkindextable2[mktableindex]] = MK[mkindextable2[mktableindex]] ^ hashb[hashindex];
        } // parity
        mktableindex++;
        if (mktableindex > 15) {mktableindex = 0;}
        }
            
        if (trigx == 1) { trigx--; spdend =  [NSDate timeIntervalSinceReferenceDate]; testresult = spdend - spdstart;}
        
    }
    PMK decrypt app for iPhone exists! Never to be seen in App Store

    Cheers, Art.

  2. The Following 3 Users Say Thank You to Art For This Useful Post:

    spence (30-01-13),stuballs (30-01-13),weirdo (24-01-13)



Look Here ->

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •