Results 1 to 4 of 4
  1. #1
    Neokil's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    0

    WriteProcessMemory doesn't work

    Hey guys, Ive got a problem, I want to have noRecoil and noFlash so I opened the process like this
    Code:
    mw2_hwnd = FindWindow(NULL,L"AlterIWNet");
    GetWindowThreadProcessId(mw2_hwnd,&mw2_pid);
    mw2_process_w = OpenProcess(PROCESS_VM_WRITE,false,mw2_pid);
    then wrote the new hexcode like this
    Code:
    #define ADDR_FLASH	0x00457310
    BYTE NoFlash[6] = {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3};
    WriteProcessMemory(mw2_process_w,(PVOID)(ADDR_FLASH),&NoFlash,6,NULL);
    but in game nothing happens.
    What do I have to do?

    Greetings
    NEokil
    Last edited by Neokil; 05-23-2011 at 10:20 AM.

  2. #2
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,643
    Reputation
    748
    Thanks
    1,818
    My Mood
    Doh
    Quote Originally Posted by Neokil View Post
    Hey guys, Ive got a problem, I want to have noRecoil and noFlash so I opened the process like this
    Code:
    mw2_hwnd = FindWindow(NULL,L"AlterIWNet");
    GetWindowThreadProcessId(mw2_hwnd,&mw2_pid);
    mw2_process_w = OpenProcess(PROCESS_VM_WRITE,false,mw2_pid);
    then wrote the new hexcode like this
    Code:
    #define ADDR_FLASH	0x00457310
    BYTE NoFlash[6] = {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3};
    WriteProcessMemory(mw2_process_w,(PVOID)(ADDR_FLASH),&NoFlash,6,NULL);
    but in game nothing happens.
    What do I have to do?

    Greetings
    NEokil
    Code:
    mw2_hwnd = FindWindowA(NULL, "alterIWnet");
    If nothing happens then try to call the VirtualProtectEx(), maybe the address is write protected.
    Last edited by ♪~ ᕕ(ᐛ)ᕗ; 05-23-2011 at 10:55 AM.
    Quote Originally Posted by KING View Post
    Stop FACKING SUMMONING ME TO THESE FUCKTARDS CONVOS.
    DAFUQ IS DIS FACKING SHYT.
    SHYT MAKES NO SENSE.

    On a side note. You fags are fucking hatting.
    You guys don't know shyt about spam.
    Danny would post on everysingle post every fucking hour, you couldnt tell which post was recent or anything. It was a fuck fest, he wouldnt have shyt to say....cares he posted like a fag he is.

    Josh made mutiple threads a day. And not just G, everywhere. That why everyone liked that dumb nikka.

    @Richard Nixon -Are you Endrat? @REAP @Digits2012 @Ghost -Son...I am dissapoint @Sjoerd -SMD @Canadian @FrosK -Dumb name is dumb @Nebulaa @That_Kid -Man Up @The XXX Devil -Oh look another joker avatar-how original and neat

    The rest who I didn't mention comment....Suck my left nut....but not to hard...it hurts.

  3. #3
    Neokil's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    0
    ok,
    I dont know why but when I tried to get the HANDLE just before writing it worked...

  4. #4
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,643
    Reputation
    748
    Thanks
    1,818
    My Mood
    Doh
    Quote Originally Posted by Neokil View Post
    ok,
    I dont know why but when I tried to get the HANDLE just before writing it worked...
    What? Please explain better, also have you tried my solution too?
    Quote Originally Posted by KING View Post
    Stop FACKING SUMMONING ME TO THESE FUCKTARDS CONVOS.
    DAFUQ IS DIS FACKING SHYT.
    SHYT MAKES NO SENSE.

    On a side note. You fags are fucking hatting.
    You guys don't know shyt about spam.
    Danny would post on everysingle post every fucking hour, you couldnt tell which post was recent or anything. It was a fuck fest, he wouldnt have shyt to say....cares he posted like a fag he is.

    Josh made mutiple threads a day. And not just G, everywhere. That why everyone liked that dumb nikka.

    @Richard Nixon -Are you Endrat? @REAP @Digits2012 @Ghost -Son...I am dissapoint @Sjoerd -SMD @Canadian @FrosK -Dumb name is dumb @Nebulaa @That_Kid -Man Up @The XXX Devil -Oh look another joker avatar-how original and neat

    The rest who I didn't mention comment....Suck my left nut....but not to hard...it hurts.