[C++ Help] Memory Reading menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    snigelmannen's Avatar Member
    Reputation
    27
    Join Date
    Jul 2007
    Posts
    318
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++ Help] Memory Reading

    So yeah, i started doing some fugly stuff, read some books did most of the examples in them and i wanted to do some very basic stuff, just trying out some stuff in c++ and the memory reading. But im not really sure this is the best way to do it or even a way to do it. Had successful attempts at reading the W7 calculator and it went fine, tried some different while infinite loops etc

    The address is wrong, but using CE to find it for each new instance of Calculator and update it in the code works perfectly, any ideas for a nicer way to do this? (the whole concept?)

    i know there are several mistakes, but for me its good enough if it works.
    Code:
    int main()
    {
    	using namespace std;
    	
    	int infLewp = 1;
    	
    	HWND handle = FindWindow(0,TEXT("Calculator"));
    	if(handle == 0)
    	{
    		cout << "Could not find Process! \n" << endl;
    	}
    	else
    	{
    		DWORD ID;
    		GetWindowThreadProcessId(handle,&ID);
    		HANDLE hProcess = OpenProcess( PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION , FALSE, ID);
    
    		if(!hProcess)
    		{
    			Beep(1000,1000);
    		}
    		else
    		{
    			int buffer;
    			while (infLewp == 1) {
    				if (ReadProcessMemory(hProcess,(void*)0x0030CD6C,&buffer,4,NULL))
    				{
    					cout << "Value is : " << buffer << "\n";
    					while (buffer >= 2001) {
    						Beep(500,800);
    						int infLewp = 1;
    						
    					}
    
    					while (buffer <= 2000) {
    						Beep(14000,250);
    						int infLewp = 1;
    					}
    					int infLewp = 1;
    					Sleep(5);
    				}
    				else
    				{
    					cout << "Cant read address! \n ";
    					Sleep(500);
    					int infLewp = 1;
    				}
    			}
    		}
    		CloseHandle(hProcess);
    		int c;
    		printf( "\nPress ENTER to Install Virus..." );
    		fflush( stdout );
    		do c = getchar(); while ((c != '\n') && (c != EOF));
    	}
    }
    " Spy sappin mah sentry! "

    [C++ Help] Memory Reading
  2. #2
    snigelmannen's Avatar Member
    Reputation
    27
    Join Date
    Jul 2007
    Posts
    318
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in before flame/l2google, ive spent 2 days searching google for a basic readprocessmemory tut/guide, i cant find shit, if you know off any or got a working solution please share it its more then welcome!
    " Spy sappin mah sentry! "

Similar Threads

  1. need startup help with memory reading (C++, ReadProcessMemory)
    By sixpounder in forum WoW Memory Editing
    Replies: 13
    Last Post: 03-13-2011, 09:43 AM
  2. [C#]Need help with some memory reading
    By jazerix in forum Programming
    Replies: 1
    Last Post: 10-29-2010, 09:49 AM
  3. [C#/CE help] Need help with memory reading
    By dididii in forum Programming
    Replies: 0
    Last Post: 10-07-2010, 12:26 PM
  4. Replies: 1
    Last Post: 07-23-2009, 01:17 PM
  5. Memory Reading Chat, w/ help from an Add-On
    By Vector0 in forum WoW Memory Editing
    Replies: 6
    Last Post: 05-08-2008, 10:00 AM
All times are GMT -5. The time now is 01:26 PM. 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