Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by D-Vid the DBag View Post


    Lolz. I don't give a shit if he steals anyone else's, but not my little buddy, CodeDemon's avatar. He BETTER not steal mine tho.
    I will take yours.

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

  2. #17
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Quote Originally Posted by CodeDemon View Post
    I was bored, pretty much it easily allows you to manage all your addresses.

    There are some things you can do to easily make this better(Get the original bytes for the addresses automatically), but hey its for the public

    Credits: mmbob, nubzgetskillz

    Code:
    /*===============================|
    |Simple MemoryMgr Class			 |
    |								 |
    |By CodeDemon					 |
    |Credits: mmbob, nubzgetskillz	 |
    |===============================*/
    #include <Windows.h>
    
    #define ON true
    #define OFF false
    #define ingamecheck 0x37829B4C
    
    struct memory{
    	char * name;
    	bool enabled;
    	int address;
    	int size;
    	char * original;
    	char * newbytes;
    };
    
    class MemoryMgr{
    	public:
    		memory mem[99]; //change 99 to however many addresses you have as to not allocate too much memory
    
    		void AddOffset(char * name, int address, char * original, char * newbytes , int size);
    		void UnPatchAll();
    		void PatchBytes(char * name, bool onoff);
    	private:
    		int adrcount;
    };
    
    void MemoryMgr::AddOffset(char * name, int address, char * original, char * newbytes, int size)
    {
    	mem[adrcount].address = address;
    	mem[adrcount].name = name;
    	mem[adrcount].size = size;
    	mem[adrcount].original = original;
    	mem[adrcount].newbytes = newbytes;
    	mem[adrcount].enabled = false;
    	adrcount++;
    }
    
    void MemoryMgr::UnPatchAll()
    {
    	for(int i = 0; i<(sizeof(mem)/sizeof(memory)); i++){
    		memcpy((LPVOID)mem[i].address,mem[i].original,mem[i].size);
    		mem[i].enabled = false;
    	}
    }
    
    
    void MemoryMgr::PatchBytes(char * name, bool onoff)
    {
    	for(int i = 0; i<(sizeof(mem)/sizeof(memory)); i++){
    		if(mem[i].name == name){
    			if(*(int*)ingamecheck == 1){
    				if(onoff == true){
    					memcpy((LPVOID)mem[i].address,mem[i].newbytes,mem[i].size);
    					mem[i].enabled = true;
    				} else {
    					memcpy((LPVOID)mem[i].address,mem[i].original,mem[i].size);
    					mem[i].enabled = false;
    				}
    			} else {
    				memcpy((LPVOID)mem[i].address,mem[i].original,mem[i].size);
    			}
    		}
    	}
    }
    How to use:

    Paste the code into a new header file.

    Create a new instance of the class, preferably where your DLL main function is, or where your hacks are. You can also extern it if that will be easier for you.
    Code:
    MemoryMgr mempatch
    In your DLL main, initiate the addresses, this is done, so that you dont initiate addresses more than once.

    Code:
    bool APIENTRY DllMain(HMODULE hMod, DWORD pReason, LPVOID lpReserved)
    {
    	if (pReason == DLL_PROCESS_ATTACH)
    	{
    
    		mempatch.AddOffset("NoReload", 0x374BB8F4, "\x0F\x84\xB1\x01\x00\x00", "\x90\x90\x90\x90\x90\x90", 6);
    		mempatch.AddOffset("SuperBullets", 0x374B65D6, "\x0F\x94\xC0", "\x90\x90\x90", 3);
    	}
    
    	return true;
    
    }
    Use:

    Code:
     mempatch.PatchBytes("HACKNAME",ON);
    or

    Code:
     mempatch.PatchBytes("HACKNAME",OFF);
    The function automatically checks if bytes can be patched(patches only if in game), and patches them accordingly.
    PrettySimple. Iused to use this with my hotkeys till i simplified it. Cuz I realized this wasn't really necessary for anything lol.

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  3. #18
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    Does the game status address still work? cause i d/c whenever i use it...



    Put this image in your signature if you support HTML5 development!

  4. #19
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Nice work =D

    When I saw the thread title I thought it was another CLR-like implementation. (As in, the memory management like gcnew etc)

  5. #20
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by freedompeace View Post
    Nice work =D

    When I saw the thread title I thought it was another CLR-like implementation. (As in, the memory management like gcnew etc)
    GTFO! haha you never on anymore Where are your hacks my viet bro!

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

  6. #21
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by Nubzgetkillz View Post
    GTFO! haha you never on anymore Where are your hacks my viet bro!
    he doesn't have the game so how will he make hacks?

  7. #22
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by ᴺᴼᴼᴮ View Post


    he doesn't have the game so how will he make hacks?
    He creates all his hacks without testing himself he has little mexican bitches doing it for him! hehe he gets kicked for high network latency.. stupid Australian connection

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

Page 2 of 2 FirstFirst 12