Basic Anti-Hack

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

You can explore a lot more of that there and with you. Good luck. 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.
 
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.
 
Newbie Spellweaver
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.
 
Newbie Spellweaver
Joined
Aug 31, 2020
Messages
36
Reaction score
3
Orby Hi , what does this basic antihack?
 
Experienced Elementalist
Joined
Oct 14, 2015
Messages
293
Reaction score
86
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
148
Reaction score
20
If the hack detects what can happen? Its automatically closed the game or what? Hope you update this orby thanks