1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

7 Miss Godmode failed....

Discussion in 'Programming' started by King Virus, Aug 29, 2010.

  1. King Virus

    King Virus Banned Banned

    What's wrong with this script, I can't find it ._.

    Code (Text):
    1. //7 Miss Godmode--------------------------------------------------------------------------------------------------------
    2. #define jmp(frm, to) (int)(((int)to - (int)frm) - 5)
    3.    
    4. extern DWORD noKB;
    5. extern DWORD the7Misspointer;
    6. extern DWORD the7MissReturn;
    7.  
    8. DWORD the7MissAddy;
    9. DWORD c7miss;
    10. BYTE disable7Miss[5];
    11.  
    12. __declspec(naked) void __stdcall gm7Miss()
    13. {
    14.          __asm
    15.           {
    16.                 mov [ebp + 0x0c], 0x00//KB (Main)
    17.                 inc [c7miss + 0x32]
    18.                 cmp dword ptr [c7miss + 0x32], 0x07//Miss Amount
    19.                 jg miss7Godmode
    20.                 mov [ebp + 0x08], 0x00
    21.                 jmp  the7MissReturn
    22.  
    23.             miss7Godmode:
    24.               mov [c7miss + 0x32], 0x00
    25.               jmp the7MissReturn //(miss7Godmode + 5)
    26.           }
    27. }
    28.  
    29. void enable7miss()
    30. {
    31.           *(BYTE*)the7Misspointer = 0xe9; //jump
    32.           the7MissAddy = jmp(the7Misspointer, gm7Miss);
    33.           *(DWORD*)(the7Misspointer + 1) = the7MissAddy;
    34.           *(BYTE*)(noKB + 1) = 0x84; //no KB enable
    35. }
    36.  
    37. void Form1::checkBox1_CheckedChanged(System::Object^  sender, System::EventArgs^  e)
    38. {
    39.           if(this->checkBox1->Checked)
    40.           {
    41.               memcpy((void*)disable7Miss, (void*)the7Misspointer, 5);
    42.               enable7miss();
    43.           }
    44.           else //if not checked
    45.           {
    46.               memcpy((void*)the7Misspointer,disable7Miss, sizeof(disable7Miss));
    47.               *(BYTE*)(noKB + 1) = 0x85;
    48.           }
    49. }
    50.  
     
  2. [D.R.T]

    [D.R.T] (҂ `з´ ).︻╦̵̵̿╤── Coder Donor

    I have no publisher at this time to try.

    for NO KB You only need to do this


    Code (Text):
    1. __declspec(naked) void __stdcall gm7Miss()
    2. {
    3.          __asm
    4.           {
    5.                 mov [ebp +[COLOR="Red"] 0x10[/COLOR]], 0x00//KB (Main)
    6.                 inc [c7miss + 0x32]
    7.                 cmp dword ptr [c7miss + 0x32], 0x07//Miss Amount
    8.                 jg miss7Godmode
    9.                 mov [ebp + 0x08], 0x00
    10.                 jmp  the7MissReturn
    11.  
    12.             miss7Godmode:
    13.               mov [c7miss + 0x32], 0x00
    14.               jmp the7MissReturn //(miss7Godmode + 5)
    15.           }
    16. }
     
  3. King Virus

    King Virus Banned Banned

    So that means I can scrap the part for the No KB? and only rename;

    Code (Text):
    1. mov [ebp + 0x0c]
    to

    Code (Text):
    1. mov [ebp + 0x10]
     
  4. fag

    fag Banned Banned

    The problem is with the way memory is allocated. In CE, memory is allocated until the next page boundary, so c7miss + 0x32 points to unused space (which can be used as space for a counter). In your case, c7miss+32 points to something inside gm7Miss().Also, your jumps are wrong, and the codecave was done improperly.

    Code (Text):
    1. //7 Miss Godmode--------------------------------------------------------------------------------------------------------
    2. #define jmp(frm, to) (int)(((int)to - (int)frm) - 5)
    3.    
    4. extern DWORD noKB; //assumed to be correct
    5. extern DWORD the7Misspointer; //assumed to be correct
    6. extern DWORD the7MissReturn; //assumed to be correct
    7.  
    8. DWORD the7MissAddy;
    9. DWORD c7miss;
    10. BYTE disable7Miss[5];
    11.  
    12. __declspec(naked) void gm7Miss()
    13. {
    14.          __asm
    15.           {
    16.                 mov [ebp + 0x0c], 0x00//KB (Main)
    17.                 inc [c7miss]
    18.                 cmp dword ptr [c7miss], 0x07//Miss Amount
    19.                 jg miss7Godmode
    20.         mov [ebp + 0x08], 0x00
    21.         jmp  [the7MissReturn]
    22.  
    23.         miss7Godmode:
    24.         mov [c7miss], 0x00
    25.         jmp [the7MissReturn] //(miss7Godmode + 5)
    26.           }
    27. }
    28.  
    29. void enable7miss()
    30. {
    31.     *(BYTE*)the7Misspointer = 0xe9; //jump
    32.     *(DWORD*)(the7Misspointer + 1) = jmp(the7Misspointer, gm7Miss);
    33.     *(BYTE*)(noKB + 1) = 0x84; //no KB enable
    34. }
    35.  
    36. void Form1::checkBox1_CheckedChanged(System::Object^  sender, System::EventArgs^  e)
    37. {
    38.           if(this->checkBox1->Checked)
    39.           {
    40.               memcpy((void*)disable7Miss, (void*)the7Misspointer, 5);
    41.               enable7miss();
    42.           }
    43.           else //if not checked
    44.           {
    45.               memcpy((void*)the7Misspointer,disable7Miss, sizeof(disable7Miss));
    46.               *(BYTE*)(noKB + 1) = 0x85;
    47.           }
    48. }
     
  5. King Virus

    King Virus Banned Banned

    Ah thanks Waffle - codecaves suck.
     

Share This Page