Results 1 to 9 of 9
  1. #1
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,660
    Reputation
    236
    Thanks
    4,130
    My Mood
    Cheeky

    Adding console commands to your hack

    struct & function pointer
    Code:
    struct cCommand;
    struct cCommand
    {
    	cCommand *prevCommand;     //0-4
    	char *pCommandText;         //4-8
    		char unknown002[8];     //8-16
    	void *funcptr;              //16-20
    		char unknown003[4];     //20-24
    }; //size is 24
    
    cCommand *(__stdcall *pAddCommand)(char *pCommandText, unsigned long *CommandFunction, cCommand *retval);
    initializing the function pointer:
    Code:
    pAddCommand = (cCommand *(__stdcall *)(char *,unsigned long *,cCommand *))0x608A00;
    Adding command example:
    Code:
    cCommand myToggleAimCmd;
    void toggleaimbot(void)
    {
        bAimbot = !bAimbot;
    }
    
    pAddCommand("toggleaimbot", &toggleaimbot, &myToggleAimCmd);
    And here is the sig:
    Code:
    56 8B 74 24 08 56 E8 ?? ?? ?? ?? 83 C4 04 85 C0 74 19
    
    \x56\x8B\x74\x24\x08\x56\xE8\x00\x00\x00\x00\x83\xC4\x04\x85\xC0\x74\x19
    xxxxxxx????xxxxxxx
    Have fun,
    Hell

    Edit: Found out the first unknown, which is prevCommand!
    0x03EE64D4 holds a pointer to the last command that was added! you can use a loop to go all the way back to the first command added(which will have 0 as prevCommand)
    Last edited by Hell_Demon; 11-12-2010 at 06:30 PM.
    Ah we-a blaze the fyah, make it bun dem!

  2. The Following 4 Users Say Thank You to Hell_Demon For This Useful Post:

    ♪~ ᕕ(ᐛ)ᕗ (12-01-2010),cgallagher21 (11-14-2010),House (11-12-2010),Skyline. (11-12-2010)

  3. #2
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    27,853
    Reputation
    3541
    Thanks
    36,148
    My Mood
    Devilish
    Nice job





    THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE


    "First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311HAD VIRTUAL DETOX

  4. The Following User Says Thank You to Dave84311 For This Useful Post:

    [MPGH]Hell_Demon (11-12-2010)

  5. #3
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,939
    Reputation
    478
    Thanks
    1,746
    My Mood
    Bored
    Thanks, I will talk to Dave about a coding section.


    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  6. The Following User Says Thank You to B4M For This Useful Post:

    [MPGH]Hell_Demon (11-12-2010)

  7. #4
    The Reaper's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    MPGH
    Posts
    828
    Reputation
    46
    Thanks
    270
    My Mood
    Dead
    good job.. i think.... cus noone has relesed a hack... and then i think these are useless.... ? am im right ?
    A.K.A Lilleanders
    Quote Originally Posted by Ghost View Post
    I would most likely get wood.

     







  8. #5
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,096
    /moved 2 coding section



  9. #6
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    Woot woot good job =D
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  10. #7
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    403
    Thanks
    1,613
    omg wow this info is better than gold,
    i might actually be on to something lol.


    THANKS!


  11. #8
    Gekkepop's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Netherlands
    Posts
    27
    Reputation
    10
    Thanks
    6
    I dont understand this, are this a hack or what?

  12. #9
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    403
    Thanks
    1,613
    Quote Originally Posted by Gekkepop View Post
    I dont understand this, are this a hack or what?
    these are all the little pieces that are what make hack's so unique.


Similar Threads

  1. [Tutorial]Adding Glitcher to your hack
    By NOOBJr in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 55
    Last Post: 10-02-2010, 11:32 PM
  2. [Release] Console Command Hack! No Fog ETC!
    By V3CT0R in forum Sudden Attack Hacks
    Replies: 35
    Last Post: 09-20-2010, 11:46 AM
  3. [Snippet]Console Command Hack [Box|Wireframe|Etc]
    By V3CT0R in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 20
    Last Post: 08-06-2010, 11:35 AM
  4. [SOLVED]Anti - Afk * Hack / Console Command *
    By dwcusterjr in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 07-10-2010, 07:10 PM
  5. [SOLVED] Lookin fur nuke console command or hack?
    By dwcusterjr in forum Call of Duty Modern Warfare 2 Help
    Replies: 10
    Last Post: 06-28-2010, 06:53 AM