[QUESTION] Issues with OpenProcess C++ Win7 64bit menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    487 is ERROR_INVALID_ADDRESS (System Error Codes (Windows)), not access denied.
    The code you posted in the OP is a bit to messy for me to want to properly read it , but you are overcomplicating things imo.
    Just write the name of the dll to the target and CreateRemoteThread into LoadLibrary directly, then get the offset to your function locally, and CreateRemoteThread into that.

    [QUESTION] Issues with OpenProcess C++ Win7 64bit
  2. #17
    Azzie2k8's Avatar Member
    Reputation
    11
    Join Date
    Apr 2009
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    487 is ERROR_INVALID_ADDRESS (System Error Codes (Windows)), not access denied.
    The code you posted in the OP is a bit to messy for me to want to properly read it , but you are overcomplicating things imo.
    Just write the name of the dll to the target and CreateRemoteThread into LoadLibrary directly, then get the offset to your function locally, and CreateRemoteThread into that.
    Maybe you are right and I should really just get to a working version...I will amke a strip down version of it.

  3. #18
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just had a closer look at your code and the main problem I can see is your threadstart function. It's to dependent on specific compiler settings to work, mainly that /RTCs cannot be enabled. (unless you make sure that the crt dll has the same location in both your injector and target, or you relocate the call manually)
    There's also
    funcsize = (DWORD)threadend-(DWORD)threadstart;
    which might be a problem.. As far as I know there's nothing in the C(++) standards that says that functions have to be linked in the same order that they appear in the source code.
    Yes, it currently works like that in msvc but it's unreliable to depend on in my opinion.

  4. #19
    Azzie2k8's Avatar Member
    Reputation
    11
    Join Date
    Apr 2009
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    I just had a closer look at your code and the main problem I can see is your threadstart function. It's to dependent on specific compiler settings to work, mainly that /RTCs cannot be enabled. (unless you make sure that the crt dll has the same location in both your injector and target, or you relocate the call manually)
    There's also
    funcsize = (DWORD)threadend-(DWORD)threadstart;
    which might be a problem.. As far as I know there's nothing in the C(++) standards that says that functions have to be linked in the same order that they appear in the source code.
    Yes, it currently works like that in msvc but it's unreliable to depend on in my opinion.
    Okay thanks alot. I am using a slightly different approach now thanks to Boredevil. Anyways since this problem is solved now I will need to Hook a function to execute my code, right ? I don't want to bother anyone with this but if you already know a good place where I can read up about this I'd be very happy if you posted a link.
    Btw thanks to everyone who participated in this thread

  5. #20
    Azzie2k8's Avatar Member
    Reputation
    11
    Join Date
    Apr 2009
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have another issue that I dont understand but I dont want to open a new thread for this.

    I try to hook End Scene via MS Detours 1.5 but wow constantly crashes when DetourFunction is called.

    What am I doing wrong here ?

    Code:
    HRESULT (__stdcall *Real_EndScene)(LPDIRECT3DDEVICE9);
    
    HRESULT __stdcall My_EndScene(LPDIRECT3DDEVICE9 device)
    {
    	return Real_EndScene(device);
    }
    
    
    UINT CALLBACK Install( LPVOID lpParam)
    {	
    	DWORD pDevice_1 = *(DWORD*)(0x00C5DF88);
    	DWORD pDevice_2 =  *(DWORD*)(pDevice_1 + 0x397C); //This contains another pointer so we will dereference again
    	DWORD pDevice = *(DWORD*)pDevice_2; // Pointer to Class VMT 
    	DWORD EndScene = *(DWORD*)(pDevice +0xA8); // Offset off EndScene within classes VMT
    
    	Real_EndScene = (HRESULT (__stdcall *)(LPDIRECT3DDEVICE9))DetourFunction((PBYTE)EndScene,(PBYTE)My_EndScene);
    
    	return 0;
    }

  6. #21
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because you don't add baseAddress to first offset, as already stated many time.

  7. #22
    Azzie2k8's Avatar Member
    Reputation
    11
    Join Date
    Apr 2009
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    Because you don't add baseAddress to first offset, as already stated many time.
    uhm I thought that was coming with the 4.whatever patch ? Is it already using ASLR?

  8. #23
    Cheatz0's Avatar Member
    Reputation
    14
    Join Date
    May 2009
    Posts
    36
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Azzie2k8 View Post
    uhm I thought that was coming with the 4.whatever patch ? Is it already using ASLR?
    4.0.1 - Which is now.

  9. #24
    Azzie2k8's Avatar Member
    Reputation
    11
    Join Date
    Apr 2009
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol I didnt even know...sry i dont play wow

    well then time to go lookup how that one works

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Can't connect on Cataclysm with Win7 64bit.
    By Patt_French in forum World of Warcraft General
    Replies: 1
    Last Post: 05-12-2010, 02:34 PM
  2. [Question] Did model change but having issues with skin. =/
    By cj151695 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 05-09-2008, 07:43 PM
  3. [Question] Hair issues with race conversion
    By mercutius in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 04-19-2008, 01:37 PM
  4. Question about issues with a scam
    By C-Death in forum WoW Scams Help
    Replies: 3
    Last Post: 03-16-2008, 02:08 PM
  5. [Question] Camera Issue with Model Editing.
    By Frombehind in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 10-12-2007, 03:57 PM
All times are GMT -5. The time now is 07:50 AM. 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