Probelm with Memory World of Warcraft c++ menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    lustikus12's Avatar Banned
    Reputation
    -2
    Join Date
    Jul 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Probelm with Memory World of Warcraft c++

    Hello i tray Memoryreading with c++ the first time! ok her is my sourche :
    Code:
    // Memory.cpp: Hauptprojektdatei.
    
    #include "stdafx.h"
    
    using namespace System;
    
    #define WIN32_LEAN_AND_MEAN  
    #include <windows.h>
    #include <iostream>
    #include <tchar.h>
    #include <string>
    #pragma comment(lib, "user32.lib")
    #pragma comment(lib, "kernel32.lib")
    #define SE_DEBUG_NAME TEXT(*SeDebugPrivilege*)
    //#pragma comment(lib, "gdi32.lib")
    using namespace std;
    
    int _tmain(int argc, _TCHAR* argv[])// lol, ich nenns immer int main(int argc, char *argv[]) ^^
    { 
    	HWND hWindow;
    	DWORD dwProcId;
    	DWORD rw=0;
    	HANDLE hProcess;
    	int ID;
    
    	int puffer = 0;
    	unsigned int adresse = 0x007E75E4;
    	printf("Searching hWnd...\n");                                                                
    	while(!(hWindow = FindWindow(NULL, L"World of Warcraft")));     //Das it ein LPWSTR (oder so ähnlich^^) da musst du ein L davorstellen
    	{Sleep(50);}
    	printf("hWnd: 0x%i\n",hWindow);
    	if(!hWindow);
    	printf("Searching PocessId...\n");
    	do
    	{GetWindowThreadProcessId(hWindow, &dwProcId);}while(!dwProcId);
            printf("dwProcId: 0x%i\n", dwProcId);
    
    	printf("Searching Process Handle\n");
    	hProcess = OpenProcess(PROCESS_QUERY_INFORMATION|PROCESS_VM_READ|PROCESS_TERMINATE,false,dwProcId);
    	if (hProcess) 
                    printf("Prozess opend!\n");
    	else
    		printf("Prozess not opend!\n");
            printf("Porcess Handle: 0x%i\n", hProcess);
    
           ReadProcessMemory(hProcess, (LPCVOID)adresse, &puffer, sizeof(puffer), &rw);
    	   std::cout<< puffer;                                                            
           Sleep(2000);
    	   CloseHandle(hProcess);   
    	   std::cin >> ID ;
    	   return 0;
    }
    ok test it going until he should atach the Process. i think the best is if you test it by your own. It would be verry nice if you could help me sorry for my bad english =(
    Last edited by lustikus12; 08-22-2009 at 08:09 PM.

    Probelm with Memory World of Warcraft c++
  2. #2
    Cromon's Avatar Legendary


    Reputation
    840
    Join Date
    Mar 2008
    Posts
    714
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The WoW-process is "protected". You need to give your process SE_DEBUG_PRIVILEGES.

    Thats what im using to adjust privs:
    Code:
    BOOL AdjustProcessPrivileges(LPCSTR szPrivilegesName)   
    {   
        HANDLE hToken;    
        TOKEN_PRIVILEGES tkp;   
        
        if(!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))   
        {   
           return FALSE;   
        }   
        
        if(!LookupPrivilegeValue(NULL, szPrivilegesName, &tkp.Privileges[0].Luid))   
        {   
            CloseHandle(hToken);   
            return FALSE;   
        }   
           
        tkp.PrivilegeCount = 1;   
        tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;   
            
        if(!AdjustTokenPrivileges(hToken, FALSE, &tkp, sizeof(tkp), NULL, NULL))   
        {   
            CloseHandle(hToken);   
            return 0;   
        }   
            
        CloseHandle(hToken);   
        return TRUE;   
    }

  3. #3
    Ellesar1's Avatar Member
    Reputation
    20
    Join Date
    Feb 2009
    Posts
    78
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is there a way for warden to find pointers into it's memory and detect those reads / detect when someone attaches to WoW's process?

    if yes, are there simple methods to avoid this, or do you have to perform some dll-injections into the winapi or implement a device driver to go into kernel mode?

Similar Threads

  1. [Trading] Looking to trade my GW2 EU Account with a World Of Warcraft EU Account
    By Mezoo in forum WoW-EU Account Buy Sell Trade
    Replies: 0
    Last Post: 04-03-2013, 12:44 AM
  2. Replies: 0
    Last Post: 04-02-2013, 08:51 AM
  3. [Selling] Battle.net account with [EU]World of Warcraft Cataclysm and [EU]Diablo 3
    By tutuhoer in forum General Trading Buy Sell Trade
    Replies: 4
    Last Post: 06-28-2012, 01:32 PM
  4. What is the easiest class to PvP with on World of Warcraft?
    By 2dgreengiant in forum World of Warcraft General
    Replies: 152
    Last Post: 06-22-2008, 09:46 PM
  5. What is the easiest class to raid with on World of Warcraft?
    By 2dgreengiant in forum World of Warcraft General
    Replies: 105
    Last Post: 06-20-2008, 02:14 PM
All times are GMT -5. The time now is 02:36 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search