Thread: Commands

Results 1 to 8 of 8
  1. #1
    lunatik21's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    7

    Commands

    I request a list of Commans that we can PushToConsole?
    Combat Arms commands not work all.
    Is there a Speed Command in D187??
    And is there a Box Command in D187 ??
    Thank You!

  2. #2
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,590
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    There should be since its based of Lithtech.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  3. #3
    lunatik21's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    7
    Quote Originally Posted by Flengo View Post
    There should be since its based of Lithtech.
    I don't know, so I am trying to find it by hooking the PushToConsole command you gave out.


    Code:
    DWORD HookVTable( DWORD dwFuncPtr, DWORD dwHook)
    {
        DWORD dwOld = NULL;
        VirtualProtect((void*)dwFuncPtr, 4, PAGE_EXECUTE_READWRITE, &dwOld);
    
        DWORD pOrig = *(PDWORD)dwFuncPtr;
        *(PDWORD)dwFuncPtr = (DWORD)dwHook;
    
        VirtualProtect((void*)dwFuncPtr, 4, dwOld, &dwOld);
    
        return pOrig;
    }
    
    void __cdecl hookSetConsoleVariable( const char* Commands, float Values ){
    
    	g_LTClient = (CLTClient*)*(DWORD*)ADDR_ILTCLIENT;
    	char cValue[256];
    	sprintf(cValue, "%d", Values);
    	add_log("Log.txt", Commands, cValue);
    	return (g_LTClient->PushToConsole(Commands,Values));
    }
    int HookSVC(){
    	DWORD Original = (ADDR_ILTCLIENT+0x138);
    	if ( pEngine->ValidGamePointers() )
    	HookVTable(Original, (DWORD)hookSetConsoleVariable);
    	return 0;
    }
    
    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HookSVC, 0,0,0);
    Compiles just fine, but doesn't actually hook the function.
    The address and offset is correct because I am using it.
    Any ideas why it's not hooking ?

  4. #4
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,590
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    Quote Originally Posted by lunatik21 View Post
    I don't know, so I am trying to find it by hooking the PushToConsole command you gave out.


    Code:
    DWORD HookVTable( DWORD dwFuncPtr, DWORD dwHook)
    {
        DWORD dwOld = NULL;
        VirtualProtect((void*)dwFuncPtr, 4, PAGE_EXECUTE_READWRITE, &dwOld);
    
        DWORD pOrig = *(PDWORD)dwFuncPtr;
        *(PDWORD)dwFuncPtr = (DWORD)dwHook;
    
        VirtualProtect((void*)dwFuncPtr, 4, dwOld, &dwOld);
    
        return pOrig;
    }
    
    void __cdecl hookSetConsoleVariable( const char* Commands, float Values ){
    
        g_LTClient = (CLTClient*)*(DWORD*)ADDR_ILTCLIENT;
        char cValue[256];
        sprintf(cValue, "%d", Values);
        add_log("Log.txt", Commands, cValue);
        return (g_LTClient->PushToConsole(Commands,Values));
    }
    int HookSVC(){
        DWORD Original = (ADDR_ILTCLIENT+0x138);
        if ( pEngine->ValidGamePointers() )
        HookVTable(Original, (DWORD)hookSetConsoleVariable);
        return 0;
    }
    
    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HookSVC, 0,0,0);
    Compiles just fine, but doesn't actually hook the function.
    The address and offset is correct because I am using it.
    Any ideas why it's not hooking ?
    Game patched so that address isn't valid anymore. If you can upload GameClient.dll dumped following the uploading rules, I'll update it.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  5. #5
    lunatik21's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    7
    This is the new ILTCLIENT ..
    #define ADDR_ILTCLIENT 0x10509A58

    GameClient.dll
    Virus Scan: https://www.virustotal.com/en/file/f...is/1374780233/

    Any other addresses would be very appreciated for this game.
    Or a method to find them.
    Thank you !


    Classes
    Code:
    #define ILTCLIENT 0x10509A58
    
    class ILTClient;
    class CLTClient;
    
    class ILTClient
    {
    public:
    	CLTClient* pGame; //0x0000 
    	DWORD ILTRenderer; //0x0004 
    	DWORD ILTTextureString; //0x0008 
    	DWORD ILTTextureMgr; //0x000C 
    	DWORD ILTDrawPrim; //0x0010 
    	DWORD ILTModelClient; //0x0014 
    char _0x0018[132];
    	DWORD ResolutionX; //0x009C 
    char _0x00A0[4];
    	DWORD ResolutionY; //0x00A4 
    };//Size=0x00A4
    
    class CLTClient
    {
    public:
    char _0x0000[304];
    	RunConsoleString( const char* String ); //0x0130 
    char _0x0134[4];
    	SetSConsoleVariable( const char* String, float Variable ); //0x0138 
    };//Size=0x0138
    <b>Downloadable Files</b> Downloadable Files
    Last edited by lunatik21; 07-25-2013 at 01:18 PM.

  6. The Following 4 Users Say Thank You to lunatik21 For This Useful Post:

    Bonkey99 (08-02-2013),[MPGH]Flengo (07-25-2013),metinmahir (08-03-2013),tuguex (08-13-2013)

  7. #6
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,590
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    Quote Originally Posted by lunatik21 View Post
    This is the new ILTCLIENT ..
    #define ADDR_ILTCLIENT 0x10509A58

    GameClient.dll
    Virus Scan: https://www.virustotal.com/en/file/f...is/1374780233/

    Any other addresses would be very appreciated for this game.
    Or a method to find them.
    Thank you !


    Classes
    Code:
    #define ILTCLIENT 0x10509A58
    
    class ILTClient;
    class CLTClient;
    
    class ILTClient
    {
    public:
        CLTClient* pGame; //0x0000 
        DWORD ILTRenderer; //0x0004 
        DWORD ILTTextureString; //0x0008 
        DWORD ILTTextureMgr; //0x000C 
        DWORD ILTDrawPrim; //0x0010 
        DWORD ILTModelClient; //0x0014 
    char _0x0018[132];
        DWORD ResolutionX; //0x009C 
    char _0x00A0[4];
        DWORD ResolutionY; //0x00A4 
    };//Size=0x00A4
    
    class CLTClient
    {
    public:
    char _0x0000[304];
        RunConsoleString( const char* String ); //0x0130 
    char _0x0134[4];
        SetSConsoleVariable( const char* String, float Variable ); //0x0138 
    };//Size=0x0138
    Thanks. I'll get started on this when I have time. Nice update & finds.

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

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  8. #7
    lunatik21's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    7
    Quote Originally Posted by Flengo View Post


    Thanks. I'll get started on this when I have time. Nice update & finds.

    Approved.
    No Problem.
    So, what did you get ??

  9. #8
    Bumboxe's Sheep's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    1,346
    Reputation
    54
    Thanks
    105
    My Mood
    Amused
    Quote Originally Posted by Flengo View Post


    Thanks. I'll get started on this when I have time. Nice update & finds.

    Approved.
    QUICK WHAT IS A PUSH COMMAND

    ---------- Post added at 09:47 PM ---------- Previous post was at 09:47 PM ----------

    Quote Originally Posted by lunatik21 View Post
    No Problem.
    So, what did you get ??
    QUICK WHAT IS A PUSH COMMAND
    Dave is a jackass.

Similar Threads

  1. Run Commands!
    By AN1MAL in forum Spammers Corner
    Replies: 12
    Last Post: 01-01-2007, 01:51 PM
  2. supreme commander and command&conquer hacking
    By TheDisruptor in forum General Game Hacking
    Replies: 3
    Last Post: 11-26-2006, 10:50 PM
  3. Command & Conquer Generals
    By heero_yuy in forum General Game Hacking
    Replies: 2
    Last Post: 06-21-2006, 03:12 AM
  4. Warrock Command List
    By Dave84311 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-26-2006, 11:03 PM
  5. Demon of some commands
    By HolyFate in forum Gunz Hacks
    Replies: 12
    Last Post: 02-21-2006, 01:43 PM