OldSchoolHack

Registrieren / Anmelden Deutsch

Orgia CD Base


icon Orgia CD Base #1

Anmeldungsdatum: Aug 2007

Beiträge: 1957

Kategorie: Sourcecode
Entwickler: ORGANNER

Beschreibung:
This base are undetectable under the last version of sXe Injected Anti-Cheat, use it as you want! ^_^

Main.cpp:
TEXT Code:
  1.  
  2. #include <windows.h>
  3. #include "Engine.h"
  4.  
  5. engine_studio_api_s* pEngstudio    = (engine_studio_api_s*)    0x01ED3460;
  6. cl_enginefuncs_s*    pEngfuncs  = (cl_enginefuncs_s*)        0x01EB72D8;
  7. playermove_s*         ppmove         = (playermove_s*)            0x02D5FCE0;
  8.  
  9. void ClientDllThread ( );
  10.  
  11. BOOL __stdcall DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
  12. {
  13.     switch ( dwReason )
  14.     {
  15.         case DLL_PROCESS_ATTACH :
  16.         {
  17.             CreateThread ( NULL, NULL, (LPTHREAD_START_ROUTINE) ClientDllThread, NULL, NULL, NULL );
  18.         }
  19.     }
  20.  
  21.     return TRUE;
  22. }

Client.cpp:
TEXT Code:
  1.  
  2. #include <windows.h>
  3. #include "Client.h"
  4. #include "Engine.h"
  5.  
  6. void UnHookFunction ( int iFunction );
  7.  
  8. void HUD_Redraw ( float x, int y )
  9. {
  10.     /*
  11.         Your Code Here
  12.     */
  13.  
  14.     UnHookFunction ( U_HUD_Redraw );
  15. }
  16.  
  17. void CL_CreateMove ( float frametime, struct usercmd_s *cmd, int active )
  18. {
  19.     /*
  20.         Your Code Here
  21.     */
  22.  
  23.     UnHookFunction ( U_CL_CreateMove );
  24. }
  25.  
  26. void HUD_PlayerMove ( struct playermove_s *a, int b )
  27. {
  28.     /*
  29.         Your Code Here
  30.     */
  31.  
  32.     UnHookFunction ( U_HUD_PlayerMove );
  33. }
  34.  
  35. void HUD_PostRunCmd ( struct local_state_s *from, struct local_state_s *to, struct usercmd_s *cmd, int runfuncs, double time, unsigned int random_seed )
  36. {
  37.     /*
  38.         Your Code Here
  39.     */
  40.  
  41.     UnHookFunction ( U_HUD_PostRunCmd );
  42. }
  43.  
  44. void HUD_TempEntUpdate ( double *pframetime, double *pclient_time, double *pcl_gravity, TEMPENTITY*** pppTempEntFree, TEMPENTITY*** pppTempEntActive, int( **pCallback_AddVisibleEntity )( cl_entity_t *pEntity ), void( **pCallback_TempEntPlaySound )( TEMPENTITY *pTemp, float damp ) )
  45. {
  46.     /*
  47.         Your Code Here
  48.     */
  49.  
  50.     UnHookFunction ( U_HUD_TempEntUpdate );
  51. }
  52.  
  53. void HUD_AddEntity ( int type, struct cl_entity_s *ent, const char *modelname )
  54. {
  55.     /*
  56.         Your Code Here
  57.     */
  58.  
  59.     UnHookFunction ( U_HUD_AddEntity );
  60. }
  61.  
  62. void HUD_Key_Event ( int eventcode, int keynum, const char *pszCurrentBinding )
  63. {
  64.     /*
  65.         Your Code Here
  66.     */
  67.  
  68.     UnHookFunction ( U_HUD_Key_Event );
  69. }

Gateways.cpp:
TEXT Code:
  1.  
  2. #include <windows.h>
  3. #include "Client.h"
  4.  
  5. DWORD* Slots = (DWORD*) 0x01EB74E8;
  6.  
  7. DWORD dwTempEntUpdate    = NULL;
  8. DWORD dwCreateMove        = NULL;
  9. DWORD dwRedraw            = NULL;
  10. DWORD dwPlayerMove        = NULL;
  11. DWORD dwAddEnt            = NULL;
  12. DWORD dwPostRunCmd        = NULL;
  13.  
  14. DWORD dwOriginal_HUD_Redraw            = NULL;
  15. DWORD dwOriginal_CL_CreateMove        = NULL;
  16. DWORD dwOriginal_HUD_PlayerMove        = NULL;
  17. DWORD dwOriginal_HUD_PostRunCmd        = NULL;
  18. DWORD dwOriginal_HUD_TempEntUpdate    = NULL;
  19. DWORD dwOriginal_HUD_AddEntity        = NULL;
  20. DWORD dwOriginal_HUD_Key_Event        = NULL;
  21.  
  22. int AddEntResult    = 1;
  23. int KeyEventResult    = 1;
  24. DWORD dwRetAddress  = NULL;
  25.  
  26. __declspec ( naked ) void Gateway2_CL_CreateMove ( void )
  27. {
  28.   __asm
  29.   {
  30.     call CL_CreateMove;
  31.     jmp dwRetAddress;
  32.   }
  33. }
  34.  
  35. __declspec ( naked ) void Gateway1_CL_CreateMove ( void )
  36. {
  37.   __asm
  38.   {
  39.     push esi;
  40.     mov esi,dword ptr ss:[esp+0x28];
  41.     mov dwRetAddress,esi;
  42.     push dwCreateMove;
  43.     pop esi;
  44.     mov dword ptr ss:[esp+0x28],esi;
  45.     pop esi;
  46.     ret;
  47.   }
  48. }
  49.  
  50. __declspec ( naked ) void Gateway2_HUD_Redraw ( void )
  51. {
  52.   __asm
  53.   {
  54.     call HUD_Redraw;
  55.     jmp dwRetAddress;
  56.   }
  57. }
  58.  
  59. __declspec ( naked ) void Gateway1_HUD_Redraw ( void )
  60. {
  61.   __asm
  62.   {
  63.     push esi;
  64.     mov esi,dword ptr ss:[esp+0x10];
  65.     mov dwRetAddress,esi;
  66.     push dwRedraw
  67.     pop esi;
  68.     mov dword ptr ss:[esp+0x10],esi;
  69.     pop esi;
  70.     ret;
  71.   }
  72. }
  73.  
  74. __declspec ( naked ) void Gateway2_HUD_PlayerMove ( void )
  75. {
  76.   __asm
  77.   {
  78.     call HUD_PlayerMove;
  79.     jmp dwRetAddress;
  80.   }
  81. }
  82.  
  83. __declspec ( naked ) void Gateway1_HUD_PlayerMove ( void )
  84. {
  85.   __asm
  86.   {
  87.     push esi;
  88.     mov esi,dword ptr ss:[esp+0x10];
  89.     mov dwRetAddress,esi;
  90.     push dwPlayerMove
  91.     pop esi;
  92.     mov dword ptr ss:[esp+0x10],esi;
  93.     pop esi;
  94.     ret;
  95.   }
  96. }
  97.  
  98. __declspec ( naked ) void Gateway2_HUD_AddEntity ( void )
  99. {
  100.   __asm
  101.   {
  102.     mov AddEntResult, eax;
  103.     call HUD_AddEntity;
  104.     mov eax, AddEntResult;
  105.     jmp dwRetAddress;
  106.   }
  107. }
  108.  
  109. __declspec ( naked ) void Gateway1_HUD_AddEntity ( void )
  110. {
  111.   __asm
  112.   {
  113.     push esi;
  114.     mov esi,dword ptr ss:[esp+0x14];
  115.     mov dwRetAddress,esi;
  116.     push dwAddEnt
  117.     pop esi;
  118.     mov dword ptr ss:[esp+0x14],esi;
  119.     pop esi;
  120.     ret;
  121.   }
  122. }
  123.  
  124. __declspec ( naked ) void Gateway2_HUD_Key_Event ( void )
  125. {
  126.   __asm
  127.   {
  128.     mov KeyEventResult, eax;
  129.     call HUD_Key_Event;
  130.     mov eax, KeyEventResult;
  131.     jmp dwRetAddress;
  132.   }
  133. }
  134.  
  135. DWORD KeyEvent = (DWORD) &Gateway2_HUD_Key_Event;
  136. __declspec ( naked ) void Gateway1_HUD_Key_Event ( void )
  137. {
  138.   __asm
  139.   {
  140.     push esi;
  141.     mov esi,dword ptr ss:[esp+0x14];
  142.     mov dwRetAddress,esi;
  143.     push KeyEvent
  144.     pop esi;
  145.     mov dword ptr ss:[esp+0x14],esi;
  146.     pop esi;
  147.     ret;
  148.   }
  149. }
  150.  
  151. __declspec ( naked ) void Gateway2_HUD_PostRunCmd ( void )
  152. {
  153.   __asm
  154.   {
  155.     nop;
  156.     nop;
  157.     nop;
  158.     call HUD_PostRunCmd;
  159.     nop;
  160.     nop;
  161.     nop;
  162.     jmp dwRetAddress;
  163.   }
  164. }
  165.  
  166. __declspec ( naked ) void Gateway1_HUD_PostRunCmd ( void )
  167. {
  168.   __asm
  169.   {
  170.     nop;
  171.     nop;
  172.     nop;
  173.     push esi;
  174.     mov esi,dword ptr ss:[esp+0x38];
  175.     mov dwRetAddress,esi;
  176.     push dwPostRunCmd
  177.     pop esi;
  178.     mov dword ptr ss:[esp+0x38],esi;
  179.     pop esi;
  180.     ret;
  181.   }
  182. }
  183.  
  184. __declspec ( naked ) void Gateway2_HUD_TempEntUpdate ( void )
  185. {
  186.   __asm
  187.   {
  188.     nop;
  189.     nop;
  190.     nop;
  191.     call HUD_TempEntUpdate;
  192.     nop;
  193.     nop;
  194.     nop;
  195.     jmp dwRetAddress;
  196.   }
  197. }
  198.  
  199. __declspec ( naked ) void Gateway1_HUD_TempEntUpdate ( void )
  200. {
  201.   __asm
  202.   {
  203.     nop;
  204.     nop;
  205.     nop;
  206.     push esi;
  207.     mov esi,dword ptr ss:[esp+0x100];
  208.     mov dwRetAddress,esi;
  209.     push dwTempEntUpdate;
  210.     pop esi;
  211.     mov dword ptr ss:[esp+0x100],esi;
  212.     pop esi;
  213.     ret;
  214.   }
  215. }
  216.  
  217. void ClientDllThread ( )
  218. {
  219.     dwRedraw        = (DWORD) &Gateway2_HUD_Redraw;
  220.     dwPlayerMove    = (DWORD) &Gateway2_HUD_PlayerMove;
  221.     dwCreateMove    = (DWORD) &Gateway2_CL_CreateMove;
  222.     dwAddEnt        = (DWORD) &Gateway2_HUD_AddEntity;
  223.     dwPostRunCmd    = (DWORD) &Gateway2_HUD_PostRunCmd;
  224.     dwTempEntUpdate    = (DWORD) &Gateway2_HUD_TempEntUpdate;
  225.  
  226.     dwOriginal_HUD_Redraw            = Slots[3];
  227.     dwOriginal_HUD_PlayerMove        = Slots[6];
  228.     dwOriginal_CL_CreateMove        = Slots[14];
  229.     dwOriginal_HUD_AddEntity        = Slots[20];
  230.     dwOriginal_HUD_PostRunCmd        = Slots[25];
  231.     dwOriginal_HUD_Key_Event        = Slots[34];
  232.     dwOriginal_HUD_TempEntUpdate    = Slots[35];
  233.  
  234.     for ( ; ; Sleep ( 1 ) )
  235.     {
  236.         Slots[3]  = (DWORD) &Gateway1_HUD_Redraw;
  237.         Slots[6]  = (DWORD) &Gateway1_HUD_PlayerMove;
  238.         Slots[14] = (DWORD) &Gateway1_CL_CreateMove;
  239.         Slots[20] = (DWORD) &Gateway1_HUD_AddEntity;
  240.         Slots[25] = (DWORD) &Gateway1_HUD_PostRunCmd;
  241.         Slots[34] = (DWORD) &Gateway1_HUD_Key_Event;
  242.         Slots[35] = (DWORD) &Gateway1_HUD_TempEntUpdate;
  243.     }
  244.  
  245. }
  246.  
  247. void UnHookFunction ( int iFunction )
  248. {
  249.     switch ( iFunction )
  250.     {
  251.         case 1:
  252.         {
  253.             Slots[3] = dwOriginal_HUD_Redraw;
  254.             break;
  255.         }
  256.         case 2:
  257.         {
  258.             Slots[6] = dwOriginal_HUD_PlayerMove;
  259.             break;
  260.         }
  261.         case 3:
  262.         {
  263.             Slots[14] = dwOriginal_CL_CreateMove;
  264.             break;
  265.         }
  266.         case 4:
  267.         {
  268.             Slots[20] = dwOriginal_HUD_AddEntity;
  269.             break;
  270.         }
  271.         case 5:
  272.         {
  273.             Slots[25] = dwOriginal_HUD_AddEntity;
  274.             break;
  275.         }
  276.         case 6:
  277.         {
  278.             Slots[34] = dwOriginal_HUD_Key_Event;
  279.             break;
  280.         }
  281.         case 7:
  282.         {
  283.             Slots[35] = dwOriginal_HUD_TempEntUpdate;
  284.             break;
  285.         }
  286.     }
  287.  
  288. }

Client.h:
TEXT Code:
  1. #define U_HUD_Redraw            1
  2. #define U_HUD_PlayerMove        2
  3. #define U_CL_CreateMove            3
  4. #define U_HUD_AddEntity            4
  5. #define U_HUD_PostRunCmd        5
  6. #define U_HUD_Key_Event            6
  7. #define U_HUD_TempEntUpdate     7
  8.  
  9. #include "Engine.h"
  10.  
  11. void HUD_Redraw ( float x, int y );
  12. void PreV_CalcRefdef ( struct ref_params_s *pparams );
  13. void CL_CreateMove ( float frametime, struct usercmd_s *cmd, int active );
  14. void HUD_PlayerMove ( struct playermove_s *a, int b );
  15. void HUD_PostRunCmd ( struct local_state_s *from, struct local_state_s *to, struct usercmd_s *cmd, int runfuncs, double time, unsigned int random_seed );
  16. void HUD_TempEntUpdate ( double *pframetime, double *pclient_time, double *pcl_gravity, TEMPENTITY*** pppTempEntFree, TEMPENTITY*** pppTempEntActive, int ( **pCallback_AddVisibleEntity )( cl_entity_t *pEntity ), void( **pCallback_TempEntPlaySound )( TEMPENTITY *pTemp, float damp ) );
  17. void HUD_AddEntity (int type, struct cl_entity_s *ent, const char *modelname );
  18. void HUD_Key_Event ( int eventcode, int keynum, const char *pszCurrentBinding );

Engine.h:
TEXT Code:
  1. #ifndef Engine_H
  2. #define Engine_H
  3. #include "ValveSDK/engine/wrect.h"
  4. #include "ValveSDK/engine/cl_dll.h"
  5. #include "ValveSDK/engine/cdll_int.h"
  6. #include "ValveSDK/engine/const.h"
  7. #include "ValveSDK/engine/progdefs.h"
  8. #include "ValveSDK/engine/eiface.h"
  9. #include "ValveSDK/engine/edict.h"
  10. #include "ValveSDK/engine/studio_event.h"
  11. #include "ValveSDK/engine/entity_types.h"
  12. #include "ValveSDK/engine/pmtrace.h"
  13. #include "ValveSDK/engine/r_studioint.h"
  14. #include "ValveSDK/engine/triangleapi.h"
  15. #include "ValveSDK/engine/pm_defs.h"
  16. #include "ValveSDK/engine/r_efx.h"
  17. #include "ValveSDK/engine/studio.h"
  18. #include "ValveSDK/engine/event_flags.h"
  19. #include "ValveSDK/engine/entity_state.h"
  20. #include "ValveSDK/engine/parsemsg.h"
  21. #include "ValveSDK/common/com_model.h"
  22. #include "ValveSDK/common/net_api.h"
  23. #include "ValveSDK/common/event_api.h"
  24. #include "ValveSDK/common/ref_params.h"
  25. #include "ValveSDK/common/event_api.h"
  26. #include "ValveSDK/common/screenfade.h"
  27. #endif


Note: There are some engine functions that are detected when you call they, AVOID use these fuctions:
TEXT Code:
  1. pfnFillRGBA
  2. pfnGetPlayerInfo
  3. pfnDrawCharacter
  4. pfnDrawConsoleString
  5. pfnDrawSetTextColor
  6. GetLocalPlayer
  7. GetEntityByIndex
  8. CL_CreateVisibleEntity
  9. PlayerInfo_ValueForKey



Download:
Orgia CD Base