Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 38
  1. #16
    serpentine's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    In your moms bed
    Posts
    1,623
    Reputation
    22
    Thanks
    176
    Here try this, tell me if it works:

    Code:
    #include <windows.h>
    
    int main()
    {
    	byte NOP[]={0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
    
    	HWND hWnd = FindWindow(0, "Call of Juarez: Bound in Blood");  
    	if(hWnd == 0) {
    		MessageBox(0, "Error cannot find window.", "Error", MB_OK|MB_ICONERROR);
    	} else {
    		DWORD proccess_ID;
    		GetWindowThreadProcessId(hWnd, &proccess_ID);
    		HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
    		if(hWnd == 0){
    			MessageBox(0, "Error cannot find window.", "Error", MB_OK|MB_ICONERROR);
    		} else {
    			DWORD proccess_ID;
    			GetWindowThreadProcessId(hWnd, &proccess_ID);
    			HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
    			if(!hProcess){
    				MessageBox(0, "Could not open the process!", "Error!", MB_OK|MB_ICONERROR);
    			} else {
    				if(WriteProcessMemory(hProcess, (LPVOID)0x008A5FD8, NOP, 6, NULL))
    					MessageBox(0, "Success!", "Not An Error!", MB_OK|MB_ICONERROR);
    			}
    		}
    	}
    	return 0;
    }
    [IMG]https://i306.photobucke*****m/albums/nn265/chugsweet23/Reverb.png[/IMG]


    Bans: 1337

    .:Gifts:.

    Johhny 3 Tears: [x] [x]

  2. #17
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by serpentine View Post
    Here try this, tell me if it works:

    Code:
    #include <windows.h>
    
    int main()
    {
    	byte NOP[]={0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
    
    	HWND hWnd = FindWindow(0, "Call of Juarez: Bound in Blood");  
    	if(hWnd == 0) {
    		MessageBox(0, "Error cannot find window.", "Error", MB_OK|MB_ICONERROR);
    	} else {
    		DWORD proccess_ID;
    		GetWindowThreadProcessId(hWnd, &proccess_ID);
    		HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
    		if(hWnd == 0){
    			MessageBox(0, "Error cannot find window.", "Error", MB_OK|MB_ICONERROR);
    		} else {
    			DWORD proccess_ID;
    			GetWindowThreadProcessId(hWnd, &proccess_ID);
    			HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
    			if(!hProcess){
    				MessageBox(0, "Could not open the process!", "Error!", MB_OK|MB_ICONERROR);
    			} else {
    				if(WriteProcessMemory(hProcess, (LPVOID)0x008A5FD8, NOP, 6, NULL))
    					MessageBox(0, "Success!", "Not An Error!", MB_OK|MB_ICONERROR);
    			}
    		}
    	}
    	return 0;
    }
    Yes this code works, it compiles, and then I get an error, as I should, because I didn't bother to open up your game :P

  3. #18
    serpentine's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    In your moms bed
    Posts
    1,623
    Reputation
    22
    Thanks
    176
    OFC It compiles. The problem we were having is changing the address and making it stay.
    [IMG]https://i306.photobucke*****m/albums/nn265/chugsweet23/Reverb.png[/IMG]


    Bans: 1337

    .:Gifts:.

    Johhny 3 Tears: [x] [x]

  4. #19
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by serpentine View Post
    OFC It compiles. The problem we were having is changing the address and making it stay.
    Must I install something to run this game?

    EDIT: Found the game, got it up, and yes it works. I added a hotkey and some text. To make it work, you must trap the WriteProcessMemory function in a while(true){//Code...} Loop...
    Last edited by mwb1234; 06-13-2010 at 07:49 AM.

  5. #20
    serpentine's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    In your moms bed
    Posts
    1,623
    Reputation
    22
    Thanks
    176
    So that makes your ammo stay at 6? Is it laggy? =/
    [IMG]https://i306.photobucke*****m/albums/nn265/chugsweet23/Reverb.png[/IMG]


    Bans: 1337

    .:Gifts:.

    Johhny 3 Tears: [x] [x]

  6. #21
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by serpentine View Post
    So that makes your ammo stay at 6? Is it laggy? =/
    I trapped it like this. And yes it does
    [php]
    while(true){
    //WriteProcessMemory Function...
    Sleep(50);
    }
    [/php]
    Sleep(50) makes it wait 50 milliseconds before NOP'ing your ammo again

  7. The Following User Says Thank You to mwb1234 For This Useful Post:

    spwn (06-14-2010)

  8. #22
    serpentine's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    In your moms bed
    Posts
    1,623
    Reputation
    22
    Thanks
    176
    It's not laggy?
    [IMG]https://i306.photobucke*****m/albums/nn265/chugsweet23/Reverb.png[/IMG]


    Bans: 1337

    .:Gifts:.

    Johhny 3 Tears: [x] [x]

  9. #23
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by serpentine View Post
    It's not laggy?
    No it does NOT LAG. And YES it does work... but you need to trap it in a while(true) infinite loop to make it work, and you need to use Sleep(50) to make it not lag

  10. #24
    spwn's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    2
    My Mood
    Amused
    Thanks, will try very soon, got work tomorrow so later
    [img]https://*******.com/i16/3bf645.jpg[/img]
    I don't believe in luck...

  11. #25
    serpentine's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    In your moms bed
    Posts
    1,623
    Reputation
    22
    Thanks
    176
    Damn, stupid I didn't see it. :'(
    [IMG]https://i306.photobucke*****m/albums/nn265/chugsweet23/Reverb.png[/IMG]


    Bans: 1337

    .:Gifts:.

    Johhny 3 Tears: [x] [x]

  12. #26
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by serpentine View Post
    Damn, stupid I didn't see it. :'(
    NP.
    I like the hack though, I am using it right now

  13. #27
    spwn's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    2
    My Mood
    Amused
    Quote Originally Posted by mwb1234 View Post
    NP.
    I like the hack though, I am using it right now
    Also thanks to you then, now it doesn't lag at all (it did with an infinite loop without pause), and yes it worked, the reason why it didn't before was because i might have had the wrong code, so i tried for my Assassin's Creed 2 (money hack is easy, throw money check for decreased values )

    Anyway, i tried it, NOP'd the Assassin's Creed memory and tried without cheat engine, only my memory code and my c++ hack and it worked.

    So thanks to all of you who tough me new things and, you might see me here again, since other c++ forums take 9 hours to respond.

    +rep to all of you (dunno if that's on this forum and how that exactly works but you all deserve it)
    [img]https://*******.com/i16/3bf645.jpg[/img]
    I don't believe in luck...

  14. #28
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Good to hear.
    Ah we-a blaze the fyah, make it bun dem!

  15. #29
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    I was glad I could help, PM me if you need anything else

  16. #30
    serpentine's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    In your moms bed
    Posts
    1,623
    Reputation
    22
    Thanks
    176
    I should have known stupid C++ would only NOP it once. Nice job.
    [IMG]https://i306.photobucke*****m/albums/nn265/chugsweet23/Reverb.png[/IMG]


    Bans: 1337

    .:Gifts:.

    Johhny 3 Tears: [x] [x]

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. VMWARE Help![SOLVED]
    By Sour Diesel in forum CrossFire Help
    Replies: 2
    Last Post: 08-07-2010, 10:13 AM
  2. i dont have report file on crossfire help[SOLVED]
    By t4rg3t in forum CrossFire Help
    Replies: 4
    Last Post: 08-06-2010, 02:48 AM
  3. Uhhhh...Help[SOLVED]
    By Salsama in forum CrossFire Help
    Replies: 1
    Last Post: 08-05-2010, 05:08 PM
  4. Help?[SOLVED]
    By iHollow in forum CrossFire Help
    Replies: 4
    Last Post: 07-25-2010, 10:01 AM
  5. [Help][Solved]Decompile
    By omghacker in forum Visual Basic Programming
    Replies: 7
    Last Post: 07-20-2010, 11:07 PM