EMO Style ForumPro - Hos Geldiniz
[Detours] Api hook Winsock Send /Recv Uyeols10

Join the forum, it's quick and easy

EMO Style ForumPro - Hos Geldiniz
[Detours] Api hook Winsock Send /Recv 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

kutu  loot  pointer  

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
[Detours] Api hook Winsock Send /Recv I_icon_minitimeCuma Ağus. 29, 2014 8:33 am tarafından Hello EMO

» goldenchase.net maden yaparak para kazanma
[Detours] Api hook Winsock Send /Recv I_icon_minitimeCuma Ağus. 29, 2014 8:18 am tarafından Hello EMO

» etichal hacker görsel egitim seti
[Detours] Api hook Winsock Send /Recv I_icon_minitimeÇarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO

» KO TBL Source C#
[Detours] Api hook Winsock Send /Recv I_icon_minitimePtsi Ara. 09, 2013 6:36 am tarafından Hello EMO

» x86 Registers
[Detours] Api hook Winsock Send /Recv I_icon_minitimeC.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO

» [Tutorial] Pegando Address, Pointers de WYD
[Detours] Api hook Winsock Send /Recv I_icon_minitimeÇarş. Tem. 10, 2013 7:25 am tarafından Hello EMO

» [Tutorial] Pegando Address, Pointers de CS Metodo²
[Detours] Api hook Winsock Send /Recv I_icon_minitimeÇarş. Tem. 10, 2013 7:23 am tarafından Hello EMO

» [Tutorial] Aprendendo basico deASM OLLYDBG
[Detours] Api hook Winsock Send /Recv I_icon_minitimeÇarş. Tem. 10, 2013 7:22 am tarafından Hello EMO

» Basic C# DLL injector
[Detours] Api hook Winsock Send /Recv I_icon_minitimePtsi Tem. 08, 2013 7:48 am tarafından Hello EMO

Reklam

[Detours] Api hook Winsock Send /Recv

Aşağa gitmek

[Detours] Api hook Winsock Send /Recv Empty [Detours] Api hook Winsock Send /Recv

Mesaj tarafından EMO C.tesi Haz. 25, 2011 4:55 am

örenek olarak winsock send/recv apilerini hook ediyorum bunu messagebox gibi fonksyonlardada kullanabilirsiniz tum windows apileri icin gecerli


Not

Recv cıktısını konsola yazma iptal sorun paket len paket ne gelirse gelsin 0x40000 veriyo sorunu cözemedim belki siz cözersiniz [Detours] Api hook Winsock Send /Recv 1[Detours] Api hook Winsock Send /Recv Note




Kod:
#include "stdafx.h"
#include
#include
#include "detours.h"
#include
#include
#include
#include
#pragma comment(lib, "detours.lib")
#pragma comment(lib, "wsock32.lib")


int hCrt, i;
FILE *hf;
HANDLE hConsole;

// paketleri konsole yazmak icin
void __cdecl onPacketAction(const char *buf,int pSiz,int Wtype) {
unsigned char* cecil=(unsigned char*) buf;
int size=pSiz;

int i=0;
if (Wtype == 1){
printf("Size[%d]Send->",size);
}else{
printf("Size[%d]Recv->",size);
}

for (i=0;i<=size-1;i++){
printf("%02X",cecil[i]);
}
printf("\n");
}

// gercek apiler
DETOUR_TRAMPOLINE(int WINAPI Gercek_send(SOCKET a0,char* a1, int a2, int a3), send);
DETOUR_TRAMPOLINE(int WINAPI Gercek_recv(SOCKET a0,char* a1, int a2, int a3), recv);
////////////////////


//hook api fonksyonları
int WINAPI Hook_send(SOCKET sock, char* buf, int len, int flags)
{
onPacketAction(buf,len,1);
return Gercek_send(sock, buf, len, flags);
}
int WINAPI Hook_recv(SOCKET sock, char* buf, int len, int flags)
{
//onPacketAction(buf,len,0);
return Gercek_recv(sock, buf, len, flags);
}
////////////////////



BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
{
if ( reason == DLL_PROCESS_ATTACH )
{
// konsol acılması icin
AllocConsole();
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
hCrt = _open_osfhandle((long) GetStdHandle(STD_OUTPUT_HANDLE), _O_TEXT);
hf = _fdopen( hCrt, "w" );
*stdout = *hf;
i = setvbuf( stdout, NULL, _IONBF, 0 );
SetConsoleTitle("Test");
SetConsoleOutputCP(65001);
/////////////////////////////////////

// kendi send apimize yonlendiriyoruz
DetourFunctionWithTrampoline((PBYTE)Gercek_send,(PBYTE)Hook_send);
DetourFunctionWithTrampoline((PBYTE)Gercek_recv,(PBYTE)Hook_recv);
////////////////////////
}
else if ( reason == DLL_PROCESS_DETACH )
{
DetourRemove((PBYTE)Gercek_send,(PBYTE)Hook_send);
DetourRemove((PBYTE)Gercek_recv,(PBYTE)Hook_recv);
}
return true;
}


[Detours] Api hook Winsock Send /Recv NCodeResim Küçültülmüştür.Orjinal Boyutlarına Ulaşmak İçin Tıklayın 800x386
[Detours] Api hook Winsock Send /Recv 1453


detours download

https://rapidshare.com/files/1251174273/detour.rar
EMO
EMO
EMO Team
EMO Team

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

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