Results 1 to 8 of 8
  1. #1
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    818
    Reputation
    125
    Thanks
    1,785
    My Mood
    Doh

    PushToConsole Help

    K need some info on PushToConsole Methods, As Engine.exe didn't dump correctly for me The old method I was using has outdated addresses and from what I seen now people are using direct addresses..

    Credits Gordon for this Method(does not work anymore due to updated addresses)

    [highlight=delphi]type
    lpSetConsoleVariable = procedure (console: cardinal; szVal: PAnsiChar); cdecl;
    RunConsoleCommand_t = function(cmd: PAnsiChar): integer; cdecl;
    [/highlight]

    ...
    ...
    ...

    Then in Hooked "PresentCallback"
    [highlight=delphi]
    SetConsoleVariable:= pointer($00484400);

    case bChams of
    False: SetConsoleVariable($008013F0,'SkelModelStencil 0');
    True : SetConsoleVariable($008013F0,'SkelModelStencil -1');
    end;[/highlight]

    the above is what I use to use, But have seen and tried snippets of a newer method on the forum and this doesn't work either, See below
    [highlight=delphi]
    procedure Pushit (const PCharCommand: PChar);
    asm
    PUSH PCharCommand
    MOV EAX, $00485DD0//Engine LTC $00484BC0//
    CALL EAX
    ADD ESP, $00000004
    end;
    [/highlight]

    Then in Hooked "PresentCallback"
    [highlight=delphi]
    case bChams of
    False: Pushit(PChar('SkelModelStencil 0'));
    True : Pushit(PChar('SkelModelStencil -1'));
    end;[/highlight]

    I tried both addresses in "PushIt" but non seem to work, Is it the addresses that are wrong or am i missing something? Maybe something has changed since I last made a hack for Combat arms? Also remember I don't have a working dump of Engine so I can't Analyze the addresses

    Any help or point in the right direction would be great...
    P.s I do prefer the Gordon Method as it worked before

    //Edit Changed to Delphi highlight,
    I can see im not going to get much response to this question, Please don't even look at the code I only want to know the method nothing to do with what I language I am coding in.
    Last edited by Departure; 02-17-2011 at 10:15 PM.

  2. #2
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Ewwww. Delphi.

    :P

  3. #3
    D-Vid the DBag's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    146
    Reputation
    10
    Thanks
    13
    My Mood
    Lurking
    Quote Originally Posted by Stephen View Post
    Ewwww. Delphi.

    :P
    Is that what that is?
    I was reading that, expecting C++ and that shit was fucking with me..

    BTW, OP...
    Instead of using code tags, use the delphi tags.

    [highlight=delphi]

    [ highlight=delphi][/ highlight]
    ^^Without any spaces^^

    [/highlight]
    Last edited by D-Vid the DBag; 02-17-2011 at 02:07 PM.


  4. #4
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    818
    Reputation
    125
    Thanks
    1,785
    My Mood
    Doh
    Changed it to Delphi highlight, Hopfully its more readable to people who are interested... Anyway the coding Language has nothing to do with the question im asking...

  5. #5
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Change this:
    [highlight=delphi]procedure Pushit (const PCharCommand: PChar);
    asm
    PUSH PCharCommand
    MOV EAX, $00485DD0//Engine LTC $00484BC0//
    CALL EAX
    ADD ESP, $00000004
    end; [/highlight]

    to.

    [highlight=delphi]procedure Pushit (const PCharCommand: PChar);
    asm
    PUSH PCharCommand
    MOV EAX, $00485E10
    CALL EAX
    ADD ESP, $00000004
    end;[/highlight]

  6. #6
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    818
    Reputation
    125
    Thanks
    1,785
    My Mood
    Doh
    Thanks steven but I already found out it was still the old address.
    Updating Hook? - Coding Help & Discussion - MPGH - MultiPlayer Game Hacking

  7. #7
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by Departure View Post
    Thanks steven but I already found out it was still the old address.
    Updating Hook? - Coding Help & Discussion - MPGH - MultiPlayer Game Hacking
    That address is still undetected Departure.
    Even though there was an update this would still work.

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

  8. #8
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Quote Originally Posted by Departure View Post
    Thanks steven but I already found out it was still the old address.
    Updating Hook? - Coding Help & Discussion - MPGH - MultiPlayer Game Hacking
    ok, good that you found it

  9. The Following User Says Thank You to Stephen For This Useful Post:

    Departure (02-18-2011)