- Katılım
- 9 Nis 2016
- Konular
- 157
- Mesajlar
- 1,729
- Çözüm
- 59
- Online süresi
- 2mo 26d
- Reaksiyon Skoru
- 836
- Altın Konu
- 0
- TM Yaşı
- 10 Yıl 2 Ay 2 Gün
- Başarım Puanı
- 224
- MmoLira
- 4,315
- DevLira
- 51
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
EterBase/error.cpp aç
Ben github kullanıyorum github kullanırken başıma cok bela oluyodu bu txt güncellemeler sırasında bu şekilde bi çözüm uyguladım.
ErrorLog_04-02-2024_03-17-18.txt
Ben github kullanıyorum github kullanırken başıma cok bela oluyodu bu txt güncellemeler sırasında bu şekilde bi çözüm uyguladım.
ErrorLog_04-02-2024_03-17-18.txt
C++:
BUL:
LONG __stdcall EterExceptionFilter(_EXCEPTION_POINTERS* pExceptionInfo)
KOD BLOGUNU DEĞİŞTİR:
LONG __stdcall EterExceptionFilter(_EXCEPTION_POINTERS* pExceptionInfo)
{
HANDLE hProcess = GetCurrentProcess();
HANDLE hThread = GetCurrentThread();
time_t rawtime;
struct tm* timeinfo;
char buffer[80];
time(&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer, sizeof(buffer), "errorlog\\ErrorLog_%d-%m-%Y_%H-%M-%S.txt", timeinfo); // errorlog klasörünü oluştur
FILE* fException = fopen(buffer, "wt");
if (fException)
{
char module_name[256];
time_t module_time;
HMODULE hModule = GetModuleHandle(NULL);
GetModuleFileName(hModule, module_name, sizeof(module_name));
module_time = (time_t)GetTimestampForLoadedLibrary(hModule);
fprintf(fException, "Module Name: %s\n", module_name);
fprintf(fException, "Time Stamp: 0x%08x - %s\n", module_time, ctime(&module_time));
fprintf(fException, "\n");
fprintf(fException, "Exception Type: 0x%08x\n", pExceptionInfo->ExceptionRecord->ExceptionCode);
fprintf(fException, "\n");
CONTEXT& context = *pExceptionInfo->ContextRecord;
fprintf(fException, "eax: 0x%08x\tebx: 0x%08x\n", context.Eax, context.Ebx);
fprintf(fException, "ecx: 0x%08x\tedx: 0x%08x\n", context.Ecx, context.Edx);
fprintf(fException, "esi: 0x%08x\tedi: 0x%08x\n", context.Esi, context.Edi);
fprintf(fException, "ebp: 0x%08x\tesp: 0x%08x\n", context.Ebp, context.Esp);
fprintf(fException, "\n");
STACKFRAME stackFrame = { 0, };
stackFrame.AddrPC.Offset = context.Eip;
stackFrame.AddrPC.Mode = AddrModeFlat;
stackFrame.AddrStack.Offset = context.Esp;
stackFrame.AddrStack.Mode = AddrModeFlat;
stackFrame.AddrFrame.Offset = context.Ebp;
stackFrame.AddrFrame.Mode = AddrModeFlat;
for (int i = 0; i < 512 && stackFrame.AddrPC.Offset; ++i)
{
if (StackWalk(IMAGE_FILE_MACHINE_I386, hProcess, hThread, &stackFrame, &context, NULL, NULL, NULL, NULL) != FALSE)
{
fprintf(fException, "0x%08x\t", stackFrame.AddrPC.Offset);
EnumerateLoadedModules(hProcess, (PENUMLOADED_MODULES_CALLBACK)EnumerateLoadedModulesProc, &stackFrame.AddrPC.Offset);
fprintf(fException, "\n");
}
else
{
break;
}
}
fprintf(fException, "\n");
fflush(fException);
fclose(fException);
fException = NULL;
WinExec("errorlog.exe", SW_SHOW);
}
return EXCEPTION_EXECUTE_HANDLER;
}
- Katılım
- 11 Mar 2017
- Konular
- 146
- Mesajlar
- 2,117
- Çözüm
- 20
- Online süresi
- 6mo 15d
- Reaksiyon Skoru
- 1,776
- Altın Konu
- 2
- Başarım Puanı
- 284
- MmoLira
- 3,271
- DevLira
- 16
paylaşım için teşekkürler
- Katılım
- 3 Eki 2017
- Konular
- 1,673
- Mesajlar
- 18,445
- Çözüm
- 48
- Online süresi
- 9mo 24d
- Reaksiyon Skoru
- 8,721
- Altın Konu
- 297
- Başarım Puanı
- 374
- MmoLira
- 41,550
- DevLira
- 753
Paylaşım için teşekkürler.
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 1
- Görüntüleme
- 734
- Cevaplar
- 8
- Görüntüleme
- 3K
- Kilitli
- Cevaplar
- 16
- Görüntüleme
- 10K








