Results 1 to 12 of 12
  1. #1
    cheaayanshaw's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0

    how to write this pointer? [CE to C++]



    how to write this pointer to C++

    pls help
    Attached Thumbnails Attached Thumbnails
    2013-08-18_152618.jpg  

    Last edited by cheaayanshaw; 08-18-2013 at 07:46 AM.

  2. #2
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    You should scan for the pointer, find out what acces the adresses.
    I belive 'Fleep' had a tutorial on pointer scanning.

  3. #3
    cheaayanshaw's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Alex_Agnew View Post
    You should scan for the pointer, find out what acces the adresses.
    I belive 'Fleep' had a tutorial on pointer scanning.
    oh... edit posts already i wrong question
    how to write engine.dll+000xxxxx pointer to C++

  4. #4
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    You should find the static pointer (one that remains the same everytime) then you could write to engine.dll + the pointer.

    Credits to fleep for the video!
    Hoop this helps somehow

  5. #5
    cheaayanshaw's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    my question is how to add "Engine.dll"+0008983 this address to :

    Code:
    #include <windows.h>
    
    #include <stdio.h>
    /*================================ Antiwall ================================*/
    #define Antiwall 0x12F5FC
    #define Antiwall2	0x2c0
    #define Antiwall3 66269
    /*================================ Antiwall OFF ================================*/
    #define oAntiwall 0x12F5FC
    #define oAntiwall2	0x2c0
    #define oAntiwall3 66279
    /*================================================= =============================*/
    
    DWORD XpsBlackHat = 0;
    LPTSTR COD = "MAT.exe";
    
    void Patch(void *adr, void *ptr, int size)
    {
    DWORD NewProtection;
    VirtualProtect(adr,size,PAGE_EXECUTE_WRITECOPY, &NewProtection);
    memcpy(adr,ptr,size);
    VirtualProtect(adr,size,NewProtection, &NewProtection);
    }
    
    
    DWORD WINAPI LoopFunction(LPVOID param)
    {
    while (1) {
    
    if (GetAsyncKeyState(VK_PRIOR)&1) 
    *(int*)((*(int*)Antiwall) + Antiwall2) = Antiwall3;
    Sleep(100);
    if (GetAsyncKeyState(VK_NEXT)&1) 
    *(int*)((*(int*)oAntiwall) + oAntiwall2) = oAntiwall3;
    Sleep(10);
    } 
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if (dwReason == DLL_PROCESS_ATTACH) { 
    MessageBox(0,"ON : Pageup / OFF PageDown","INFORMATION",MB_OK | MB_ICONINFORMATION);
    CreateThread(0, 0, LoopFunction, 0, 0, 0);
    }
    return TRUE;
    }

  6. #6
    eukaryote's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    My Mood
    Tired
    I am quite sure "GetCurrentProcess()" will return the process base address, I am no expert on the windows specific libraries though.
    Last edited by eukaryote; 08-18-2013 at 10:45 AM.

  7. #7
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    GetModuleHandle("Engine.dll")
    Ah we-a blaze the fyah, make it bun dem!

  8. #8
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    If you're injecting:
    Code:
    DWORD Offset = (*(DWORD*)(*(DWORD*)((*(DWORD*)(DWORD)GetModuleHandleA("Engine.dll")) + 0x538)) + 0x530)) + 0x11D7;

  9. #9
    cheaayanshaw's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Kenshin13 View Post
    If you're injecting:
    Code:
    DWORD Offset = (*(DWORD*)(*(DWORD*)((*(DWORD*)(DWORD)GetModuleHandleA("Engine.dll")) + 0x538)) + 0x530)) + 0x11D7;
    have complete source? i don understand all

  10. #10
    letitrain's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    8
    A pointer is pretty much one address which has a value + an offset which point to another address.

    In your case:

    Code:
    ( *(DWORD*) ( *(DWORD*) GetModuleHandle ( "Engine.dll" ) + offset ) + offset ) + offset;

  11. #11
    Coituz's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    In my location.
    Posts
    792
    Reputation
    50
    Thanks
    36
    My Mood
    Shocked
    If you're making external hack which means a console ones you will be using it as this :
    Code:
    DWORD dwGetModuleBaseAddress(DWORD dwProcessIdentifier, TCHAR *lpszModuleName)
    {
       HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessIdentifier);
       DWORD dwModuleBaseAddress = 0;
       if(hSnapshot != INVALID_HANDLE_VALUE)
       {
          MODULEENTRY32 ModuleEntry32 = {0};
          ModuleEntry32.dwSize = sizeof(MODULEENTRY32);
          if(Module32First(hSnapshot, &ModuleEntry32))
          {
             do
             {
                if(_tcscmp(ModuleEntry32.szModule, lpszModuleName) == 0)
                {
                   dwModuleBaseAddress = (DWORD)ModuleEntry32.modBaseAddr;
                   break;
                }
             }
             while(Module32Next(hSnapshot, &ModuleEntry32));
          }
          CloseHandle(hSnapshot);
       }
       return dwModuleBaseAddress;
    }
    
    //to use it:
    
    int main()
    {
    DWORD baseAddr = dwGetModuleBaseAddress(PId, _T("Engine.dll")); 
    DWORD staticOffset = 0x000000;
    
    //now read process memory like this after you open the process and find window , etc..
    
    ReadProcessMemory(hProcess, (LPCVOID)(baseAddr+staticOffset), &pointed, 4, NULL); // Accesses TARGET process memory
    }
    If you're using it inside a dll:

    Code:
    DWORD dwModule = (DWORD)GetModuleHandle("Engine.dll");
    DWORD staticOffset = 0x000000;
    
    DWORD dwAddress = *(DWORD*)(dwModuel + staticOffset);

  12. #12
    mmt1994's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    21
    Reputation
    14
    Thanks
    8
    Get Address and add offset , change vlaue
    Code:
    #include <windows.h>
    #include <stdio.h>
    #define RPOINTER1 0x7D28AC4
    #define RPOINTER4 0x77C4F04
    #define RPOINTER7 0x20943C
    
    bool FuncName = false;
    void TheHacks()
    {
    	while(1)
    	{
    		DWORD hModule = (DWORD)GetModuleHandle("vietguard.antihack");
    		DWORD dwPtr1 = *(DWORD*)(hModule + RPOINTER1);
    		DWORD dwPtr4 = *(DWORD*)(hModule + RPOINTER4);
    		DWORD dwPtr7 = *(DWORD*)(hModule + RPOINTER7);
    		if (GetAsyncKeyState(VK_F5)&1) FuncName = !FuncName;
    		if (FuncName)
    		{
    			if (dwPtr4) *(DWORD*)(dwPtr4 + 0x318) = 227972;//Delay Attack
    			if (dwPtr4) *(DWORD*)(dwPtr4 + 0x24) = 0;//Death Kill
    			if (dwPtr4) *(DWORD*)(dwPtr4 + 0xe) = 0;//Patch Kill
    			if (dwPtr1) *(DWORD*)(dwPtr1 + 0x40) = 65535;//Fake Mana
    			if (dwPtr4) *(DWORD*)(dwPtr4 + 0x208) = 7358;//Fake Wing
    			if (dwPtr7) *(BYTE*)(dwPtr7 + 0x14) = 150;//Speed
    		}
    		Sleep(50);
    	}
    }
    
    BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
    {
    	if (dwReason == DLL_PROCESS_ATTACH)
    	{
    	   CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)TheHacks, NULL, NULL, NULL); //create the new Thread
    	}
    	return TRUE;
    }

Similar Threads

  1. [Solved] How to write ] or [ in CF? (this-> [])
    By KaboomYA in forum CrossFire Help
    Replies: 10
    Last Post: 04-16-2011, 07:26 AM
  2. [TuT] How to write a pointer in vb6
    By cjg333 in forum General Game Hacking
    Replies: 5
    Last Post: 06-26-2010, 07:30 PM
  3. I need someone to write this code here
    By EyalZamir in forum WarRock Korea Hacks
    Replies: 2
    Last Post: 05-14-2007, 06:11 AM
  4. How do i put pointers in tmk
    By Twisted_scream in forum WarRock - International Hacks
    Replies: 0
    Last Post: 05-02-2007, 11:10 AM
  5. My UCE pointer finder works but how do i find pointer in WarRock?
    By scooby107 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 05-01-2007, 01:14 PM