Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
addresses problem
Results 1 to 3 of 3

Thread: addresses problem

  1. #1

    addresses problem

    how i get baseAddress nad for example myhp address im tired of searching

  2. #2
    Senior Member
    Join Date
    Oct 2009
    Location
    Poland, Świebodzin
    Posts
    233
    Code:
    // Credits to DarkstaR
    DWORD GetModuleBase(DWORD processID)
    {
    	MODULEENTRY32 moduleEntry = {0};
    	HANDLE snapShot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, processID);
    	DWORD base = 0;
    
    	if(!snapShot)
    		return 0;
    
    	moduleEntry.dwSize = sizeof(moduleEntry);
    	BOOL currentModule = Module32First(snapShot, &moduleEntry);
    
    	if(currentModule)
    	{
    		static char hold[1000];
    		memcpy(hold, moduleEntry.szModule, strlen(moduleEntry.szModule) + 1);
    
    		if(std::string(hold).find(".exe") == std::string(hold).size() - 4)
    			base = (DWORD)moduleEntry.modBaseAddr;
    	}
    
    	CloseHandle(snapShot);
    	return base;
    }
    
    DWORD AlignAddress(DWORD processID, DWORD address)
    {
    	static int base = (int)GetModuleBase(processID);
    	static int XPBase = 0x400000;
    	address += (base - XPBase);
    	return address;
    }
    Also I'm tired cuz peoples like u...
    By the way, I'm 100% sure, that you'll back here, cuz you'll get compiler error

    Regards, Czepek!

  3. #3
    no no no im now alright with everything

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •