Initial MSVC 2008 projects workspace
This commit is contained in:
37
l2detect/net_hook.h
Normal file
37
l2detect/net_hook.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef H_NET_HOOK
|
||||
#define H_NET_HOOK
|
||||
|
||||
#include "net_hook_defs.h"
|
||||
|
||||
/** Validates istructure alignment. returns true on OK **/
|
||||
bool Hook_ValidateAlign();
|
||||
|
||||
// my method
|
||||
void Hook_InterceptConnect_my();
|
||||
bool Hook_ValidateInterception_my();
|
||||
bool Hook_IsWinsockConnectOrig();
|
||||
bool Hook_CheckVirtualProtect();
|
||||
|
||||
int __stdcall connect_hook_my( unsigned int sock, void *sockaddr, int addrlen );
|
||||
int __stdcall connect_nohook_my( unsigned int sock, void *sockaddr, int addrlen );
|
||||
|
||||
// method of DistortNeo
|
||||
void Hook_InterceptConnect_Dis();
|
||||
int __stdcall connect_hook_Dis( unsigned int sock, void *sockaddr, int addrlen );
|
||||
|
||||
/** Connects socket to specified address
|
||||
** returns -1 on error/timeout, 0 on error */
|
||||
int connect_l2packets_my( unsigned int sock, const char *ip, unsigned short port );
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> JMP-<2D><><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//
|
||||
// old_ptr - <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// new_ptr - <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// jmp_ptr - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//
|
||||
void Hook_InterceptCall( DWORD old_ptr, DWORD new_ptr, DWORD *jmp_ptr );
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user