Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 04:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HOWTO]Doing AntiHack System for C++ Coders.

Discussion on [HOWTO]Doing AntiHack System for C++ Coders. within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 115
Received Thanks: 50
[HOWTO]Doing AntiHack System for C++ Coders.

Hello com,
Hacks are our trouble.So I have developed it.
Its stoping injection.
WARNING1 specially for padmak because he can help me or tim: When i wanna do it .mix data for work without dll inject itz not work, i get ?????? error.

WARNING2 You must make injector for inject that dll for protect your server.
You can make hidden injector.

Source :

PHP Code:
#include <direct.h>
#include <Windows.h>
#include <TlHelp32.h>
#include <iostream>
using namespace std;
void StartDefending();
void BlockInject(HANDLECHAR*, CHAR*);
HWND hwnd;

BOOL APIENTRY DllMainHMODULE hModule,
                       
DWORD  ul_reason_for_call,
                       
LPVOID lpReserved
                     
)
{
    switch (
ul_reason_for_call)
    {
    case 
DLL_PROCESS_ATTACH:
        
StartDefending();
    case 
DLL_THREAD_ATTACH:
    case 
DLL_THREAD_DETACH:
    case 
DLL_PROCESS_DETACH:
        break;
    }
    return 
TRUE;
}
void StartDefending(){
    
BlockInject(GetCurrentProcess(), "NTDLL.DLL""LdrLoadDll");
    
cout << "Protection started!" << endl;
    
system("pause");
}

void BlockInject(HANDLE hProcessCHARlibNameCHARapiName

    
DWORD pRet[] = {0xC3};
    
WriteProcessMemory(hProcess, (LPVOID)(VOID*)GetProcAddress(LoadLibrary(libName), apiName), (LPVOID)pRetsizeof(pRet), 0);

Simple Video [TR] :


Block to SwitchBot V3[Thats not good tutorial because it can work like .mix but we can edit mss32.dll which player know mss32's inside] :


I have writen slowly because I have broken my left arm.
Have fun
Attached Files
File Type: rar FR2SHELL.rar (12.8 KB, 1137 views)
JoinClup is offline  
Thanks
8 Users
Old 04/25/2012, 22:45   #2
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,358
I think everyone who can program in c++ knows how to stop LoadLibrary..
Additionally using "WriteProcessMemory" for writing into the own memory is bad.
use memcpy or in this case just *(BYTE*).
Mi4uric3 is offline  
Thanks
1 User
Old 04/25/2012, 22:49   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 115
Received Thanks: 50
Quote:
Originally Posted by Mi4uric3 View Post
I think everyone who can program in c++ knows how to stop LoadLibrary..
Additionally using "WriteProcessMemory" for writing into the own memory is bad.
use memcpy or in this case just *(BYTE*).
yes, everyone knows but who porgramming in c++ but its for players.do u think players know ?

WriteProcessMemory -- memcpy or copymemory is better too i think
JoinClup is offline  
Old 04/25/2012, 23:04   #4
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,358
Quote:
Originally Posted by JoinClup View Post
yes, everyone knows but who porgramming in c++ but its for players.do u think players know?
Well, you named the Thread "[...] for C++ Coders", not me..
Mi4uric3 is offline  
Old 04/25/2012, 23:43   #5
 
balika01's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 179
Received Thanks: 350
crash...
balika01 is offline  
Old 04/26/2012, 16:40   #6
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 39
When i inject the dll, it give me an error: msvcp100d.dll missing
but i have this dll in system32 XD
Niks90 is offline  
Old 04/26/2012, 20:21   #7
 
balika01's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 179
Received Thanks: 350
Quote:
Originally Posted by Niks90 View Post
When i inject the dll, it give me an error: msvcp100d.dll missing
but i have this dll in system32 XD
not 100, 110!
balika01 is offline  
Old 04/27/2012, 08:33   #8
 
Opium™'s Avatar
 
elite*gold: 655
Join Date: Jan 2011
Posts: 82
Received Thanks: 49
Quote:
Originally Posted by JoinClup View Post
Hello com,
Hacks are our trouble.So I have developed it.
Its stoping injection.
WARNING1 specially for padmak because he can help me or tim: When i wanna do it .mix data for work without dll inject itz not work, i get ?????? error.

WARNING2 You must make injector for inject that dll for protect your server.
You can make hidden injector.

Source :

PHP Code:
#include <direct.h>
#include <Windows.h>
#include <TlHelp32.h>
#include <iostream>
using namespace std;
void StartDefending();
void BlockInject(HANDLECHAR*, CHAR*);
HWND hwnd;

BOOL APIENTRY DllMainHMODULE hModule,
                       
DWORD  ul_reason_for_call,
                       
LPVOID lpReserved
                     
)
{
    switch (
ul_reason_for_call)
    {
    case 
DLL_PROCESS_ATTACH:
        
StartDefending();
    case 
DLL_THREAD_ATTACH:
    case 
DLL_THREAD_DETACH:
    case 
DLL_PROCESS_DETACH:
        break;
    }
    return 
TRUE;
}
void StartDefending(){
    
BlockInject(GetCurrentProcess(), "NTDLL.DLL""LdrLoadDll");
    
cout << "Protection started!" << endl;
    
system("pause");
}

void BlockInject(HANDLE hProcessCHARlibNameCHARapiName

    
DWORD pRet[] = {0xC3};
    
WriteProcessMemory(hProcess, (LPVOID)(VOID*)GetProcAddress(LoadLibrary(libName), apiName), (LPVOID)pRetsizeof(pRet), 0);

Simple Video [TR] :



Block to SwitchBot V3[Thats not good tutorial because it can work like .mix but we can edit mss32.dll which player know mss32's inside] :



I have writen slowly because I have broken my left arm.
Have fun
Thanks
Opium™ is offline  
Old 04/27/2012, 11:03   #9
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 39
Quote:
Originally Posted by balika01 View Post
not 100, 110!
Yes, 110 sorry
Niks90 is offline  
Old 04/27/2012, 12:37   #10
 
elite*gold: 0
Join Date: Aug 2010
Posts: 115
Received Thanks: 50
someones asking to me how i inject to my client
im answering :

Make hidden injector
JoinClup is offline  
Old 04/27/2012, 19:12   #11
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 39
JoinClup, solutions for missing dll's?
Niks90 is offline  
Old 04/27/2012, 19:40   #12
 
elite*gold: 0
Join Date: Nov 2011
Posts: 26
Received Thanks: 2
thanks
TheRevoLveR is offline  
Old 05/10/2012, 11:25   #13
 
elite*gold: 0
Join Date: Apr 2010
Posts: 30
Received Thanks: 5
tmmda bu ntdllyi bloke ediyor daha sonrasında kullanıcı gene ntdllyi injecte ederek dllleri yükleyebilir
koraycan123 is offline  
Old 05/10/2012, 18:00   #14
 
elite*gold: 0
Join Date: Aug 2010
Posts: 115
Received Thanks: 50
bunu bir oyuncu yapabilir mi ve bu test geliştirilebilir.
JoinClup is offline  
Old 05/10/2012, 18:01   #15
 
elite*gold: 0
Join Date: Oct 2009
Posts: 382
Received Thanks: 161
ahaha oyuncu yaparmı oyuncu yaparmı zaten hileyi engellemek için yapıyon profesyonel bir oyuncu hertürlü yapar
vpser is offline  
Reply


Similar Threads Similar Threads
Poker System Coders Team
10/22/2011 - CO2 Private Server - 19 Replies
hello guys . I`m Looking for a team of coders to work on poker system ! we are all know no one can code the poker system alone , so we have to create a poker system coders team. if anyone want to join the team , he have to tell us that here in this thread



All times are GMT +1. The time now is 04:48.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.