EMO Style ForumPro - Hos Geldiniz
[WIN x64]API Hook[Code overwriting] Uyeols10

Join the forum, it's quick and easy

EMO Style ForumPro - Hos Geldiniz
[WIN x64]API Hook[Code overwriting] Uyeols10
EMO Style ForumPro - Hos Geldiniz
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Giriş yap

Şifremi unuttum

Istatistikler
Toplam 203 kayıtlı kullanıcımız var
Son kaydolan kullanıcımız: crayzboy76

Kullanıcılarımız toplam 1186 mesaj attılar bunda 862 konu
Tarıyıcı
 Kapı
 Indeks
 Üye Listesi
 Profil
 SSS
 Arama
Arama
 
 

Sonuç :
 


Rechercher çıkıntı araştırma

RSS akısı


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 


Anahtar-kelime

pointer  loot  kutu  

Kimler hatta?
Toplam 3 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 3 Misafir

Yok

[ Bütün listeye bak ]


Sitede bugüne kadar en çok 217 kişi C.tesi Tem. 29, 2017 1:46 am tarihinde online oldu.
En son konular
» İnternetten Para Kazandıran Oyun ! Ödeme Alt Limiti Yok ! DEV KONU
[WIN x64]API Hook[Code overwriting] I_icon_minitimeCuma Ağus. 29, 2014 8:33 am tarafından Hello EMO

» goldenchase.net maden yaparak para kazanma
[WIN x64]API Hook[Code overwriting] I_icon_minitimeCuma Ağus. 29, 2014 8:18 am tarafından Hello EMO

» etichal hacker görsel egitim seti
[WIN x64]API Hook[Code overwriting] I_icon_minitimeÇarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO

» KO TBL Source C#
[WIN x64]API Hook[Code overwriting] I_icon_minitimePtsi Ara. 09, 2013 6:36 am tarafından Hello EMO

» x86 Registers
[WIN x64]API Hook[Code overwriting] I_icon_minitimeC.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO

» [Tutorial] Pegando Address, Pointers de WYD
[WIN x64]API Hook[Code overwriting] I_icon_minitimeÇarş. Tem. 10, 2013 7:25 am tarafından Hello EMO

» [Tutorial] Pegando Address, Pointers de CS Metodo²
[WIN x64]API Hook[Code overwriting] I_icon_minitimeÇarş. Tem. 10, 2013 7:23 am tarafından Hello EMO

» [Tutorial] Aprendendo basico deASM OLLYDBG
[WIN x64]API Hook[Code overwriting] I_icon_minitimeÇarş. Tem. 10, 2013 7:22 am tarafından Hello EMO

» Basic C# DLL injector
[WIN x64]API Hook[Code overwriting] I_icon_minitimePtsi Tem. 08, 2013 7:48 am tarafından Hello EMO

Reklam

[WIN x64]API Hook[Code overwriting]

Aşağa gitmek

[WIN x64]API Hook[Code overwriting] Empty [WIN x64]API Hook[Code overwriting]

Mesaj tarafından Hello EMO Paz Ağus. 14, 2011 6:23 pm

[quote='eKKiM' pid='14358780' dateline='1312612948']
Hi

i'm releasing an old piece of code i used for hooking on x64 processes.
This method is a bit more advanced then IAT hooking, instead i use code overwriting which requires some assembler..

the code is BUGGY! but works in (some/most) cases.
I wrote it long time ago when i was VERY n00b xD.
so this function is far complete. i dont check if the winapi's fail etc..

However because i see a lot of people is intersted over here in DLL Injection and hooking, i decided to release it.
You should be able to find out the basics of this hooking method.

another little side note: you need a length disassembler.
You could use diStorm to disassemble it and get length from it

[php]void APIHook(DWORD64 HookFunc, DWORD64 MyFunc, DWORD64 *DetourFunc)
{
BYTE lpBackup[20];
DWORD64 dwCalc;
int iLength = 0;
SIZE_T result;

BYTE jmp[13] = { 0x49, //mov
0xBB, //r11
0x00, //address (64-bit)
0x00, // ..
0x00, // ..
0x00, // ..
0x00, // ..
0x00, // ..
0x00, // ..
0x00, // ..
0x41, //??
0xff, //jmp
0xe3 }; //r11

BYTE trampBuild[40] = { 0x90, //original data (filled with NOPs)
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // .. (15 bytes is max opcode)
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x90, // ..
0x49, //mov
0xBB, //r11
0x00, //address (64-bit)
0x00, // ..
0x00, // ..
0x00, // ..
0x00, // ..
0x00, // ..
0x00, // ..
0x00, // ..
0x41, //??
0xff, //jmp
0xe3 }; //r11

BYTE *pTramp = (BYTE *) VirtualAlloc(NULL, sizeof(trampBuild), MEM_COMMIT, PAGE_EXECUTE_READWRITE);

while (iLength < sizeof(jmp))
iLength = iLength + LDE(HookFunc + (DWORD64) iLength, 64);

ReadProcessMemory(GetCurrentProcess(), (LPVOID)HookFunc, lpBackup, iLength, 0);

ReadProcessMemory(GetCurrentProcess(), (LPVOID)HookFunc, lpBackup, iLength, 0);
memcpy(&trampBuild[0], &lpBackup, iLength);

memcpy(&jmp[2], &MyFunc, Cool;
WriteProcessMemory(GetCurrentProcess(), (LPVOID)HookFunc, jmp, sizeof(jmp), &result);

dwCalc = (DWORD64)((HookFunc + (DWORD64) (iLength)));
memcpy(&trampBuild[29], &dwCalc, Cool;

memcpy(&pTramp[0], &trampBuild, sizeof(trampBuild));
*DetourFunc = (DWORD64) pTramp;

ReadProcessMemory(GetCurrentProcess(), (LPVOID)HookFunc, lpBackup, iLength, 0);

return;
}[/php]

Now let's get the flaming started about my ugly code xD
[/quote]
Hello EMO
Hello EMO
EMO Team
EMO Team

Cinsiyet : Erkek
Burçlar : Yay
Yılan
Mesaj Sayısı : 935
Puan : 375093
Rep Puanı : 18
Doğum tarihi : 28/11/89
Kayıt tarihi : 21/07/09
Yaş : 34
Nerden : EMO WorlD
İş/Hobiler : RCE Student / Game Hacking / Learn Beginner C#,C++,Delphi
Lakap : EMO

https://emostyle.yetkinforum.com

Sayfa başına dön Aşağa gitmek

Sayfa başına dön

- Similar topics

 
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz