SLyFeLLowTR 1
SLyFeLLowTR
TGamesZeus 1
TGamesZeus
Best Studio 1
Best Studio
berkmenoo 1
berkmenoo
InfernoShade 1
InfernoShade
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Agora Metin2 1
Agora Metin2
Bvural41 1
Bvural41
onur akbaş 1
onur akbaş
IronTalonX 1
IronTalonX
Hikaye Ekle

Client Protection System – Auto Detection Name and Close [C++]

  • Konuyu başlatan Konuyu başlatan muchomor1337
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 2
  • Görüntüleme Görüntüleme 725

muchomor1337

Level 2
Üye
Katılım
24 May 2018
Konular
35
Mesajlar
64
Online süresi
16d 13h
Reaksiyon Skoru
89
Altın Konu
0
TM Yaşı
8 Yıl 22 Gün
Başarım Puanı
97
Yaş
34
MmoLira
8,563
DevLira
75
Ticaret - 0%
0   0   0

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

English:

Hello, today I am sharing a code I used for client protection. I no longer need it because I now use much more advanced tools and no longer rely on it. The code scans all possible names from an array, and if it detects a specific phrase, it completely shuts down the game, saves a protection log in a .txt file, and informs the player about the shutdown. The code detects open names in folders, browsers, Discord, Notepad, or any other application. As soon as any phrase from the array appears, the client is automatically closed, and the user is notified about the detection of suspicious activity.

Türkçe:
Merhaba, bugün eskiden müşteri koruması için kullandığım bir kodu paylaşıyorum. Artık daha gelişmiş araçlar kullandığım için bu koda ihtiyacım kalmadı ve kullanmıyorum. Kod, bir dizideki tüm olası isimleri tarar ve belirli bir ifade tespit edilirse oyunu tamamen kapatır, bir .txt dosyasına koruma mesajı kaydeder ve oyuncuyu oyun kapanışı hakkında bilgilendirir. Kod, klasörlerde, tarayıcılarda, Discord'da, Not Defteri'nde veya herhangi bir uygulamada açık isimleri tespit eder. Dizideki bir ifade göründüğünde, istemci otomatik olarak kapanır ve kullanıcıya şüpheli bir hareketin tespit edildiği bilgisi verilir.

Code:
Kod:
Userinterface.cpp

#include <fstream>
#include <string>
#include <shellapi.h>
#include <regex>
#include <thread>
#include <chrono>
#include <windows.h>

std::vector<std::string> windowBlackList = {
    "inject",
    "lalaker",
    "hlbot",
    "eterwizard",
    "etermgr",
    "m2bob",
    "netlimiter",
    "metin2mod",
    "wireshark",
    "unpack",
    "clicker",
    "debugger",
    "Wiersz polecenia",
    "ymir work",
    "stmod",
    "hlb0t",
    "metin2 bot",
    "m24pro"
};

static BOOL CALLBACK FindBlacklistWindow(HWND hWnd, LPARAM lparam)
{
    int length = GetWindowTextLength(hWnd);
    char* buffer = new char[length + 1];
    GetWindowTextA(hWnd, buffer, length + 1);
    std::string windowTitle(buffer);

    if (IsWindowVisible(hWnd) && length != 0)
    {
        for (const auto& blacklisted : windowBlackList)
        {
            if (std::regex_search(windowTitle, std::regex(blacklisted, std::regex_constants::icase)))
            {
                std::ofstream textfile("protection.txt", std::ios::out | std::ios::app);
                textfile << "Protection Alert: Suspicious activity detected. Client terminated." << std::endl;
                ShellExecuteA(NULL, "open", "protection.txt", NULL, NULL, SW_SHOWNORMAL);
                TerminateProcess(GetCurrentProcess(), 0);
                exit(0);
            }
        }
    }
    delete[] buffer;
    return TRUE;
}

void ScanForBlockedWindows()
{
    while(true)
    {
        EnumWindows(FindBlacklistWindow, NULL);
        std::this_thread::sleep_for(std::chrono::milliseconds(200));
    }
}

void Protection()
{
    CreateThread(NULL, NULL, LPTHREAD_START_ROUTINE(ScanForBlockedWindows), NULL, NULL, 0);
}

////////////////////////

Find:

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
    
Add after:

Protection();
 
Thanks for subscribe.
 
Thanks for subscribe.
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst