Results 1 to 2 of 2
  1. #1
    Infection_X's Avatar
    Join Date
    Aug 2008
    Posts
    1
    Reputation
    10
    Thanks
    0

    Post [Request] Write/Read Memory Tutorial

    If it is possible, could somebody please either make a tutorial or post a link on how to write/read memory in vb6?

    -Infection_X

  2. #2
    VirusInfection's Avatar
    Join Date
    Aug 2008
    Posts
    12
    Reputation
    10
    Thanks
    3
    I dont know about visual basic.. but here is some c++ code
    It would be nice if somebody posted some code in vb cuz i would like to know how to do it also ;?

    Code:
    #include <windows.h>
    #include <iostream>
    using namespace std;
    void WriteMem(char* window, LPCVOID address, int value)
    
    
        {
        cout<< "Run cheat/hack after running the game for the cheat to work properly." << endl;
        cout<< "Code by VirusInfection." << endl;
    
     
        	HWND hWnd = FindWindow(0, window);
        	DWORD proc_id; 
        	GetWindowThreadProcessId(hWnd, &proc_id); 
        	HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id); 
        	BYTE newdata[]={value}; 
        	DWORD newdatasize = sizeof(newdata); 
        	WriteProcessMemory(hProcess, (LPVOID)address, &newdata, newdatasize, 0);
        	CloseHandle(hProcess); 
    }
    
    void ReadMem(char *window, LPCVOID dAddr)
    
    
        {
        	int tbuf;
        	HWND hWnd = FindWindow(0, window);
        	DWORD proc_id; 
        	GetWindowThreadProcessId(hWnd, &proc_id); 
        	HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id); 
        	ReadProcessMemory(hProcess, dAddr, &tbuf, 4, NULL);
        	cout<<tbuf;
    }
    
    int main()
    
    
        {
        	WriteMem("Engine",(LPCVOID)0x55D6A98, value here);
        	ReadMem("Engine", (LPCVOID)0x55D6A98);
        	system("PAUSE>NULL");
    }
    Note: This code is part of my private ca hack. The values have been changed but the addresses remain, so the user can put their "preferd" value in.
    Enjoy!
    Last edited by VirusInfection; 08-15-2008 at 06:25 PM. Reason: PU

Similar Threads

  1. [Help] Memory editing (Read/Write Process Memory)
    By wolfguardiann in forum Visual Basic Programming
    Replies: 31
    Last Post: 06-04-2011, 03:23 AM
  2. how to write/Read game memory with vb 2008
    By CodeHPro in forum Visual Basic Programming
    Replies: 33
    Last Post: 11-08-2009, 09:50 PM
  3. C++ Memory write/read functions?
    By Spoking in forum C++/C Programming
    Replies: 16
    Last Post: 08-07-2009, 12:52 PM
  4. Ventrilo Read Memory
    By Imperceptus in forum General Game Hacking
    Replies: 0
    Last Post: 04-13-2008, 05:27 AM
  5. [request] plz read
    By ragman1234 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 04-15-2007, 05:55 AM

Tags for this Thread