[Help] How to Block Hacks.

02/03/2013 06:58 tangia1426#1
How TO Block Infiltration Hack in Source with out using Q-protect
02/03/2013 11:03 Rhyder`#2
fix Infiltration.

(MsgHdr.h)
Add in front of this :
Code:
#define SNAPSHOTTYPE_CHAT	(WORD)0x0001
this :
Code:
#define PACKETTYPE_INFILTRATION					(DWORD)0xde4d833f
(DPSrvr.cpp, WS)
after BEGIN_MSG add this:
Code:
ON_MSG(  PACKETTYPE_INFILTRATION, OnInfiltration );
at the end of the file:
Code:
void CDPSrvr::OnInfiltration( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
	CUser *pUser = g_UserMng.GetUser( dpidCache, dpidUser );
	if( IsValidObj( pUser ) )
	{
		g_UserMng.RemoveUser( pUser->m_dwSerial );
	}
}
(DPSrvr.h,, WS)
Under
Code:
#ifdef __GUILD_HOUSE_MIDDLE
	void	OnGuildHouseTenderMainWnd( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long );
	void	OnGuildHouseTenderInfoWnd( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long );
	void	OnGuildHouseTenderJoin( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long );
#endif // __GUILD_HOUSE_MIDDLE
add this:
Code:
	void	OnInfiltration( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize );