Page 9 of 12 FirstFirst ... 7891011 ... LastLast
Results 121 to 135 of 173
  1. #121
    saskuHOT's Avatar
    Join Date
    Nov 2011
    Gender
    female
    Posts
    6
    Reputation
    10
    Thanks
    0
    My Mood
    Blah
    Neeeah i rreallyy wana learn coding XD Thank you for showing this (:

  2. #122
    BobDaBuilderFoo's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    1
    Well This was really Helpful Seeing as I only learn from Sources with notes, So thank you.

    I have a problem though. Maybe I forgot something thats probably it. Here is my current Code Could you tell me whats wrong with it because I make solution inject and try to load CA but it fails.

    Plz Help And thanks

    Code:
    //includes all nessecary files to this source
    #include <windows.h>
    //End of includes
    //This is what you call globals.
    int HackOn = 0;
    //Define HackOn as a number, and that numebr is zero.
    int HackMax = 2;
    //Define HackMax as a number, and that number is ten.
    bool test = false;
    //Define test as a true/false. "Boolean"
    #define ADDR_SBULLLETS			0x37413976
    #define ADDR_RAPIDFIRE          0x37419A0E
    //The definition of ADDR_SBULLETS
    //End of Globals
    void WINAPIV PTC( const char* cmd )
    {
    	_asm
    	{
    	PUSH cmd ;This will push the command onto the stack, and thus becomes the parameter for the function called in the third instruction, due to its cdecl calling convention
    	MOV EAX, 0x00485FA0 ; Stores the address of the RCC function into the 32-bit Extended Accumulator Register
    	CALL EAX ; Calls the RCC function with the parameter of cmd (because it was PUSHed onto the stack above)
    	ADD ESP, 0x4 ; Clears 4 bytes from the stack, (1 param at 4 bytes on stack) which was not cleared automatically due to the cdecl calling convention
    	}
    }
    void Main (void)
    {
    	while(1)
    		//Makes an infinite loop. One that doesn't end.
    	{
    		if(GetAsyncKeyState(VK_NUMPAD1)&1)
    			//When Numpad1 Gets Pressed
    		{
    			HackOn ++;
    			//Adds +1 to the variable, "HackOn"
    			if(HackOn == HackMax) HackOn = 0;
    			//When Hackon Reaches the number HackMax, it resets HackOn to 0
    		}
    		if(test)
    			//if test is true
    		{
    			memcpy( (PBYTE)ADDR_RAPIDFIRE, (PBYTE)"\x33\xC0\x90", 3 );
    		}else{
    			//if test is not true
    			memcpy(  (PBYTE)ADDR_RAPIDFIRE, (PBYTE)"\x80\xBE\xE0\x00\x00\x00", 6 );
    			test = (!test);
    			//if test = false, turn to true and vice versa
    		}
    		if(GetAsyncKeyState(VK_NUMPAD2)&1)
    			//When Numpad2 Gets Pressed.
    		{
    			HackOn ++;
    			//Adds +1 to the variable, "HackOn"
    			if(HackOn == HackMax) HackOn = 0;
    			//When Hackon Reaches the number HackMax, it resets HackOn to 0
    		}
    		if(test)
    			//if test is true
    		{
    			memcpy( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x33\xC0\x90", 3 );
    			//look in globals for the definition of ADDR_SBULLETS
    			//Basically, it edits the bytes of the memory to "\x33\xC0\x90".
    			//The number at the end, tells you how many bytes you are editing.
    			//The first part, ADDR_SBULLETS Shows the code which part of the memory we are editing.
    		}else{
    			//if test is not true
    			memcpy(  (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
    			//look in globals for the definition of ADDR_SBULLETS
    			//Basically, it edits the bytes of the memory to "\x0F\x94\xC0".
    			//The number at the end, tells you how many bytes you are editing.
    			//The first part, ADDR_SBULLETS Shows the code which part of the memory we are editing.
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "SkelModelStencil 1" );
    		}else{
    			PTC("SkelModelStencil 0" );
    		}
    		if(GetAsyncKeyState(VK_NUMPAD4)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "FogEnable 0" );
    		}else{
    			PTC("FogEnable 1" );
    		}
    		if(GetAsyncKeyState(VK_NUMPAD5)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "ModelDebug_DrawSkeleton 1" );
    		}else{
    			PTC("ModelDebug_DrawSkeleton 0" );
    		}
    		if(GetAsyncKeyState(VK_NUMPAD6)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "PlayerGravity -800" );
    		}else{
    			PTC("PlayerGravity 0" ); //Need to find default 
    		}
    		if(GetAsyncKeyState(VK_NUMPAD7)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "WeaponSway 0.000000" );
    		}else{
    			PTC("WeaponSway 50.000000" ); //Need to find default 
    		}
    		if(GetAsyncKeyState(VK_NUMPAD8)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "ShowFps 1" );
    		}else{
    			PTC("ShowFps 0" );
    		}
    	}
    }
    DWORD WINAPI Lesson (LPVOID)
    // This is just a dummy function that will be the code activate the main thread
    {	
    	Main();
    	//Call the thread called Main
    	return 1;
    	//Finish of the thread.
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    // DllMain is an optional function for you to declare.
    // It serves as the entry point for any DLL
    {
    	DisableThreadLibraryCalls(hDll);
    	// Make a call to DisableThreadLibraryCalls with the hModule variable
    	// as its argument; Doing this is an optimization trick to prevent
    	// needless thread attach/detach messages from triggering further calls
    	// to our DllMain function.
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		//When this dll is injected into the process. this is what the dll is supposed to do.
    		// Null, in C Plus Plus, nothing. It is defined as 0
    		CreateThread(NULL, NULL, Lesson, NULL, NULL, NULL);
    		//It creates the thread called "Lesson" which is defined a few lines up. DWORD WINAPI Lesson (LPVOID)
    	}
    return TRUE;
    // Although the return value doesn't actually matter. You return the value TRUE or FALSE indicatinng success or failure.
    
    }

  3. #123
    megatoasterman's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Somewhere
    Posts
    5
    Reputation
    10
    Thanks
    0
    My Mood
    Aggressive
    Still confused on what to put. I'm such a nub :O

  4. #124
    MillitaryDragon's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Arkansas, US
    Posts
    31
    Reputation
    10
    Thanks
    29
    My Mood
    Inspired
    This might be an obvious answer I do not know however, I am still learning!
    How do people find addresses?

  5. #125
    EasyHackerV1.2's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    1
    ok after buil soulution what else do u do?

  6. #126
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    EDIT: I put it in the header section in a header file I am such a dumbie. Now I put it in a (*.cpp) file and in the source section and it worked. Thanks for the epic tut!
    Last edited by Trollaux; 12-04-2011 at 12:19 PM.
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  7. #127
    OBrozz's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    819
    Reputation
    65
    Thanks
    813
    This will not work. It's leeched proof you need to add soemthing. I will post a working Flameswor10 not noob proof later!

  8. #128
    NSixx's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    244
    Reputation
    12
    Thanks
    246
    My Mood
    Amused
    Quote Originally Posted by BobDaBuilderFoo View Post
    Well This was really Helpful Seeing as I only learn from Sources with notes, So thank you.

    I have a problem though. Maybe I forgot something thats probably it. Here is my current Code Could you tell me whats wrong with it because I make solution inject and try to load CA but it fails.

    Plz Help And thanks

    Code:
    //includes all nessecary files to this source
    #include <windows.h>
    //End of includes
    //This is what you call globals.
    int HackOn = 0;
    //Define HackOn as a number, and that numebr is zero.
    int HackMax = 2;
    //Define HackMax as a number, and that number is ten.
    bool test = false;
    //Define test as a true/false. "Boolean"
    #define ADDR_SBULLLETS			0x37413976
    #define ADDR_RAPIDFIRE          0x37419A0E
    //The definition of ADDR_SBULLETS
    //End of Globals
    void WINAPIV PTC( const char* cmd )
    {
    	_asm
    	{
    	PUSH cmd ;This will push the command onto the stack, and thus becomes the parameter for the function called in the third instruction, due to its cdecl calling convention
    	MOV EAX, 0x00485FA0 ; Stores the address of the RCC function into the 32-bit Extended Accumulator Register
    	CALL EAX ; Calls the RCC function with the parameter of cmd (because it was PUSHed onto the stack above)
    	ADD ESP, 0x4 ; Clears 4 bytes from the stack, (1 param at 4 bytes on stack) which was not cleared automatically due to the cdecl calling convention
    	}
    }
    void Main (void)
    {
    	while(1)
    		//Makes an infinite loop. One that doesn't end.
    	{
    		if(GetAsyncKeyState(VK_NUMPAD1)&1)
    			//When Numpad1 Gets Pressed
    		{
    			HackOn ++;
    			//Adds +1 to the variable, "HackOn"
    			if(HackOn == HackMax) HackOn = 0;
    			//When Hackon Reaches the number HackMax, it resets HackOn to 0
    		}
    		if(test)
    			//if test is true
    		{
    			memcpy( (PBYTE)ADDR_RAPIDFIRE, (PBYTE)"\x33\xC0\x90", 3 );
    		}else{
    			//if test is not true
    			memcpy(  (PBYTE)ADDR_RAPIDFIRE, (PBYTE)"\x80\xBE\xE0\x00\x00\x00", 6 );
    			test = (!test);
    			//if test = false, turn to true and vice versa
    		}
    		if(GetAsyncKeyState(VK_NUMPAD2)&1)
    			//When Numpad2 Gets Pressed.
    		{
    			HackOn ++;
    			//Adds +1 to the variable, "HackOn"
    			if(HackOn == HackMax) HackOn = 0;
    			//When Hackon Reaches the number HackMax, it resets HackOn to 0
    		}
    		if(test)
    			//if test is true
    		{
    			memcpy( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x33\xC0\x90", 3 );
    			//look in globals for the definition of ADDR_SBULLETS
    			//Basically, it edits the bytes of the memory to "\x33\xC0\x90".
    			//The number at the end, tells you how many bytes you are editing.
    			//The first part, ADDR_SBULLETS Shows the code which part of the memory we are editing.
    		}else{
    			//if test is not true
    			memcpy(  (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
    			//look in globals for the definition of ADDR_SBULLETS
    			//Basically, it edits the bytes of the memory to "\x0F\x94\xC0".
    			//The number at the end, tells you how many bytes you are editing.
    			//The first part, ADDR_SBULLETS Shows the code which part of the memory we are editing.
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "SkelModelStencil 1" );
    		}else{
    			PTC("SkelModelStencil 0" );
    		}
    		if(GetAsyncKeyState(VK_NUMPAD4)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "FogEnable 0" );
    		}else{
    			PTC("FogEnable 1" );
    		}
    		if(GetAsyncKeyState(VK_NUMPAD5)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "ModelDebug_DrawSkeleton 1" );
    		}else{
    			PTC("ModelDebug_DrawSkeleton 0" );
    		}
    		if(GetAsyncKeyState(VK_NUMPAD6)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "PlayerGravity -800" );
    		}else{
    			PTC("PlayerGravity 0" ); //Need to find default 
    		}
    		if(GetAsyncKeyState(VK_NUMPAD7)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "WeaponSway 0.000000" );
    		}else{
    			PTC("WeaponSway 50.000000" ); //Need to find default 
    		}
    		if(GetAsyncKeyState(VK_NUMPAD8)&1)
    		{
    				HackOn ++;
    				if(HackOn == HackMax) HackOn = 0;
    		}
    		if(test)
    		{
    			PTC( "ShowFps 1" );
    		}else{
    			PTC("ShowFps 0" );
    		}
    	}
    }
    DWORD WINAPI Lesson (LPVOID)
    // This is just a dummy function that will be the code activate the main thread
    {	
    	Main();
    	//Call the thread called Main
    	return 1;
    	//Finish of the thread.
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    // DllMain is an optional function for you to declare.
    // It serves as the entry point for any DLL
    {
    	DisableThreadLibraryCalls(hDll);
    	// Make a call to DisableThreadLibraryCalls with the hModule variable
    	// as its argument; Doing this is an optimization trick to prevent
    	// needless thread attach/detach messages from triggering further calls
    	// to our DllMain function.
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		//When this dll is injected into the process. this is what the dll is supposed to do.
    		// Null, in C Plus Plus, nothing. It is defined as 0
    		CreateThread(NULL, NULL, Lesson, NULL, NULL, NULL);
    		//It creates the thread called "Lesson" which is defined a few lines up. DWORD WINAPI Lesson (LPVOID)
    	}
    return TRUE;
    // Although the return value doesn't actually matter. You return the value TRUE or FALSE indicatinng success or failure.
    
    }
    code is wrong, you cant get any ptc in there
    If we don't end war, war will end us.

  9. #129
    UnderAmour's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    466
    Reputation
    40
    Thanks
    31
    My Mood
    Aggressive
    Its leeched >.>

  10. #130
    [SMA] Paradise`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB
    Posts
    8,922
    Reputation
    1781
    Thanks
    3,049
    My Mood
    Amazed
    Quote Originally Posted by UnderAmour View Post
    Its leeched >.>
    You make me laugh..

  11. #131
    UnderAmour's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    466
    Reputation
    40
    Thanks
    31
    My Mood
    Aggressive
    Why thank you...

  12. #132
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    Quote Originally Posted by UnderAmour View Post
    Its leeched >.>
    You're an idiot .
    I coded, commented and explained all this.

    Check all timestamps on EVERY forum.
    I posted it first
    No I do not make game hacks anymore, please stop asking.

  13. The Following User Says Thank You to flameswor10 For This Useful Post:

    OBrozz (12-08-2011)

  14. #133
    UnderAmour's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    466
    Reputation
    40
    Thanks
    31
    My Mood
    Aggressive
    I know you made it first, he leeched it off of you.. or someone did onto another site..

  15. #134
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    Quote Originally Posted by UnderAmour View Post
    I know you made it first, he leeched it off of you.. or someone did onto another site..
    Well the words 'It's Leeched' gives it a whole different meaning
    No I do not make game hacks anymore, please stop asking.

  16. #135
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    493
    Reputation
    104
    Thanks
    629
    Quote Originally Posted by UnderAmour View Post
    I know you made it first, he leeched it off of you.. or someone did onto another site..
    In the original post, you were CLEARLY accusing him of leeching it LOL

    Oh no! Vortex is gay!

Page 9 of 12 FirstFirst ... 7891011 ... LastLast