Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool

    Me showing of first EndScene hook :p Please look !

    Hello guys,
    Today i finshed my job:



    Credits : @kmanev073 (me)
    I would really want to thank @lucifereviluser for helping me with finding d3d Device
    and
    @|Skrillex|for being nice frined and explained me some things which i didnt understand
    If some one dont bealive this picture ask @derh.acker - he tested the hook on 32 bit system

    @@giniyat101 as for you, my idol - see i am improving my skills but still cant understand why you always say "NO" to me


    /*------------------------------------------------*/
    Open Message:
    /*---REGADRS
    /*---CF_ShArKS Team Leader Was Here !
    /*---Blazer Ss Coming
    Close Message:
    /*------------------------------------------------*/
    Last edited by kmanev073; 08-29-2012 at 12:44 PM.

  2. The Following 4 Users Say Thank You to kmanev073 For This Useful Post:

    3D (08-30-2012),mslol (08-29-2012),Phoenix1337 (08-29-2012),[S]aeed (08-29-2012)

  3. #2
    Phoenix1337's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Cairo , Egypt.
    Posts
    186
    Reputation
    10
    Thanks
    274
    My Mood
    Aggressive
    Good

    /msg2short

  4. #3
    CFFG.'s Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Somewhere
    Posts
    739
    Reputation
    22
    Thanks
    41
    My Mood
    Stressed
    Very nice, can't wait 3 hours!

  5. #4
    NanoGold's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    23
    My Mood
    Paranoid
    Quote Originally Posted by Tu®n][OnZzZzZ View Post


    what do u meen
    He means this :
    Code:
    #include <windows.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    
    #pragma comment(lib, "d3d9.lib")
    #pragma comment(lib, "d3dx9.lib")
    
    #define EndSceneEngine 0x00455ECF
    DWORD retEndSceneEngine = ( EndSceneEngine + 0x8 );
    
    LPD3DXFONT Font;
    
    VOID StartFont( LPDIRECT3DDEVICE9 pDevice )
    {
        if( Font ) {
            Font->Release();
            Font = NULL;
        }
    
        if( !Font ) {
            D3DXCreateFont( pDevice,
                            14,
                            0,
                            FW_BOLD,
                            1,
                            0,
                            DEFAULT_CHARSET,
                            OUT_DEFAULT_PRECIS,
                            DEFAULT_QUALITY,
                            DEFAULT_PITCH | FF_DONTCARE,
                            "Arial",
                            &Font );
        }
    }
    
    VOID WriteText( LPDIRECT3DDEVICE9 pDevice, INT x, INT y, DWORD color, CHAR *text )
    {    
        RECT rect;
        SetRect( &rect, x, y, x, y );
        Font->DrawText( NULL, text, -1, &rect, DT_NOCLIP | DT_LEFT, color );
    }
    
    __declspec( naked ) HRESULT WINAPI EndSceneMidfunction( )
    {
        static LPDIRECT3DDEVICE9 pDevice;
    
        __asm
        {
            MOV ECX, DWORD PTR DS:[EAX]
            MOV EDX, DWORD PTR DS:[ECX + 0xA8]
            MOV DWORD PTR DS:[pDevice], EAX
            PUSHAD
        }
    
        StartFont( pDevice );
    
        if( Font )
            WriteText( pDevice, 300, 300, Red, "CrossFire: Hook EndScene Engine" );
    
        __asm
        {
            POPAD
            JMP retEndSceneEngine
        }
    }
    
    void *DetourCreate( BYTE *src, const BYTE *dst, const int len )
    {
        BYTE *jmp =( BYTE * ) malloc( len + 5 );
        DWORD dwBack;
    
        VirtualProtect( src, len, PAGE_READWRITE, &dwBack );
        memcpy( jmp, src, len );    
        jmp += len;
        jmp[0] = 0xE9;
        *( DWORD * )( jmp + 1 ) =( DWORD )( src + len - jmp ) - 5;
    
        src[0] = 0xE9;
        *( DWORD * )( src + 1 ) = ( DWORD )( dst - src ) - 5;
        for( int i = 5; i < len; i++ )
            src[i] = 0x90;
        VirtualProtect( src, len, dwBack, &dwBack );
    
        return( jmp - len );
    }
    
    DWORD WINAPI StartRoutine( LPVOID )
    {
        while( TRUE )
        {
            if( memcmp( ( void * )EndSceneEngine, (void * )( PBYTE )"\x8B\x08", 2 ) == 0 )
            {
                Sleep(200);
                DetourCreate( ( PBYTE )EndSceneEngine, ( PBYTE )EndSceneMidfunction, 8 );
            }
            Sleep( 50 );
        }
     
        return 0;
    }
    
    BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    { 
        if( dwReason == DLL_PROCESS_ATTACH )
        {
            DisableThreadLibraryCalls( hDll );
            MessageBox( 0, "Hook EndScene Engine", "Crossfire", 0 );
            CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)StartRoutine, 0, 0, 0 );
        }
     
        return TRUE;
    }
    Credits: WE11ington

  6. #5
    Dragon(H)ell's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    703
    Reputation
    154
    Thanks
    4,819
    My Mood
    Angelic
    Quote Originally Posted by xKickAssBackup View Post
    I found an endscene in another site posted 2 days ago, weird
    I believe that @kmanev073 made his own hook cuz he is not like most of others

    ---------- Post added at 01:04 PM ---------- Previous post was at 01:03 PM ----------

    Quote Originally Posted by NanoGold View Post
    He means this :
    Code:
    #include <windows.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    
    #pragma comment(lib, "d3d9.lib")
    #pragma comment(lib, "d3dx9.lib")
    
    #define EndSceneEngine 0x00455ECF
    DWORD retEndSceneEngine = ( EndSceneEngine + 0x8 );
    
    LPD3DXFONT Font;
    
    VOID StartFont( LPDIRECT3DDEVICE9 pDevice )
    {
        if( Font ) {
            Font->Release();
            Font = NULL;
        }
    
        if( !Font ) {
            D3DXCreateFont( pDevice,
                            14,
                            0,
                            FW_BOLD,
                            1,
                            0,
                            DEFAULT_CHARSET,
                            OUT_DEFAULT_PRECIS,
                            DEFAULT_QUALITY,
                            DEFAULT_PITCH | FF_DONTCARE,
                            "Arial",
                            &Font );
        }
    }
    
    VOID WriteText( LPDIRECT3DDEVICE9 pDevice, INT x, INT y, DWORD color, CHAR *text )
    {    
        RECT rect;
        SetRect( &rect, x, y, x, y );
        Font->DrawText( NULL, text, -1, &rect, DT_NOCLIP | DT_LEFT, color );
    }
    
    __declspec( naked ) HRESULT WINAPI EndSceneMidfunction( )
    {
        static LPDIRECT3DDEVICE9 pDevice;
    
        __asm
        {
            MOV ECX, DWORD PTR DS:[EAX]
            MOV EDX, DWORD PTR DS:[ECX + 0xA8]
            MOV DWORD PTR DS:[pDevice], EAX
            PUSHAD
        }
    
        StartFont( pDevice );
    
        if( Font )
            WriteText( pDevice, 300, 300, Red, "CrossFire: Hook EndScene Engine" );
    
        __asm
        {
            POPAD
            JMP retEndSceneEngine
        }
    }
    
    void *DetourCreate( BYTE *src, const BYTE *dst, const int len )
    {
        BYTE *jmp =( BYTE * ) malloc( len + 5 );
        DWORD dwBack;
    
        VirtualProtect( src, len, PAGE_READWRITE, &dwBack );
        memcpy( jmp, src, len );    
        jmp += len;
        jmp[0] = 0xE9;
        *( DWORD * )( jmp + 1 ) =( DWORD )( src + len - jmp ) - 5;
    
        src[0] = 0xE9;
        *( DWORD * )( src + 1 ) = ( DWORD )( dst - src ) - 5;
        for( int i = 5; i < len; i++ )
            src[i] = 0x90;
        VirtualProtect( src, len, dwBack, &dwBack );
    
        return( jmp - len );
    }
    
    DWORD WINAPI StartRoutine( LPVOID )
    {
        while( TRUE )
        {
            if( memcmp( ( void * )EndSceneEngine, (void * )( PBYTE )"\x8B\x08", 2 ) == 0 )
            {
                Sleep(200);
                DetourCreate( ( PBYTE )EndSceneEngine, ( PBYTE )EndSceneMidfunction, 8 );
            }
            Sleep( 50 );
        }
     
        return 0;
    }
    
    BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    { 
        if( dwReason == DLL_PROCESS_ATTACH )
        {
            DisableThreadLibraryCalls( hDll );
            MessageBox( 0, "Hook EndScene Engine", "Crossfire", 0 );
            CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)StartRoutine, 0, 0, 0 );
        }
     
        return TRUE;
    }
    Credits: WE11ington
    I don't think this is going to work and you should get x-trap error
    Last edited by Dragon(H)ell; 08-29-2012 at 12:13 PM.

  7. The Following User Says Thank You to Dragon(H)ell For This Useful Post:

    mslol (08-29-2012)

  8. #6
    |Skrillex|'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    118
    Reputation
    22
    Thanks
    155
    My Mood
    Bored
    you are kidding me right? where are my credits? omg-.-

  9. The Following 6 Users Say Thank You to |Skrillex| For This Useful Post:

    3D (08-30-2012),derh.acker (08-29-2012),GameHaXx (08-29-2012),Intellectual (08-29-2012),mslol (08-29-2012),[mi5 (08-29-2012)

  10. #7
    NanoGold's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    23
    My Mood
    Paranoid
    Quote Originally Posted by |Skrillex| View Post
    you are kidding me right? where are my credits? omg-.-
    Credits for what ??

  11. #8
    Haxon[T]'s Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Busy
    Good luck @kmanev073
    With D3D Menu
    But i think u will not release the hack

  12. #9
    |Skrillex|'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    118
    Reputation
    22
    Thanks
    155
    My Mood
    Bored
    @NanoGold i fucking helped him man!
    Last edited by |Skrillex|; 08-29-2012 at 12:17 PM.

  13. The Following 4 Users Say Thank You to |Skrillex| For This Useful Post:

    derh.acker (08-29-2012),GameHaXx (08-29-2012),Intellectual (08-29-2012),mslol (08-29-2012)

  14. #10
    vipk-2's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Egypt
    Posts
    910
    Reputation
    35
    Thanks
    46
    Great U Will Put Features And Release Or As All Time ?

  15. #11
    ramo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    A.R.E
    Posts
    291
    Reputation
    82
    Thanks
    4,076
    My Mood
    Blah
    Good work i told you that endscene works !! Good Luck
    and i am sure that you didn't leech it . @kmanev073

  16. The Following 2 Users Say Thank You to ramo For This Useful Post:

    kmanev073 (08-29-2012),mslol (08-29-2012)

  17. #12
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    u know i say no for a reason..


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  18. The Following User Says Thank You to giniyat101 For This Useful Post:

    mslol (08-29-2012)

  19. #13
    mslol's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Olly
    Posts
    1,367
    Reputation
    13
    Thanks
    376
    My Mood
    Yeehaw
    Quote Originally Posted by xKickAssBackup View Post
    -.- you never can be sure 100% that an hack isn't leeched until you see project, also mpgh vip hack can be leeched for example, did i ever saw project for prove that it isn't?

    Anyway i didn't say that he leeched a code, but that he fixed a code

    ---------- Post added at 11:32 PM ---------- Previous post was at 11:31 PM ----------



    You are just a pander
    look dude , not all coders working like you c+p . we have here in mpgh some great coders !
    and yes we have lots of leechers, like you

  20. #14
    لا إله إلا الله محمد رسول الله
    MPGH Member
    [S]aeed's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Egypt
    Posts
    847
    Reputation
    233
    Thanks
    22,269
    My Mood
    Cynical
    @kmanev073 good job dude, i was late to test it
    WTF ! @xKickAssBackup stop insulting pro coders please
    To Be Continued...


    نبينا كالسحاب .. ولا يضر السحاب نبح الكلاب


    ██████████████████████████
    ██████████████████████████
    ██████████████████████████


    لا إله إلا الله محمد رسول الله
    There is no god but Allah, Mohamed is the messenger of AllaH

  21. The Following 2 Users Say Thank You to [S]aeed For This Useful Post:

    Intellectual (08-30-2012),mslol (08-30-2012)

  22. #15
    lucifereviluser's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    105
    Reputation
    19
    Thanks
    50
    Start draw your MENU boy ! I will help you more :-s

Page 1 of 3 123 LastLast

Similar Threads

  1. D3D EndScene Hook dont work
    By inmate in forum C++/C Programming
    Replies: 8
    Last Post: 07-20-2010, 06:10 AM
  2. My First Sign Ever Rate Please
    By Zmotion in forum Showroom
    Replies: 9
    Last Post: 11-15-2009, 03:29 PM
  3. First Try Photoshop please look XD
    By Vannillia in forum Showroom
    Replies: 10
    Last Post: 04-15-2009, 07:18 PM
  4. [First Cs3 Sig] Please look! :D
    By lethalhuman8 in forum Showroom
    Replies: 16
    Last Post: 10-26-2008, 11:18 PM
  5. My First 3D Model [Rate Please]
    By ilovepie21 in forum Art & Graphic Design
    Replies: 19
    Last Post: 10-13-2008, 04:51 PM