LUDIX-BoT Forum
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 COD United Offensive Cvar Unlocker

Go down 
AuthorMessage
Shagrath



Posts : 57
Join date : 2009-10-10
Location : Istanbul/Turkey

PostSubject: COD United Offensive Cvar Unlocker   Mon Oct 26, 2009 12:21 pm

Hey guys,
I'm currently been working on CoD1/CoDUO. This code is for CoDUO v1.51. I've left few notes on my code to explain how to get these offsets to patch cvar protection. Any questions or anything at all feel free to post.

Btw I used ollydbg to get these offsets:
Code:
void Enable_Cvar_C( void )
{
    DWORD old;
//Read Only - CoDUOMP.exe    #1
/*
0043DD86  |. 74 19          JE SHORT CoDUOMP.0043DDA1
0043DD88  |. 8B4424 14      MOV EAX,DWORD PTR SS:[ESP+14]
0043DD8C  |. 50            PUSH EAX
0043DD8D  |. 68 EC8A5900    PUSH CoDUOMP.00598AEC                    ;  ASCII "%s is read only."
("0043DD86")
*/
    VirtualProtect((void*)0x43DD86,1,PAGE_EXECUTE_READWRITE,&old);
    *((BYTE*)0x43DD86) = 0xEB;
    VirtualProtect((void*)0x43DD86,1,old,&old);

    //Write Protected        #2
    /*
0043DDA3  |. 74 19          JE SHORT CoDUOMP.0043DDBE
0043DDA5  |. 8B4C24 14      MOV ECX,DWORD PTR SS:[ESP+14]
0043DDA9  |. 51            PUSH ECX
0043DDAA  |. 68 D48A5900    PUSH CoDUOMP.00598AD4                    ;  ASCII "%s is write protected."
("0043DDA3")
    */
    VirtualProtect((void*)0x43DDA3,1,PAGE_EXECUTE_READWRITE,&old);
    *((BYTE*)0x43DDA3) = 0xEB;
    VirtualProtect((void*)0x43DDA3,1,old,&old);

    //Cheat Protected        #3
    /*
0043DDC1  |. 74 24          JE SHORT CoDUOMP.0043DDE7
0043DDC3  |. 8B0D 98279800  MOV ECX,DWORD PTR DS:[982798]
0043DDC9  |. 3971 20        CMP DWORD PTR DS:[ECX+20],ESI
0043DDCC  |. 75 19          JNZ SHORT CoDUOMP.0043DDE7
0043DDCE  |. 8B5424 14      MOV EDX,DWORD PTR SS:[ESP+14]
0043DDD2  |. 52            PUSH EDX
0043DDD3  |. 68 BC8A5900    PUSH CoDUOMP.00598ABC                    ;  ASCII "%s is cheat protected."
    */
    VirtualProtect((void*)0x43DDC1,1,PAGE_EXECUTE_READWRITE,&old);
    *((BYTE*)0x43DDC1) = 0xEB;
    VirtualProtect((void*)0x43DDC1,1,old,&old);
}
void Disable_Cvar_C( void )
{
    DWORD old;
    //Read Only            #1
    VirtualProtect((void*)0x43DD86,1,PAGE_EXECUTE_READWRITE,&old);
    *((BYTE*)0x43DD86) = 0x74;
    VirtualProtect((void*)0x43DD86,1,old,&old);

    //Write Protected      #2
    VirtualProtect((void*)0x43DDA3,1,PAGE_EXECUTE_READWRITE,&old);
    *((BYTE*)0x43DDA3) = 0x74;
    VirtualProtect((void*)0x43DDA3,1,old,&old);

    //Cheat Protected      #3
    VirtualProtect((void*)0x43DDC1,1,PAGE_EXECUTE_READWRITE,&old);
    *((BYTE*)0x43DDC1) = 0x74;
    VirtualProtect((void*)0x43DDC1,1,old,&old);
}

Then just hook these to your dllmain. Hope this helps many. .

Boxhead
Back to top Go down
View user profile
 
COD United Offensive Cvar Unlocker
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
LUDIX-BoT Forum :: Coding :: General Coding-
Jump to: