Results 1 to 15 of 37

Hybrid View

  1. #1
    Disconect's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by |WE11ington| View Post
    Qual o seu sistema operacional e de quantos bits é ?
    Win 7 32bits

  2. #2
    |WE11ington|'s Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    37
    Quote Originally Posted by Disconect View Post
    Win 7 32bits
    O problema de detectar em seu caso não sei te dizer o que é, pois bem, não sei como esta o seu código após esse trecho que você mencionou. Mas em Windows 7 32 Bits, funciona dessa maneira com esse detour modo:

    Code:
    LPVOID DetourCreate( PBYTE pbTargetFunction, PBYTE pbDetourFunction, INT intSize )
    {
        DWORD dwProtect;
        PBYTE pbDetour = ( PBYTE  )malloc( intSize + 5 );
    
        VirtualProtect( pbTargetFunction, intSize, PAGE_EXECUTE_READWRITE, &dwProtect );
        memcpy( pbDetour, pbTargetFunction, intSize );
        pbDetour += intSize;
    
        *( BYTE * ) ( pbDetour + 0 ) = 0xE9;
        *( DWORD * )( pbDetour + 1 ) = ( DWORD )( pbTargetFunction + intSize - pbDetour ) - 5;
    
        *( BYTE * ) ( pbTargetFunction + 0 ) = 0xB8;
        *( DWORD * )( pbTargetFunction + 1 ) = ( DWORD )( pbDetourFunction );
        *( WORD * ) ( pbTargetFunction + 5 ) = 0xE0FF;
    
        for( INT i = 7; i < intSize; i++ )
            *( BYTE * )( pbTargetFunction + i ) = 0x90;
    
        VirtualProtect( pbTargetFunction, intSize, dwProtect, &dwProtect );
    
        return ( pbDetour - intSize );
    }
    Code:
    DWORD vTable[2] = {0};
    CreateDevice(vTable);
    
    oReset   = ( tReset )   DetourCreate( ( PBYTE )vTable[16], ( PBYTE )&ResetDevice,  ResetSize );
    oPresent = ( tPresent ) DetourCreate( ( PBYTE )vTable[17], ( PBYTE )&PresetDevice, PresentSize );
    Windows 7 32 e 64 Bits.

    ResetSize com esses valores: 11, 12, 13 e 16.
    PresentSize com esses valores: 7 e 10.

  3. #3
    XarutoUsoCrack's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    CFAL Honra & Glória Server
    Posts
    1,087
    Reputation
    51
    Thanks
    2,543
    My Mood
    Relaxed
    Quote Originally Posted by |WE11ington| View Post
    O problema de detectar em seu caso não sei te dizer o que é, pois bem, não sei como esta o seu código após esse trecho que você mencionou. Mas em Windows 7 32 Bits, funciona dessa maneira com esse detour modo:

    Code:
    LPVOID DetourCreate( PBYTE pbTargetFunction, PBYTE pbDetourFunction, INT intSize )
    {
        DWORD dwProtect;
        PBYTE pbDetour = ( PBYTE  )malloc( intSize + 5 );
    
        VirtualProtect( pbTargetFunction, intSize, PAGE_EXECUTE_READWRITE, &dwProtect );
        memcpy( pbDetour, pbTargetFunction, intSize );
        pbDetour += intSize;
    
        *( BYTE * ) ( pbDetour + 0 ) = 0xE9;
        *( DWORD * )( pbDetour + 1 ) = ( DWORD )( pbTargetFunction + intSize - pbDetour ) - 5;
    
        *( BYTE * ) ( pbTargetFunction + 0 ) = 0xB8;
        *( DWORD * )( pbTargetFunction + 1 ) = ( DWORD )( pbDetourFunction );
        *( WORD * ) ( pbTargetFunction + 5 ) = 0xE0FF;
    
        for( INT i = 7; i < intSize; i++ )
            *( BYTE * )( pbTargetFunction + i ) = 0x90;
    
        VirtualProtect( pbTargetFunction, intSize, dwProtect, &dwProtect );
    
        return ( pbDetour - intSize );
    }
    Code:
    DWORD vTable[2] = {0};
    CreateDevice(vTable);
    
    oReset   = ( tReset )   DetourCreate( ( PBYTE )vTable[16], ( PBYTE )&ResetDevice,  ResetSize );
    oPresent = ( tPresent ) DetourCreate( ( PBYTE )vTable[17], ( PBYTE )&PresetDevice, PresentSize );
    Windows 7 32 e 64 Bits.

    ResetSize com esses valores: 11, 12, 13 e 16.
    PresentSize com esses valores: 7 e 10.
    MEU DEUS VEIO.

    DWORD vTable[2] = {0};
    CreateDevice(vTable);

    oReset = ( tReset ) DetourCreate( ( PBYTE )vTable[16], ( PBYTE )&ResetDevice, ResetSize );
    oPresent = ( tPresent ) DetourCreate( ( PBYTE )vTable[17], ( PBYTE )&PresetDevice, PresentSize );
    VC INICIALIZA 2 DWORD com nome vTable e chama elas como 16 e 17 sendo na CreateDevice deve ser vTable[0] e vTable[1], PQP QUE BURIÇ !

    KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK

  4. #4
    |WE11ington|'s Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    37
    Quote Originally Posted by XarutoUsoCrack View Post
    MEU DEUS VEIO.



    VC INICIALIZA 2 DWORD com nome vTable e chama elas como 16 e 17 sendo na CreateDevice deve ser vTable[0] e vTable[1], PQP QUE BURIÇ !

    KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
    Burrice é ver você comentando sem saber como é os meus vTables. ^^
    O meu CreateDevice, não é esses que vocês copiam e colam. Isso que da ser copy e paste.

  5. The Following User Says Thank You to |WE11ington| For This Useful Post:

    Fєηix (12-13-2013)

  6. #5
    kssiobr's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Nos braços do Pai Celestial...
    Posts
    726
    Reputation
    10
    Thanks
    333
    My Mood
    Cheeky
    Quote Originally Posted by XarutoUsoCrack View Post
    MEU DEUS VEIO.



    VC INICIALIZA 2 DWORD com nome vTable e chama elas como 16 e 17 sendo na CreateDevice deve ser vTable[0] e vTable[1], PQP QUE BURIÇ !

    KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
    A minha função de Criar Dispositivo ou pegar o addr D3D usa 16 e 17, não existe só uma...

  7. #6
    Disconect's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by |WE11ington| View Post
    O problema de detectar em seu caso não sei te dizer o que é, pois bem, não sei como esta o seu código após esse trecho que você mencionou. Mas em Windows 7 32 Bits, funciona dessa maneira com esse detour modo:

    Code:
    LPVOID DetourCreate( PBYTE pbTargetFunction, PBYTE pbDetourFunction, INT intSize )
    {
        DWORD dwProtect;
        PBYTE pbDetour = ( PBYTE  )malloc( intSize + 5 );
    
        VirtualProtect( pbTargetFunction, intSize, PAGE_EXECUTE_READWRITE, &dwProtect );
        memcpy( pbDetour, pbTargetFunction, intSize );
        pbDetour += intSize;
    
        *( BYTE * ) ( pbDetour + 0 ) = 0xE9;
        *( DWORD * )( pbDetour + 1 ) = ( DWORD )( pbTargetFunction + intSize - pbDetour ) - 5;
    
        *( BYTE * ) ( pbTargetFunction + 0 ) = 0xB8;
        *( DWORD * )( pbTargetFunction + 1 ) = ( DWORD )( pbDetourFunction );
        *( WORD * ) ( pbTargetFunction + 5 ) = 0xE0FF;
    
        for( INT i = 7; i < intSize; i++ )
            *( BYTE * )( pbTargetFunction + i ) = 0x90;
    
        VirtualProtect( pbTargetFunction, intSize, dwProtect, &dwProtect );
    
        return ( pbDetour - intSize );
    }
    Code:
    DWORD vTable[2] = {0};
    CreateDevice(vTable);
    
    oReset   = ( tReset )   DetourCreate( ( PBYTE )vTable[16], ( PBYTE )&ResetDevice,  ResetSize );
    oPresent = ( tPresent ) DetourCreate( ( PBYTE )vTable[17], ( PBYTE )&PresetDevice, PresentSize );
    Windows 7 32 e 64 Bits.

    ResetSize com esses valores: 11, 12, 13 e 16.
    PresentSize com esses valores: 7 e 10.
    Aqui testei com sua Detour e todos os números no ResetSize e PresntSize e deu DC, ai eu fiz funcionar assim, porem da 1 minuto dentro do Jogo ele da Conexão Encerrada:

    Code:
    VOID *DetourJUMP(BYTE *src, CONST BYTE *dst, CONST INT len)
    {
    	DWORD dwback;
    	VirtualProtect(src, len, PAGE_READWRITE, &dwback);
    	BYTE *jmp = (BYTE *)malloc(len + 5);
    	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;
    	
    	return(jmp - len);
    }
    
    void Hook(void)
    {
    	DWORD vTable[2] = {0};
    	CreateDevice(vTable);
    
    	#define ResetSize 5
    	#define PresentSize 5
    	#define DetourType DetourJUMP
    	#define DetourVar1 0
    	#define DetourVar2 1
    
    	oReset   = ( tReset )   DetourType( ( PBYTE )vTable[DetourVar1], ( PBYTE )&ResetDevice,  ResetSize );
    	oPresent = ( tPresent ) DetourType( ( PBYTE )vTable[DetourVar2], ( PBYTE )&PresetDevice, PresentSize );
    	
    }

  8. #7
    |WE11ington|'s Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    37
    Quote Originally Posted by Disconect View Post
    Aqui testei com sua Detour e todos os números no ResetSize e PresntSize e deu DC, ai eu fiz funcionar assim, porem da 1 minuto dentro do Jogo ele da Conexão Encerrada:

    Code:
    VOID *DetourJUMP(BYTE *src, CONST BYTE *dst, CONST INT len)
    {
    	DWORD dwback;
    	VirtualProtect(src, len, PAGE_READWRITE, &dwback);
    	BYTE *jmp = (BYTE *)malloc(len + 5);
    	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;
    	
    	return(jmp - len);
    }
    
    void Hook(void)
    {
    	DWORD vTable[2] = {0};
    	CreateDevice(vTable);
    
    	#define ResetSize 5
    	#define PresentSize 5
    	#define DetourType DetourJUMP
    	#define DetourVar1 0
    	#define DetourVar2 1
    
    	oReset   = ( tReset )   DetourType( ( PBYTE )vTable[DetourVar1], ( PBYTE )&ResetDevice,  ResetSize );
    	oPresent = ( tPresent ) DetourType( ( PBYTE )vTable[DetourVar2], ( PBYTE )&PresetDevice, PresentSize );
    	
    }
    Impossível estar acontecendo isso com os sizes que lhe informei, a não ser que eu esteja equivocado em relação a sua edição de Windows 7.
    Qual é a edição do seu Windows 7: Starter, Home Basic, Home Premium, Professional, Enterprise ou Ultimate ? Informe também se está com o Service Pack 1.

    Porque pelo visto com os sizes que você testou condiz que está gerando crash sem iniciar o jogo, correto ?

  9. #8
    The Vector's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    45
    My Mood
    Amazed
    Pode Ser sua hook.




    Vector - USS Alpha Team


    Want Talk to Me ?

    email: the_vector@live.com
    Skype: TheVectoor

  10. #9
    Disconect's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by |WE11ington| View Post
    Impossível estar acontecendo isso com os sizes que lhe informei, a não ser que eu esteja equivocado em relação a sua edição de Windows 7.
    Qual é a edição do seu Windows 7: Starter, Home Basic, Home Premium, Professional, Enterprise ou Ultimate ? Informe também se está com o Service Pack 1.

    Porque pelo visto com os sizes que você testou condiz que está gerando crash sem iniciar o jogo, correto ?

    Windows 7 Professional
    Service Pack 1
    Notebook Dell
    Intel Core i3
    Sistema de 32 Bits

    e sim, com detour e sizes que você me passou, gera crash antes de entra na tela de login do CA.

    Já com esse tipo que lhe mostrei funciona, entra no lobby, entra na sala, e entra no Jogo, ai demora uns menos de 2 min da Conexão encerrada.

    OBS: Base do Vector -> Vector Hot Simple v1.0 é em Hotkeys e não ativa as funçoes...
    Last edited by Disconect; 12-13-2013 at 06:58 PM.

Similar Threads

  1. WR D3D Hook - =o - 03/22/07
    By Dave84311 in forum Hack/Release News
    Replies: 14
    Last Post: 10-06-2007, 09:59 AM
  2. tut How to hook tut 6
    By llvengancell in forum WarRock - International Hacks
    Replies: 1
    Last Post: 06-26-2007, 03:24 PM
  3. D3D hooking tutorial 5 i think
    By llvengancell in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-26-2007, 03:09 PM
  4. How can i hook the punkbuster?
    By TheRedEye in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-27-2007, 12:34 PM
  5. New Hacks Announced & Warrock DX Hook Update
    By Dave84311 in forum Hack/Release News
    Replies: 17
    Last Post: 03-02-2007, 03:54 PM