Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Basic Anti-Hack

Experienced Elementalist
Joined
Oct 14, 2015
Messages
290
Reaction score
83
You must create a .cpp and .header

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

ZAntiHack.cpp
Code:
#include "stdafx.h"
#include "ZAntiHack.h"

bool IsAddressHooked(unsigned long address){
    BYTE* offsetValue = (BYTE*)address;
    return (*offsetValue == 0xE8 || *offsetValue == 0xE9 || *offsetValue == 0x7E || *offsetValue == 0x74 || *offsetValue == 0xC3);
}

void Main(void*)
{
  SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST);
  DWORD getTickCount = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetTickCount");
  DWORD queryPerformanceCounter = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "QueryPerformanceCounter");
  while(1)
  {
   Sleep(RandomNumber(5000, 7000));
   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);

I will update if I have time left. :rolleyes:
 
Last edited:
Junior Spellweaver
Joined
Feb 22, 2011
Messages
114
Reaction score
6
try to share anti hack from other source like ugg :)
 
Last edited:
Junior Spellweaver
Joined
Feb 22, 2011
Messages
114
Reaction score
6
how about artic or fgunz maybe there's something new one than you posted here right now, i hope i didn't offend you.
 
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
how about artic or fgunz maybe there's something new one than you posted here right now, i hope i didn't offend you.

There is no need to do that since the codes of those servers have been released decades ago, you will have to extract it yourself and make them work.
 
Joined
Mar 15, 2014
Messages
97
Reaction score
16
I liked it, it will be very useful for you do not know how to program and have none, at least this is updated.
 
Experienced Elementalist
Joined
Oct 14, 2015
Messages
290
Reaction score
83
It seems that it checks every 5 to 7 seconds if addresses are hooked or not
After opening the game it detects hack in 5 seconds or 7 seconds randomly.
 
Junior Spellweaver
Joined
Aug 26, 2020
Messages
145
Reaction score
18
If the hack detects what can happen? Its automatically closed the game or what? Hope you update this orby thanks :)
 
Back
Top