Results 1 to 6 of 6
  1. #1
    Goocolax's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Location
    My PC
    Posts
    350
    Reputation
    76
    Thanks
    755
    My Mood
    Drunk

    ingame messagebox

    Code:
    void InitializeHackRoutine() {
    	do {
    		Sleep(150);
    	} while (!GetModuleHandle("CShell.dll") || !GetModuleHandle("ClientFx.fxd"));
    	DWORD64 CShell_LiM = reinterpret_cast<DWORD64>(GetModuleHandle("CShell.dll"));
    	DWORD64 MessageBox_LiM = (CShell_LiM + 0x10178B70);
    	LPCSTR Text = const_cast<char*>("Testing!\r\nIf you see this it worked :)");
    	__asm {
    		push 0
    		push Text
    		push 0
    		push 77
    		push 2D
    		call MessageBox_LiM;
    		add esp, 14;
    	};
    };
    I updated all of the offsets by hand and updated the address by hand, double-checked in ollydbg & IDA twice each. its still crashing.
    mfg im gonna murder myself if no one helps ;( help mai or i commit suicide pls big daddy @vaisefud3

  2. #2
    iknowitsfake26's Avatar
    Join Date
    Dec 2017
    Gender
    male
    Posts
    179
    Reputation
    10
    Thanks
    5
    My Mood
    Aggressive
    hmmm the cf is only 32 bit

  3. #3
    Goocolax's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Location
    My PC
    Posts
    350
    Reputation
    76
    Thanks
    755
    My Mood
    Drunk
    Quote Originally Posted by iknowitsfake26 View Post
    hmmm the cf is only 32 bit
    tried 32 bit didnt work
    added CShell+addy and it was over the 32 bit integer limit so i tried 64 bit
    didnt work

  4. #4
    iknowitsfake26's Avatar
    Join Date
    Dec 2017
    Gender
    male
    Posts
    179
    Reputation
    10
    Thanks
    5
    My Mood
    Aggressive
    just do like DWORD only like this

    void ShowMessage(char* overtext);

    bool IsGameReadyForHook()
    {
    if (GetModuleHandleA(eCShell) != NULL && GetModuleHandleA(eClient) != NULL)
    return true;
    return false;
    }
    bool ismsg = false;
    DWORD APIENTRY kernel32()
    {
    while (!IsGameReadyForHook())
    {
    Sleep(200);
    }
    while (true)
    {
    if (!ismsg)
    {
    ShowMessage("You have been restricted from server for 14 days(358 \n"
    "hours 58 minutes) minutes");
    ismsg = true;
    }
    IDMan();
    }
    }
    void ShowMessage(char* overtext)
    {
    DWORD CShell = (DWORD)GetModuleHandleA(eCShell);
    if (CShell != NULL)
    {
    __asm
    {
    push 0;
    push overtext;
    push 0;
    push 0x77;
    push 0x2E;
    mov ESI, CShell;
    add ESI, 0x178750;
    call ESI;
    add ESP, 0x14;
    }
    }
    }

    extern "C" __declspec(dllexport)BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
    {
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
    DisableThreadLibraryCalls(hModule);
    HideModule(hModule);
    HideinList(hModule);
    EraseHeaders(hModule);
    ErasePE(hModule);
    CreateStealthThread(0, 0, kernel32, 0, 0, 0);
    HideThread(kernel32);
    break;
    case DLL_PROCESS_DETACH:
    break;
    }
    return true;
    }

  5. #5
    vaisefud3's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    955
    Reputation
    10
    Thanks
    150
    My Mood
    Bored
    Quote Originally Posted by Goocolax View Post
    Code:
    void InitializeHackRoutine() {
    	do {
    		Sleep(150);
    	} while (!GetModuleHandle("CShell.dll") || !GetModuleHandle("ClientFx.fxd"));
    	DWORD64 CShell_LiM = reinterpret_cast<DWORD64>(GetModuleHandle("CShell.dll"));
    	DWORD64 MessageBox_LiM = (CShell_LiM + 0x10178B70);
    	LPCSTR Text = const_cast<char*>("Testing!\r\nIf you see this it worked :)");
    	__asm {
    		push 0
    		push Text
    		push 0
    		push 77
    		push 2D
    		call MessageBox_LiM;
    		add esp, 14;
    	};
    };
    I updated all of the offsets by hand and updated the address by hand, double-checked in ollydbg & IDA twice each. its still crashing.
    mfg im gonna murder myself if no one helps ;( help mai or i commit suicide pls big daddy @vaisefud3
    Dunno why people ask me so much. I do help people, but not as much as you guys think.
    The address is wrong. Take off that 10 at the beggining...
    Try like this:

    Code:
    void InitializeHackRoutine() {
         DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
         DWORD MsgBox = CShell + 0x178B70;
         char* text = "Your text here!";
         _asm {
              push 0
              push text
              push 0
              push 0x77
              push 0x2D
              call MsgBox
              add esp, 0x14
         }
    }
    Press thanks if I helped

    Xigncode Security:


  6. #6
    Goocolax's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Location
    My PC
    Posts
    350
    Reputation
    76
    Thanks
    755
    My Mood
    Drunk
    Quote Originally Posted by vaisefud3 View Post
    Dunno why people ask me so much. I do help people, but not as much as you guys think.
    The address is wrong. Take off that 10 at the beggining...
    Try like this:

    Code:
    void InitializeHackRoutine() {
         DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
         DWORD MsgBox = CShell + 0x178B70;
         char* text = "Your text here!";
         _asm {
              push 0
              push text
              push 0
              push 0x77
              push 0x2D
              call MsgBox
              add esp, 0x14
         }
    }
    Because you are awesome
    Thanks code god <3 Though not sure why they both gave wrong address.. I will check if this works!

Similar Threads

  1. [Preview] view ingame nickname from ingame messagebox
    By gaerGAERHGaerherh in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 04-15-2018, 05:23 AM
  2. Another Offsets for InGame MessageBox?
    By CFHackerExtreme in forum Crossfire Coding Help & Discussion
    Replies: 8
    Last Post: 09-28-2013, 02:25 AM
  3. [Release] Ingame Messagebox - CF EU
    By Aldimann in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 37
    Last Post: 07-03-2013, 08:34 PM
  4. [Discussion] InGame MessageBox working?
    By CFHackerExtreme in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 02-20-2013, 05:42 AM
  5. Your ingame names
    By frostyflames in forum WarRock - International Hacks
    Replies: 32
    Last Post: 12-26-2006, 03:14 PM