Honorable Member Distraught 5907 Posted September 5, 2020 Honorable Member Share Posted September 5, 2020 (edited) M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hey again Yesterday I was looking into mss32.dll and just found out this is the library being responsible for loading asi, mix, m3d, etc.. files. So I made a library that will hook the Miles Sound System so that it won't load unwanted files, only what is needed. Download: https://distraught.hu/DistraughtProtector/ VirusTotal: This is the hidden content, please Sign In or Sign Up There are 3 files in the zip: .lib -> put it in your extern/lib folder .h -> put it in your extern/include folder .dll -> put it in your client Open UserInterface/UserInterface.cpp and find the WinMain function. Add this to the beginning of the function: DistraughtProtector::Initialize(); DistraughtProtector::SetFileBlockedCallback(&HackerDetected); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\mssmp3.asi", 125952); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\mssvoice.asi", 197120); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\mssa3d.m3d", 83456); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\mssds3d.m3d", 70656); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\mssdx7.m3d", 80896); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\msseax.m3d", 103424); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\mssrsx.m3d", 354816); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\msssoft.m3d", 67072); DistraughtProtector::AddAllowedMilesProviderLibrary("miles\\mssdsp.flt", 93696); You have to specify the files that are enabled to load by the Miles Sound System (path, file size in bytes). And add this before that function: static void _stdcall HackerDetected(const char* blockedFile) { MessageBox(NULL, blockedFile, ApplicationStringTable_GetStringz(IDS_APP_NAME, "APP_NAME"), MB_ICONSTOP); } This is a callback where you get notified if the user would load a file that he/she shouldn't You don't have to specify a callback, in that case remove DistraughtProtector::SetFileBlockedCallback(&HackerDetected); from WinMain and the client just simply won't load the dangerous files. Here's an image what it should look like: After that just add DistraughtProtector::Destroy(); to the end of WinMain (surely before the return!). Hope you like it! If you have ideas what new features should I add to the library, let me know in the comments! Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 35 1 6 2 20 Link to comment Share on other sites More sharing options...
Management AZICKO 7349 Posted September 5, 2020 Management Share Posted September 5, 2020 VirusTotal please Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
Honorable Member Distraught 5907 Posted September 5, 2020 Author Honorable Member Share Posted September 5, 2020 4 minutes ago, ASIKOO said: VirusTotal please Done. This is the hidden content, please Sign In or Sign Up 12 1 3 1 4 Link to comment Share on other sites More sharing options...
Recommended Posts