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

[Help] No Breath.

Discussion in 'Programming' started by Twister, Sep 7, 2010.

  1. Twister

    Twister Well-Known Member

    So I managed to get it to compile without any errors but now it just wont have any effect?
    Code (Text):
    1. DWORD NoBreathAddy1 = 0x004E6D0C;
    2. BYTE EnableNoBreath1[] = {0x7E};
    3. BYTE DisableNoBreath1[] = {0xEB};
    4. DWORD NoBreathAddy2 = 0x0051F694;
    5. BYTE EnableNoBreath2[] = {0x7E};
    6. BYTE DisableNoBreath2[] = {0xEB};
    7. DWORD NoBreathAddy3 = 0x0096740D;
    8. BYTE EnableNoBreath3[] = {0x7E};
    9. BYTE DisableNoBreath3[] = {0xEB};
    10. DWORD NoBreathAddy4 = 0x0051F6FA;
    11. BYTE EnableNoBreath4[] = {0x50};
    12. BYTE DisableNoBreath4[] = {0x55};
    13. DWORD NoBreathAddy5 = 0x0096750C;
    14. BYTE EnableNoBreath5[] = {0x50};
    15. BYTE DisableNoBreath5[] = {0x55};
    16.  
    17. void MainForm::checkBox3_CheckedChanged(System::Object^  sender, System::EventArgs^  e)
    18. {
    19.     if(this->checkBox3->Checked)
    20.     {
    21.         memcpy((void*)NoBreathAddy1, (void*)EnableNoBreath1, sizeof(EnableNoBreath1));
    22.         memcpy((void*)NoBreathAddy2, (void*)EnableNoBreath2, sizeof(EnableNoBreath2));
    23.         memcpy((void*)NoBreathAddy3, (void*)EnableNoBreath3, sizeof(EnableNoBreath3));
    24.         memcpy((void*)NoBreathAddy4, (void*)EnableNoBreath4, sizeof(EnableNoBreath4));
    25.         memcpy((void*)NoBreathAddy5, (void*)EnableNoBreath5, sizeof(EnableNoBreath5));
    26.     }
    27.     else
    28.     {
    29.         memcpy((void*)NoBreathAddy1, (void*)DisableNoBreath1, sizeof(DisableNoBreath1));
    30.         memcpy((void*)NoBreathAddy2, (void*)DisableNoBreath2, sizeof(DisableNoBreath2));
    31.         memcpy((void*)NoBreathAddy3, (void*)DisableNoBreath3, sizeof(DisableNoBreath3));
    32.         memcpy((void*)NoBreathAddy4, (void*)DisableNoBreath4, sizeof(DisableNoBreath4));
    33.         memcpy((void*)NoBreathAddy5, (void*)DisableNoBreath5, sizeof(DisableNoBreath5));
    34.     }
    35. }
     
  2. David...

    David... Banned Banned

    Code (Text):
    1.  
    2. [enable]
    3. 004E6D0C:
    4. db eb
    5. 0051F694:
    6. db eb
    7. 0096740D:
    8. db eb
    9. 0051F6FA:
    10. db 55
    11. 0096750C:
    12. db 55
    13.  
    14. [disable]
    15. 004E6D0C:
    16. db 7e
    17. 0051F694:
    18. db 7e
    19. 0096740D:
    20. db 7e
    21. 0051F6FA:
    22. db 50
    23. 0096750C:
    24. db 50
    25.  
    Take a look at
    Code (Text):
    1. BYTE EnableNoBreath1[] = {0x7E};
    Then at
    Code (Text):
    1.  
    2. [enable]
    3. 004E6D0C:
    4. db eb
     
  3. Danny1994

    Danny1994 Likes to contribute Coder

    This is the shit i've used in my Kitterz based trainer :
    void NOBREATHOn(HWND hWnd)
    Code (Text):
    1. {
    2.     *(WORD*) dwNoBreath1 = 0x11eb;
    3.     *(WORD*) dwNoBreath2 = 0x11eb;
    4.     *(WORD*) dwNoBreath3 = 0x14eb;
    5.     *(WORD*) dwNoBreath4 = 0x55;
    6.     *(WORD*) dwNoBreath5 = 0x55;
    7. }
    8. void NOBREATHOff()
    9. {
    10.     *(WORD*) dwNoBreath1 = 0x117e;
    11.     *(WORD*) dwNoBreath2 = 0x117e;
    12.     *(WORD*) dwNoBreath3 = 0x147e;
    13.     *(WORD*) dwNoBreath4 = 0x50;
    14.     *(WORD*) dwNoBreath5 = 0x50;
    15. }
     
  4. David...

    David... Banned Banned

    My point is, you switched around the enable/disable bytes.
     
  5. Danny1994

    Danny1994 Likes to contribute Coder

    Thats true, if it's like :
    Code (Text):
    1. *(WORD*) dwNoBreath1 = 0x11eb;
    its actually "EB 11"

    Dunnow, otherwise it didn't worked.
     
  6. Twister

    Twister Well-Known Member

    Lal, I fail.
    Thanks for pointing me to it, Davheed, Ill check that next time first. :x
     
  7. spunge

    spunge Well-Known Member Retired

    Protip: 0x50 and 0x55 are not words.
     
  8. DarkSpace

    DarkSpace Well-Known Member Coder

    Code (Text):
    1.  
    2. [enable]
    3. 004E6D0C:
    4. db eb
    5. 0051F694:
    6. db eb
    7. 0096740D:
    8. db eb
    9. 0051F6FA:
    10. db 55
    11. 0096750C:
    12. db 55
    13.  
    14. [disable]
    15. 004E6D0C:
    16. db 7e
    17. 0051F694:
    18. db 7e
    19. 0096740D:
    20. db 7e
    21. 0051F6FA:
    22. db 50
    23. 0096750C:
    24. db 50
    25.  
    here you can see that only 1 byte changes between enable and disable.
    to write something like this use this method

    Code (Text):
    1.  
    2. DWORD NoBreathAddy1 = 0x004E6D0C;
    3. DWORD NoBreathAddy2 = 0x0051F694;
    4. DWORD NoBreathAddy3 = 0x0096740D;
    5. DWORD NoBreathAddy4 = 0x0051F6FA;
    6. DWORD NoBreathAddy5 = 0x0096750C;
    7.  
    8. void MainForm::checkBox3_CheckedChanged(System::Object^  sender, System::EventArgs^  e)
    9. {
    10.     if(this->checkBox3->Checked)
    11.     {
    12.          *(BYTE*)NoBreathAddy1 = 0xeb;
    13.          *(BYTE*)NoBreathAddy2 = 0xeb;
    14.          *(BYTE*)NoBreathAddy3 = 0xeb;
    15.          *(BYTE*)NoBreathAddy4 = 0x55;
    16.          *(BYTE*)NoBreathAddy5 = 0x55;
    17.     }
    18.     else
    19.     {
    20.          *(BYTE*)NoBreathAddy1 = 0x7e;
    21.          *(BYTE*)NoBreathAddy2 = 0x7e;
    22.          *(BYTE*)NoBreathAddy3 = 0x7e;
    23.          *(BYTE*)NoBreathAddy4 = 0x50;
    24.          *(BYTE*)NoBreathAddy5 = 0x50;
    25.     }
    26. }
    27.  
    Reason to do it this way is because its much shorter than memcpy

    BYTE will only affect 1 byte of the addy.
    WORD will affect 2 bytes of the addy
    DWORD will affect 4 bytes of the addy.

    Hope that helps
     
  9. Danny1994

    Danny1994 Likes to contribute Coder

    That doesn't care in this case.
    The *(WORD*) will only effect the jmp (EB).
    The 11 doesn't change.

    QWORD= 8 Bytes ?
     
  10. spunge

    spunge Well-Known Member Retired

    You're an idiot. What it will really write is 55 00 or 50 00. I know what I'm talking about. Furthermore, you aren't even overwriting a jump in those cases.
     

Share This Page