forked from zer0fl4g/DebugDetector
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDLLMain.cpp
More file actions
40 lines (33 loc) · 651 Bytes
/
Copy pathDLLMain.cpp
File metadata and controls
40 lines (33 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "DLLMain.h"
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
return true;
}
__declspec(dllexport) TCHAR* __cdecl PluginName(void)
{
return L"OutputDebugString";
}
__declspec(dllexport) char* __cdecl PluginVersion(void)
{
return __DATE__;
}
__declspec(dllexport) TCHAR* __cdecl PluginErrorMessage(void)
{
return sErrorMessage;
}
__declspec(dllexport) DWORD __cdecl PluginDebugCheck(int iWinVer)
{
char szMessage[] = "DebugCheck";
__asm
{
xor eax,eax
lea ebx, szMessage
push ebx
call dword ptr OutputDebugStringA
cmp eax,1
ja DebuggerFound
}
return 0;
__asm{DebuggerFound:}
return 1;
}