- UID
- 66114
注册时间2010-4-1
阅读权限30
最后登录1970-1-1
龙战于野
TA的每日心情 | 慵懒 2019-3-12 17:25 |
---|
签到天数: 3 天 [LV.2]偶尔看看I
|
楼主 |
发表于 2010-5-27 20:17:49
|
显示全部楼层
本帖最后由 whypro 于 2010-5-27 20:27 编辑
- .386
- .model flat, stdcall
- option casemap:none
- include \masm32\include\windows.inc
- include \masm32\include\kernel32.inc
- include \masm32\include\user32.inc
- includelib \masm32\lib\kernel32.lib
- includelib \masm32\lib\user32.lib
- .data
- szText db "嘿嘿,这是一个aitdbug程序……", 0
- szCaption db "debugger_found", 0
- szCaptionone db "no_found",0
- .code
- include testw.Inc
- main:
-
- jmp Do_It
-
- debugger_found:
- invoke MessageBox, NULL, addr szText, addr szCaption, MB_OK
- invoke ExitProcess, 0
-
- Do_It:
- ;invoke IsDebuggerPresent
- assume fs:nothing
- mov eax,fs:[30h]
- movzx eax,byte ptr [eax+02h]
- test eax,eax
- jnz debugger_found
- invoke MessageBox, NULL, addr szText, addr szCaptionone, MB_OK
- invoke ExitProcess, 0
- end main
复制代码 |
|