SRP6 and WoW Authentication Process menu

User Tag List

Page 3 of 3 FirstFirst 123
Results 31 to 41 of 41
  1. #31
    julienguillot's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    23
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    When hashing I:P and Compute K i use lowercase. Could be the problem ?

    SRP6 and WoW Authentication Process
  2. #32
    doityourself's Avatar ★ Elder ★
    Reputation
    1424
    Join Date
    Nov 2008
    Posts
    843
    Thanks G/R
    35/448
    Trade Feedback
    0 (0%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by julienguillot View Post
    When hashing I:P and Compute K i use lowercase. Could be the problem ?
    username & pw need a .ToUpper()
    Last edited by doityourself; 07-31-2017 at 08:25 AM.

  3. #33
    julienguillot's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    23
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    And when compute K too ?

  4. #34
    julienguillot's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    23
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    [C#] using SharpCore.Framework.DataExtensions; using System; using System.Collectio - Pastebin.com

    M and M1 are not equal yet...

    I really don't know what to do... Any idea ?

  5. #35
    julienguillot's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    23
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    Is this algorithm is applicated to Wotlk ?

    Password Proof (K)

    This value is generated by the client and the server as proof that they actually know the value of S. This is another value which differs from standard SRP, which justs sends SHA1(S).
    Blizzard's version calculates K as follows:
    Place the even bytes of S into one buffer, and the odd bytes into another.
    Create a SHA-1 hash of each buffer.
    Create K by combining the even bytes of the first buffer, and the odd bytes of the second.

    But.. it's exaclty what i'm doing :

    public void CalculateK()
    {
    // Generation de S = (A * v^u) ^ b % N
    BigInteger p1 = ClientPublicEphemeral * BigInteger.ModPow(Verifier, Scrambler, Modulus); // (A * v^u)
    byte[] ss = BigInteger.ModPow(p1, ServerPrivateEphemeral, Modulus).ToByteArray();
    SessionKeyRaw = MakeBigInteger(ss);

    // Generation de K
    byte[] t1 = new byte[16];
    byte[] t2 = new byte[16];
    byte[] vK = new byte[40];

    for (int i = 0; i < 16; i++)
    {
    t1[i] = ss[i * 2];
    t2[i] = ss[i * 2 + 1];
    }

    t1 = sha1.ComputeHash(t1, 0, 16);
    t2 = sha1.ComputeHash(t1, 0, 16);

    for (int i = 0; i < 20; i++)
    {
    vK[i * 2] = t1[i];
    vK[i * 2 + 1] = t2[i];
    }

    SessionKeyHash = MakeBigInteger(vK);
    }
    Last edited by julienguillot; 08-02-2017 at 07:23 PM.

  6. #36
    Glusk's Avatar Contributor
    Reputation
    105
    Join Date
    Apr 2015
    Posts
    33
    Thanks G/R
    7/32
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change
    Code:
    byte[] HI = sha1.ComputeHash(Encoding.UTF8.GetBytes(username.StringToHex())); //line 139 of the latest paste
    to

    Code:
    byte[] HI = sha1.ComputeHash(Encoding.UTF8.GetBytes(username.toUpper()));

  7. Thanks julienguillot (1 members gave Thanks to Glusk for this useful post)
  8. #37
    julienguillot's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    23
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hey Glusk, thank you for your answer.

    I tried with .ToUpper() before set .StringToHex() but M is still not equal to M1...

  9. #38
    julienguillot's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    23
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Any idea ?

  10. #39
    doityourself's Avatar ★ Elder ★
    Reputation
    1424
    Join Date
    Nov 2008
    Posts
    843
    Thanks G/R
    35/448
    Trade Feedback
    0 (0%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Maybe I can help you later again, but I have other wow related stuff todo now, sorry^^

  11. #40
    Glusk's Avatar Contributor
    Reputation
    105
    Join Date
    Apr 2015
    Posts
    33
    Thanks G/R
    7/32
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you please upload a working BigIntegerExtensions class with all its dependencies so that I can run your code. As it is, lines 368 and 461 have compile errors:

    Line 368 uses an undefined method on a byte array, ToHexString():
    Code:
                return bigInt.ToUnsignedByteArray().ToHexString();
    Line 461 misses a dependant class ByteExtensions:
    Code:
                return ByteExtensions.GenerateHashFor(bigInt.ToCleanByteArray());

  12. Thanks julienguillot (1 members gave Thanks to Glusk for this useful post)
  13. #41
    julienguillot's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    23
    Thanks G/R
    9/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you dude but i found the problem and resolved it ! M and M1 are now always the same if password is correct.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. BNET Authentication and wow login
    By daCoder in forum WoW Memory Editing
    Replies: 15
    Last Post: 05-03-2014, 10:33 PM
  2. Leaving MMOwned and WoW
    By Jones4ever in forum Community Chat
    Replies: 16
    Last Post: 03-19-2007, 09:07 PM
  3. Itunes and WoW
    By Kenidiern in forum Community Chat
    Replies: 5
    Last Post: 03-06-2007, 11:36 AM
  4. Naruto and WoW?
    By Fenarth in forum World of Warcraft General
    Replies: 6
    Last Post: 01-23-2007, 06:15 AM
All times are GMT -5. The time now is 08:51 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search