Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14

    Source Code For Hotkey - Would This Work?

    Hi, I was wondering if something like this would work. And if it wouldn't, what would prevent it from working:
    Code:
    #include <Windows.h>
    #include <iostream>
    #include <d3d9.h>
    
    #define FlyHack				0x379377B8
    #define GameStatus			0x3796392C
    
    bool Fly = false;
    DWORD * GameStatusAddy = (DWORD *) GameStatus;
    
    void TheHackLoop(){
    	while(true){
    		if(*(BYTE *) GameStatusAddy == 1){
    			DWORD * P = (DWORD *) FlyHack;
    			
    			// Check for toggle request
    			if(GetAsyncKeyState(VK_CONTROL) && GetAsyncKeyState(0X4D)){ // Control and M
    				Fly = !Fly;
    				if(Fly){ // fly turned on
    					Beep((DWORD) 528, (DWORD)500);
    					Sleep(75);
    					Beep((DWORD) 528, (DWORD)500);
    				}else{ // fly turned off
    					Beep((DWORD) 350, (DWORD)500);
    					*(float *) P = -800.00;
    				}
    			}
    
    			// check for fly request
    			if(Fly){
    				// check for up or down
    				long PreviousGravity = (LONG) P;
    				if(Fly && GetAsyncKeyState(VK_ADD)){ // up. Gravity += 50;
    					long NewGravity =  PreviousGravity + 50;
    					*(float *) P = (FLOAT) NewGravity;
    				}else if(Fly && GetAsyncKeyState(VK_SUBTRACT)){ // Down. Gravity -= 50;
    					long NewGravity =  PreviousGravity - 50;
    					*(float *) P = (FLOAT) NewGravity;
    				}
    			}
    		}
    		Sleep(75);
    	}
    }
    
    void LoadUp(){
    	while(true){
    		if(IsGameReady()){
    			break;	
    		}
    		Sleep(150);
    	}
    	TheHackLoop();
    }
    
    BOOL IsGameReady(){
    	DWORD YeahOrNah = (DWORD)GetModuleHandleA("cshell.dll");
    	if(YeahOrNah){ // Loaded
    		return TRUE;
    	}else{
    		return FALSE;
    	}
    }
    
    
    INT WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    	DisableThreadLibraryCalls(hModule);
    
    	if(dwReason == DLL_PROCESS_ATTACH)
    	{
          CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)LoadUp,NULL,NULL,NULL);
    	}
    	return 1;
    }
    Thank you in advance.

    Obviously the addresses need updated, but I wrote that about a week ago.

  2. #2
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    917
    Reputation
    32
    Thanks
    476
    My Mood
    Psychedelic
    Yes it will work, but it will be extremely glitchy and likely to crash after a short amount of time.

    ^Suck it!


  3. #3
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Skaterforeva1 View Post
    Yes it will work, but it will be extremely glitchy and likely to crash after a short amount of time.
    May I ask why?

    Additional Information: I asked flengo and he said no because it would require a detour. I asked fenix and he said hacks like this do not require detours.

  4. #4
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    The old PTC method required a hooked function because they had a really simple _ReturnAddress() Check in the function to prevent calling from other modules..
    This should work without a hook because your cahnging the variable directly

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  5. The Following User Says Thank You to Ch40zz-C0d3r For This Useful Post:

    lilghost8631 (12-22-2013)

  6. #5
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Ch40zz-C0d3r View Post
    The old PTC method required a hooked function because they had a really simple _ReturnAddress() Check in the function to prevent calling from other modules..
    This should work without a hook because your cahnging the variable directly
    First of all I just watched the video you posted of your game so far. That looks pretty awesome.
    Second I found some interesting stuff about SkelModelStencil, but I would love some help making sense of it. Would you be able to help by chance?

    Anywho, thank you for the clarification.

  7. #6
    Zuhrain's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Lux's heart
    Posts
    5,764
    Reputation
    810
    Thanks
    1,193
    My Mood
    Aggressive
    is that fly hack ??
    Subscribe my channel
    Its about League of Legends

    https://www.youtube.com/channel/UC3e...VUjViCRban4Axw

    I really appreciate if you guys subscribe


  8. #7
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Zuhrain View Post
    is that fly hack ??
    yeah just an adjustable speed version that uses beep to notify the user when it's on or off. The fly hack is not my goal. I'm trying to find information for knockback and chams.

  9. #8
    Zuhrain's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Lux's heart
    Posts
    5,764
    Reputation
    810
    Thanks
    1,193
    My Mood
    Aggressive
    Quote Originally Posted by lilghost8631 View Post
    yeah just an adjustable speed version that uses beep to notify the user when it's on or off. The fly hack is not my goal. I'm trying to find information for knockback and chams.
    wow.. how long its take to completely understand C++??
    Subscribe my channel
    Its about League of Legends

    https://www.youtube.com/channel/UC3e...VUjViCRban4Axw

    I really appreciate if you guys subscribe


  10. #9
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Zuhrain View Post


    wow.. how long its take to completely understand C++??
    5 minutes?
    I know Java, PHP, VB.net, a little LUA, a little C#, I've done a little with PERL, SQL, I know scheme lisp, batch, python and c++. So honestly since c++ is my most recent language, learning it was just learning a little bit of new syntax.
    Last edited by lilghost8631; 12-22-2013 at 06:56 PM.

  11. #10
    Zuhrain's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Lux's heart
    Posts
    5,764
    Reputation
    810
    Thanks
    1,193
    My Mood
    Aggressive
    Quote Originally Posted by lilghost8631 View Post
    5 minutes?
    I know Java, PHP, VB.net, a little LUA, a little C#, I've done a little with PERL, SQL, I know scheme lisp, batch, python and c++. So honestly since c++ is my most recent language, learning it was just learning a little bit of new syntax.
    what?!
    5 minutes?! how?
    Subscribe my channel
    Its about League of Legends

    https://www.youtube.com/channel/UC3e...VUjViCRban4Axw

    I really appreciate if you guys subscribe


  12. #11
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Zuhrain View Post


    what?!
    5 minutes?! how?
    I just explained. Once you know several languages, learning a new language like c++ is just learning new syntax.

  13. #12
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    917
    Reputation
    32
    Thanks
    476
    My Mood
    Psychedelic
    Quote Originally Posted by lilghost8631 View Post
    May I ask why?

    Additional Information: I asked flengo and he said no because it would require a detour. I asked fenix and he said hacks like this do not require detours.
    @Flengo come on. You out of all people should know this will work. I tested it after reading this and it worked. It was very glitchy and i was instantly teleported way into the sky but it worked.

    ^Suck it!


  14. #13
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,691
    Reputation
    3319
    Thanks
    11,105
    My Mood
    Happy
    Quote Originally Posted by Skaterforeva1 View Post
    @Flengo come on. You out of all people should know this will work. I tested it after reading this and it worked. It was very glitchy and i was instantly teleported way into the sky but it worked.
    It shouldn't work. It'll last for a very short time if anything. Telling from testing from long time.


    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  15. #14
    lilghost8631's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    14
    The fly was just a concept. The real goal here is chams which I think I just found the sig scan/pattern for (that was truly a hike). So, since I now (hopefully) have the pointer to the satellite chams, i should be able to just set the value to 1.0 and cham away.


    @Skaterforeva1 off topic: since you have bud in your sig, did you ever get any of that trainwreck strain that was making its way through manassas, gainesville and bristow?
    Last edited by lilghost8631; 12-22-2013 at 09:24 PM.

  16. #15
    Skaterforeva1's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Up your ass
    Posts
    917
    Reputation
    32
    Thanks
    476
    My Mood
    Psychedelic
    Quote Originally Posted by lilghost8631 View Post
    The fly was just a concept. The real goal here is chams which I think I just found the sig scan/pattern for (that was truly a hike). So, since I now (hopefully) have the pointer to the satellite chams, i should be able to just set the value to 1.0 and cham away.


    @Skaterforeva1 off topic: since you have bud in your sig, did you ever get any of that trainwreck strain that was making its way through manassas, gainesville and bristow?
    It will most likely crash shortely after time, you will need to detour and hook it for it to last a while.

    /off topic
    Nah I have been smoking some plants that my friend grows locally. I have around two pounds of sour d so I havent been buy any lately. I have been selling a lot though.

    ^Suck it!


Page 1 of 2 12 LastLast

Similar Threads

  1. [Help] Would this work and not be banned? Spawning items for all players on a server.
    By LulzCode in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 2
    Last Post: 10-15-2012, 02:55 AM
  2. [Request] Source Code for this addy
    By jojit_0024 in forum WarRock Philippines Hacks
    Replies: 2
    Last Post: 08-31-2012, 10:05 AM
  3. [Request] Can Someone Check This Source Code For 1hit ZM?
    By BryanVB in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 11-12-2011, 04:51 PM
  4. Some One Try This Please Source Code For 1 Hit Hack
    By talamanak in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 28
    Last Post: 10-28-2010, 05:56 PM
  5. Would this work...?
    By Frolite in forum WarRock - International Hacks
    Replies: 6
    Last Post: 01-16-2006, 02:39 PM