[Question][Program] Session Key + HMAC menu

User Tag List

Results 1 to 1 of 1
  1. #1
    adapa's Avatar Sergeant
    Reputation
    1
    Join Date
    Jul 2011
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question][Program] Session Key + HMAC

    .RAR with ONLY SOURCE: HMACSHA1.rar
    Included in the .RAR is a class that implements HMACSHA1(C++ Class Implementation of HMAC-SHA - CodeProject)

    Here is the int main(){}

    Code:
    #include <iostream>
    #include <iomanip>
    #include "HMAC_SHA1.h"
    using namespace std;
    int main()
    {
    //BYTE Key[20];
    unsigned char Key[] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 };
    BYTE digest[20];
    //unsigned char Message[] = "Hi There";
    unsigned char Message[] = { 0x48, 0x69, 0x20, 0x54, 0x68, 0x65, 0x72, 0x65, 0x0 };
    memset(Key, 0x0b, 20);
    CHMAC_SHA1 HMAC_SHA1;
    HMAC_SHA1.HMAC_SHA1(Message, strlen((const char *)Message), Key, sizeof(Key), digest);
    
    std::cout <<"\n\nMessage: " << Message;
    std::cout <<"\n\nHMACSHA1: ";
    for(int i=0;i<sizeof(digest);i++)
        std::cout << setfill('0') << setw(2) << hex << (int)digest[i];
    
    //I get: b617318655057264e28bc0b6fb378c8ef146be00
    // Check with digest equal to 0xb617318655057264e28bc0b6fb378c8ef146be00
    
    int a;
    
    std::cout << "\n\nYou may now quit...";
    std::cin >> a;
    	return 0;
    }
    Everything works fine... but

    From earlier discussions I am under the impression that I must use the HMAC seeds that are hard coded in the WOW.EXE and also the session key that you have to read from memory. My question is, how do I implement this class to get the right HMACSHA1?

    Should the "session key" be xord with the opad and ipad, and the message be the HMAC seeds?

    Any detail or knowledge would be really helpful.

    Thanks.

    P.S. CryptoAPI for win32 is WAYYYYYYYY to complicated. I would love to use OPENSSL but I cant cause of OS. Any suggestions to implement HMACSHA1 in C++ would be greatly appreciated.

    EDIT:

    I have gotten the HMACSHA1 working correctly. Now, what else is there todo besides running the code through the scramble for the two charts? Is there another step to complete the scramble chart?
    Last edited by adapa; 09-20-2011 at 06:35 PM.

    [Question][Program] Session Key + HMAC

Similar Threads

  1. [Question] Wotlk Alpha Key
    By Aboogabooga in forum World of Warcraft General
    Replies: 7
    Last Post: 07-18-2008, 12:28 PM
  2. [Question] Program-Website using frames
    By Chenquie in forum Community Chat
    Replies: 0
    Last Post: 04-06-2008, 11:27 AM
  3. [question] program?
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 01-03-2008, 02:43 PM
  4. [Question] Programs?
    By ihatelag in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-13-2007, 11:45 AM
  5. [Program] Cyber Key (Automated WoW Key Presser)
    By Cypher in forum World of Warcraft Bots and Programs
    Replies: 0
    Last Post: 05-26-2006, 09:06 AM
All times are GMT -5. The time now is 03:47 PM. 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