Results 1 to 12 of 12
  1. #1
    SchimmelJoghurt's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    833
    My Mood
    Inspired

    [Help Request] Address Read/Write Help

    Hello mpgh,

    i haven't coded in a long time. So i decided to code an aimbot for Ghost. After half an hour i got my addresses ready. Another half an hour my code was finally ready. But as soon as i started it nothing happend. So i searched for a mistake. My Addresses were all right. But as soon as i do a ReadProcessMemory(HANDLE, ADDRESS, &VAR, SIZEOF(), NULL) i get totally wrong results. What did i do wrong? Hopefully somebody can help me, it really bothers me right now. If you need more information just tell me .

    Greetings

    PS: Sorry for my english

  2. #2
    MyNameXsh's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    2
    My Mood
    Twisted
    Did you test it on 3.2? The game did just update last night so maybe the addresses changed? Maybe seeing the source code would help a bit more..

  3. #3
    Diamond's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    CoD Section
    Posts
    2,227
    Reputation
    200
    Thanks
    2,523
    My Mood
    Devilish
    Quote Originally Posted by MyNameXsh View Post
    Did you test it on 3.2? The game did just update last night so maybe the addresses changed? Maybe seeing the source code would help a bit more..
    Well to play the game what it does is first update then launch the game... So he obviously didn't test it on 3.2.
    Instagram: fadi.ovo

    Twitter: @byFadi

    YouTube: OVO MobZai

  4. The Following User Says Thank You to Diamond For This Useful Post:

    MyNameXsh (11-19-2013)

  5. #4
    MyNameXsh's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    2
    My Mood
    Twisted
    Quote Originally Posted by MaroonishBlood View Post
    Well to play the game what it does is first update then launch the game... So he obviously didn't test it on 3.2.
    Kind of meant that maybe he tested yesterday before the update... but I understand

  6. #5
    Diamond's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    CoD Section
    Posts
    2,227
    Reputation
    200
    Thanks
    2,523
    My Mood
    Devilish
    Quote Originally Posted by MyNameXsh View Post
    Kind of meant that maybe he tested yesterday before the update... but I understand
    Well, it was posted 3 hours ago, but yea you never know .
    Instagram: fadi.ovo

    Twitter: @byFadi

    YouTube: OVO MobZai

  7. #6
    SchimmelJoghurt's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    833
    My Mood
    Inspired
    I tested in version 3.3.3. At the moment i'm at work, but if i'm home i'll give you guys some code examples.

  8. #7
    Horror's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    51,4.
    Posts
    6,940
    Reputation
    574
    Thanks
    5,004
    My Mood
    Twisted
    Maybe your ReadWrite function is broken
     

    Minion+ : February 2014 - January 2015
    Counter Strike: Global Offensive Minion : November 2014 - January 2015
    Alliance of Valiant Arms Minion : August 2014 - January 2015
    Need For Speed World Minion : January 2014 - January 2015
    Rust Minion : January 2014 - January 2015
    Call of Duty Minion : January 2013 - January 2015
    Editor : December 2012 - April 2013
    Donator : March 2014 - Current
    Member : October 2010 - Current

    Previously known as "Isaakske".

  9. #8
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,430
    Reputation
    611
    Thanks
    9,712
    My Mood
    Cheerful
    We can't know what you did wrong if we don't see your code..

  10. #9
    SchimmelJoghurt's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    833
    My Mood
    Inspired
    Ok here's some code. It's very simple. All it does is grab the process by the Name and write to the AmmoAddress. But if i run it, nothing happens. The Address is correct, because if i change the value of this address in cheat engine it changes. Hopefully somebody can help me.

    Code:
    #include <iostream>
    #include <Windows.h>
    
    HANDLE hProcHandle;
    
    int main()
    {
    	bool GameRunning = false;
    	LPCSTR LGameWindow = "Call of Duty® Ghosts Multiplayer"; //Game Name, wichtig das er genau so wie der Window Titel ist
    	
    	while(!GameRunning)
    	{
    		HWND hGameWindow = NULL;
    		DWORD ProcId = NULL;
    		hProcHandle = NULL;
    		GameRunning = false;
    
    		hGameWindow = FindWindow(NULL, LGameWindow);
    
    		system("cls");
    		if(hGameWindow)
    		{
    			GetWindowThreadProcessId(hGameWindow, &ProcId);
    			if(ProcId != 0)
    			{
    				hProcHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ProcId);
    				if(hProcHandle == INVALID_HANDLE_VALUE || hProcHandle == NULL)
    				{
    					std::cout << "Failed to open process for valid handle";
    				}
    				else
    				{					
    					std::cout << "Game Found!";
    					GameRunning = true;
    				}
    			}
    			else
    			{
    				std::cout << "Failed to obtain process id";
    			}
    		}
    		else
    		{
    			std::cout << "Game not found!";
    		}
    	}
    
    	DWORD AmmoAddress = 0x1443A5774;
    
    	WriteProcessMemory(hProcHandle, (PBYTE*) AmmoAddress, "100", sizeof(int), 0);
    }

  11. The Following 2 Users Say Thank You to SchimmelJoghurt For This Useful Post:

    Diamond (11-20-2013),Lovroman (11-20-2013)

  12. #10
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,430
    Reputation
    611
    Thanks
    9,712
    My Mood
    Cheerful
    Quote Originally Posted by SchimmelJoghurt View Post
    Ok here's some code. It's very simple. All it does is grab the process by the Name and write to the AmmoAddress. But if i run it, nothing happens. The Address is correct, because if i change the value of this address in cheat engine it changes. Hopefully somebody can help me.
    Does it find game window or WPM is the problem ?

    You can try this(I doubt it will have any different effect ):
    Code:
    WriteProcessMemory(hProcHandle, (LPVOID) 0x1443A5774, "100", sizeof(int), 0);

  13. #11
    SchimmelJoghurt's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    833
    My Mood
    Inspired
    Finally i found the mistake. My Project was 32bit but ghost requires 64bit. Didn't known that. Thanks all of you for your help, great to see how nice People are .

  14. #12
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,430
    Reputation
    611
    Thanks
    9,712
    My Mood
    Cheerful
    Quote Originally Posted by SchimmelJoghurt View Post
    Finally i found the mistake. My Project was 32bit but ghost requires 64bit. Didn't known that. Thanks all of you for your help, great to see how nice People are .
    Haha, I was going to suggest that, but I assumed you already know that you have to compile it as 64 bit project so I didn't say anything about it..
    //Closed

  15. The Following User Says Thank You to Lovroman For This Useful Post:

    SchimmelJoghurt (11-20-2013)

Similar Threads

  1. [Solved] Help/Request!- ALL HACK PROGRAMERS READ.
    By daemonte5 in forum CrossFire Help
    Replies: 17
    Last Post: 06-13-2012, 10:04 AM
  2. [Help] Read & write text file like:NAME1, LINK[Solved]
    By shotyoudie in forum Visual Basic Programming
    Replies: 6
    Last Post: 02-05-2011, 01:58 PM
  3. [Help Request]Read-Only Webbrowser
    By omanel in forum Visual Basic Programming
    Replies: 11
    Last Post: 07-13-2010, 11:23 AM
  4. [Source Help]Read/Write Text[Solved]
    By Samueldo in forum Visual Basic Programming
    Replies: 4
    Last Post: 04-05-2010, 11:17 AM
  5. [request] Help with Address
    By Grim09 in forum WarRock - International Hacks
    Replies: 21
    Last Post: 11-20-2007, 02:41 PM