Thread: A litte source?

Results 1 to 7 of 7
  1. #1
    izanagi1's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    1
    My Mood
    Psychedelic

    A litte source?

    Hello everybody,

    I've learned C++. But I don't understand the code on this forum.

    Is that a nice guy could give me an example source code?

    You would be nice!

    Thanks a lot,

    Izanagi

    PS : Bad section. Move this thread in the European version please
    Last edited by izanagi1; 12-17-2012 at 03:27 AM. Reason: Bad Section

  2. #2
    ctpsolo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    34
    My Mood
    Amused
    Take a look at some base, redux for instance http://www.mpgh.net/forum/207-combat...terns-xor.html

    If you know C++ you should be able to understand most of what's going on in there

  3. #3
    izanagi1's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    1
    My Mood
    Psychedelic
    I have my this code but it's buggy

    #include <windows.h>
    #include <stdio.h>
    #define LTClientEXE 0x48B6B0
    #define GameStatus 0x37839E54
    #define HShieldBypass_1 0x0000A048
    #define HShieldBypass_2 0x0009A8C2
    #define HShieldBypass_3 0x0007B7A0
    #define HShieldBypass_4 0x00009FB0
    #define HShieldBypass_5 0x0003CF8E
    #define HShieldBypass_6 0x0003A39F
    #define HShieldBypass_7 0x0003C446
    #define HShieldBypass_8 0x0003D004



    INT EditMemory(VOID *lpMem, VOID *lpSrc, size_t len)
    {
    DWORD flNewProtect = PAGE_READWRITE, lpflOldProtect;
    unsigned char *pDst = (unsigned char *)lpMem, *pSrc = (unsigned char *)lpSrc;

    if(VirtualProtect(lpMem, len, flNewProtect, &lpflOldProtect))
    {
    while(len-- > 0) *pDst++ = *pSrc++;
    return 0;
    }
    return 1;
    }

    DWORD WINAPI BypassThread(LPVOID)
    {
    DWORD dwEhSvc = 0;
    do
    {
    Sleep(100);
    dwEhSvc = (DWORD)GetModuleHandleA("EhSvc.dll");
    } while(!dwEhSvc);

    BYTE HSB1[1] = {0x74};
    BYTE HSB2[1] = {0xD2};
    BYTE HSB3[3] = {0xC2, 0x04, 0x00};
    BYTE HSB4[1] = {0x31};
    BYTE HSB5[2] = {0x90, 0x90};



    EditMemory((PVOID)(dwEhSvc + HShieldBypass_1), (PVOID)"\x74", 1);
    EditMemory((PVOID)(dwEhSvc + HShieldBypass_2), (PVOID)"\xD2", 1);
    EditMemory((PVOID)(dwEhSvc + HShieldBypass_3), (PVOID)"\xC2\x04\x00", 3);
    EditMemory((PVOID)(dwEhSvc + HShieldBypass_4), (PVOID)"\xC2\x04\x00", 3);
    EditMemory((PVOID)(dwEhSvc + HShieldBypass_5), (PVOID)"\x31", 1);
    EditMemory((PVOID)(dwEhSvc + HShieldBypass_6), (PVOID)"\x31", 1);
    EditMemory((PVOID)(dwEhSvc + HShieldBypass_7), (PVOID)"\x31", 1);
    EditMemory((PVOID)(dwEhSvc + HShieldBypass_8), (PVOID)"\x90\x90", 2);

    return NULL;
    }

    void _stdcall SetConsoleVariable(const char* Command)
    {
    __asm
    {
    push Command
    mov eax, 0x485FF0
    call eax
    }
    }
    BOOL IsGameReadyForHook(void)
    {
    if(GetModuleHandleA("d3d9.dll") != NULL
    && GetModuleHandleA("ClientFX.fxd") != NULL
    && GetModuleHandleA("CShell.dll") != NULL)
    return true;

    return false;

    }
    void main()
    {
    while(true)
    {
    SetConsoleVariable("SkelModelStencil 1");
    }
    }
    DWORD WINAPI HackThread(LPVOID)
    {
    while( !IsGameReadyForHook() )
    Sleep(100);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, HackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

  4. #4
    ctpsolo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    34
    My Mood
    Amused
    You don't need any Hackshield bypass for this to work, you do however need to hook some D3D function, present for instance.

    Also for your information if you haven't noticed it, you aren't even calling your bypass from anywhere in the code from what I can see so I'm not sure how you expect it to work. + there's a lot of other weird stuff going on, like defining the new console unwrapped addie but then using an old one in your PTC. Look at that base I linked instead and work from that, will be heaps easier.
    Last edited by ctpsolo; 12-17-2012 at 04:44 AM.

  5. #5
    izanagi1's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    1
    My Mood
    Psychedelic
    How work the f*cking S2S?



    Thank you!

  6. #6
    Genesis's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Terra Australis
    Posts
    4,106
    Reputation
    1315
    Thanks
    2,466
    Quote Originally Posted by izanagi1 View Post
    How work the f*cking S2S?



    Thank you!
    Nobody here is going to spoonfeed you, if you knew at least one bit of C++ then you'd know what's going on.
    I'm still learning C++ myself, and no coder here knows everything there is to C++. Teaching yourself is the best thing to do, rather than asking others for help.

    Learn C++
    helt ensam.

  7. The Following User Says Thank You to Genesis For This Useful Post:

    Acea (12-19-2012)

  8. #7
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,204
    My Mood
    Stressed
    Quote Originally Posted by Redux View Post


    Nobody here is going to spoonfeed you, if you knew at least one bit of C++ then you'd know what's going on.
    I'm still learning C++ myself, and no coder here knows everything there is to C++. Teaching yourself is the best thing to do, rather than asking others for help.

    Learn C++
    Well asking others for help isn't a bad thing, Infact learning with others can keep you focused and you can pick up on each others errors and improve each others code(I work with necrosyz Myself), BUT It's bad when you ask them to spoon feed you, and sadly.... that's why we have no real coders developing anymore.... they all expect it to be spoon fed to them, that's why when someone releases a undetected hook or something along those lines there's suddenly a "boom" in releases.

Similar Threads

  1. CS Source Clan/Server
    By Dave84311 in forum General
    Replies: 20
    Last Post: 10-04-2006, 01:21 PM
  2. HALO 2 (XBOX) Source Code
    By mirelesmichael in forum General Game Hacking
    Replies: 12
    Last Post: 09-23-2006, 05:35 AM
  3. Counter Strike: Source
    By Flawless in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 15
    Last Post: 06-03-2006, 09:28 PM