Results 1 to 3 of 3
  1. #1
    tdct's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    Somewhere
    Posts
    1,462
    Reputation
    105
    Thanks
    391
    My Mood
    Devilish

    Question Problem with memory editing.

    I always have run into trouble when I try to mem edit using values stored in an array, if someone could point me in the right direction it would be wonderful:
    (I'm not posting the base, but it works so that's not an issue) Also there are allot of bytes, but I just copy and pasted from cheat engine and made an autohotkey script to add the 0x and ','.



    Code:
    DWORD WINAPI MAIN(LPVOID lpParam){
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    
    BYTE main[436];
    BYTE noobAcc [436] = { n/a };
    DWORD account = CShell + (DWORD)0xFFFFFF; //that's not the actual offset, I just didn't feel like it being leeched
    
    while(exit == false);
    {
    
      if(GetAsyncKeyState(VK_F5))
      {
    	 
    	 DWORD j=0;
    	 for(j=0; j < 436; j++)
    	 {
    		main[j] = *(BYTE*)(account+j);
    	 }
    	 Sleep(100);
    	 for(j=0; j < 436; j++)
    	 {
    		 *(BYTE*)(account+j) = noobAcc[j];
    	 }
    	 Sleep(1000); //10 second sleep to go back to server select
    	 for(j=0; j < 436; j++)
    	 {
    		 *(DWORD*)(account+j) = main[j];
    	 }
      }
    
     return 0;
    }
    }
    Last edited by tdct; 07-14-2011 at 06:33 PM.

  2. #2
    Fovea's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    325
    Reputation
    101
    Thanks
    411
    My Mood
    Amused
    • There's this wonderful function called memcpy.
    • 1000 milliseconds is not 10 seconds.
    • Your return statement is within the while loop.
    Last edited by Fovea; 07-14-2011 at 03:59 PM.

  3. #3
    tdct's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    Somewhere
    Posts
    1,462
    Reputation
    105
    Thanks
    391
    My Mood
    Devilish
    Quote Originally Posted by Fovea View Post
    • There's this wonderful function called memcpy.
    • 1000 milliseconds is not 10 seconds.
    • Your return statement is within the while loop.
    @Fovea I edited it from the post box so I wouldn't put too much, so if things are a bit off that's probably why. I've heard of memcpy, I'll look into it, thanks. And thanks I didn't realize I left off a 0

    Edit: works now, thanks
    Last edited by tdct; 07-14-2011 at 07:13 PM.

Similar Threads

  1. Problem with texture editing
    By okiba93 in forum Combat Arms Mod Discussion
    Replies: 1
    Last Post: 08-15-2010, 07:32 AM
  2. Problem with trainers mades for CE, help me pls
    By juanitobalde in forum General Game Hacking
    Replies: 0
    Last Post: 04-24-2007, 04:31 AM
  3. Problem With The New Pb Hw Ban Spoofer!
    By naomelembro14 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 03-16-2007, 07:29 AM
  4. Memory editing Last chaos?
    By Darkendnox in forum General Game Hacking
    Replies: 3
    Last Post: 12-09-2006, 08:25 AM
  5. Problem(with login)
    By 22061988 in forum WarRock - International Hacks
    Replies: 3
    Last Post: 11-01-2006, 12:07 AM