Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 30034

Basic Anti-Hack

$
0
0
You must create a .cpp and .header

You can explore a lot more of that there and with you. Good luck. :ott1:

ZAntiHack.cpp

Code:

#include "stdafx.h"
#include "ZAntiHack.h"

void Main(void*)
{
  DWORD getTickCount = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetTickCount");
  DWORD queryPerformanceCounter = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "QueryPerformanceCounter");
  while(1)
  {
  if (IsAddressHooked(getTickCount) || IsAddressHooked(queryPerformanceCounter) || GetModuleHandleA("hook.dll") != NULL)
  {
    ExitProcess(NULL);
  }
  }
}

ZAntiHack.h
Code:

extern void Main(void*);
main.cpp
Code:

(HANDLE)_beginthread(Main, 0, 0);

Viewing all articles
Browse latest Browse all 30034

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>