Is there any other API Hook library except Detours?

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Junior Cracker
Onaylı Üye
Katılım
19 Ocak 2020
Mesajlar
52
Tepki puanı
1
Yaş
24
Sosyal
6 HİZMET YILI
I'm using detours from Microsoft, but most of ac detects everything detours do.
Bağlantıları görmek için lütfen Giriş Yap

Is there any better API Hook library?
OR do I have to make my own hook library to inject my codes?

Thanks.
 
CoreCheat CSGO
Griffin Premium
Katılım
10 May 2016
Mesajlar
1,766
Çözümler
5
Tepki puanı
720
Ödüller
14
Yaş
25
Sosyal
10 HİZMET YILI
I think api which made yourself is always better bc u can fix if the error happens.

U can search for other projects to see how they hook or u can use "blackbone".

If you want to inject codes externally (shellcode etc.) just alloc memory and wpm your shellcode...
 
Junior Cracker
Onaylı Üye
Katılım
19 Ocak 2020
Mesajlar
52
Tepki puanı
1
Yaş
24
Sosyal
6 HİZMET YILI
Thanks, mate.
One more thing, would you suggest me any project to look around how to hook?
 
Junior Cracker
Onaylı Üye
Katılım
19 Ocak 2020
Mesajlar
52
Tepki puanı
1
Yaş
24
Sosyal
6 HİZMET YILI
Thanks. I'll subscibe.
 
Onaylı Üye
Katılım
16 May 2019
Mesajlar
55
Tepki puanı
0
Ödüller
2
7 HİZMET YILI
C++:
void HookFunction(void* original, void* nova, int tamanho, BYTE* bytes_salvos)
{
    DWORD protect;
    VirtualProtect(original, tamanho, PAGE_EXECUTE_READWRITE, &protect);
    memcpy(bytes_salvos, original, tamanho);
    DWORD diferença = ((DWORD)nova - (DWORD)original) - tamanho;
    memset(original, 0x90, tamanho);
    *(BYTE*)original = 0xE9;
    *(DWORD*)((DWORD)original +1) = diferença;
    VirtualProtect(original, tamanho, protect, &protect);
    }
    
void UnHookFunction(void* original, BYTE* bytes_original, int tamanho)
{
    DWORD protect;
    VirtualProtect(original, tamanho, PAGE_EXECUTE_READWRITE, &protect);
    memcpy(original, bytes_original, tamanho);
    VirtualProtect(original, tamanho, protect, &protect);
    
    }
 
Junior Cracker
Onaylı Üye
Katılım
19 Ocak 2020
Mesajlar
52
Tepki puanı
1
Yaş
24
Sosyal
6 HİZMET YILI
[QUOTE = "stigmata411, post: 1212533, member: 1569266"]
[CODE = cpp] void HookFunction (void * original, void * nova, int tamanho, BYTE * bytes_salvos)
{
DWORD protect;
VirtualProtect (original, tamanho, PAGE_EXECUTE_READWRITE, & protect);
memcpy (bytes_salvos, original, tamanho);
DWORD diferença = ((DWORD) nova - (DWORD) original) - tamanho;
memset (original, 0x90, tamanho);
* (BYTE *) original = 0xE9;
* (DWORD *) ((DWORD) original +1) = diferença;
VirtualProtect (original, tamanho, protect, & protect);
}

void UnHookFunction (void * original, BYTE * bytes_original, int tamanho)
{
DWORD protect;
VirtualProtect (original, tamanho, PAGE_EXECUTE_READWRITE, & protect);
memcpy (original, bytes_original, tamanho);
VirtualProtect (original, tamanho, protect, & protect);

}

[/ CODE]
[/ QUOTE]

Cool. Thansk. I'll try
 
●★★●★★●★★●★★●
Süper Üye
Katılım
10 Şub 2020
Mesajlar
763
Çözümler
1
Tepki puanı
22
Ödüller
6
6 HİZMET YILI
C++:
void HookFunction(void* original, void* nova, int tamanho, BYTE* bytes_salvos)
{
    DWORD protect;
    VirtualProtect(original, tamanho, PAGE_EXECUTE_READWRITE, &protect);
    memcpy(bytes_salvos, original, tamanho);
    DWORD diferença = ((DWORD)nova - (DWORD)original) - tamanho;
    memset(original, 0x90, tamanho);
    *(BYTE*)original = 0xE9;
    *(DWORD*)((DWORD)original +1) = diferença;
    VirtualProtect(original, tamanho, protect, &protect);
    }
   
void UnHookFunction(void* original, BYTE* bytes_original, int tamanho)
{
    DWORD protect;
    VirtualProtect(original, tamanho, PAGE_EXECUTE_READWRITE, &protect);
    memcpy(original, bytes_original, tamanho);
    VirtualProtect(original, tamanho, protect, &protect);
   
    }
thanks you for sharing i'll try it too:mum:
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst