|
从某外国的人的汇编代码移植过来的,对StrongOD无效。。。
很久没在WIN32底层版发贴,当灌水了。。。
- #include <Windows.h>
- int main()
- {
- char str0[]="Debugger not detected!";
- char str1[]="Debugger detected!";
- char str2[]="Check Debugger";
- PVOID p=(PVOID)GetProcAddress(LoadLibraryW(L"user32.dll"),"MessageBoxA");
- system("pause");
- __try
- {
- __asm //check debugger
- {
- int 0x2d
- nop
- }
- }
- __except(EXCEPTION_EXECUTE_HANDLER)
- {
- __asm //Debugger not detected!
- {
- xor eax,eax
- push eax
- lea eax,str2
- push eax
- lea eax,str0
- push eax
- xor eax,eax
- push eax
- call p
- }
- goto end;
- }
- __asm //Debugger detected!
- {
- xor eax,eax
- push eax
- lea eax,str2
- push eax
- lea eax,str1
- push eax
- xor eax,eax
- push eax
- call p
- }
- end:
- return 0;
- }
复制代码 |
|