检测内存中的 Soft-Ice又一法

时间:2005-12-20 来源: 作者: 点击:
概述: 有 Soft-ICE 在内存中可不大好玩,以下指令是检测 Soft-ICE 的,不要问为什么,这些都是 Soft-ICE 自己检测自己用的。 汇编编程示例: code segment assume cs:code,ds:code org 100h start: mov ax,0911h ;exit command mov dx,offset d_exit mov si,4647h mov
  概述:

    有 Soft-ICE 在内存中可不大好玩,以下指令是检测 Soft-ICE 的,不要问为什么,这些都是 Soft-ICE 自己检测自己用的。

汇编编程示例:


code    segment
        assume    cs:code,ds:code
        org    100h
start:
        mov    ax,0911h         ;exit command
        mov    dx,offset d_exit
        mov    si,4647h
        mov    di,4a4dh
        int    3
       
        xor    ax,ax             ;check s-ice
        mov    si,4746h
        mov    di,4a4dh
        int    3
        cmp    si,4647h
        jz    found_sice
       
        xor    ax,ax             ;check s-ice
        mov    si,4647h
        mov    di,4a4dh
        int    3
        cmp    si,4647h
        jnz    found_sice
       
        mov    ah,9
        mov    dx,offset d_ok
        int    21h
        int    20h
found_sice:
        mov    ah,9
        mov    dx,offset d_sice
        int    21h
        int    20h

d_ok        db    'OK, passed...',0dh,0ah,24h
d_sice      db    'I found S-ICE in memory, so Bye-bye !',0dh,0ah,24h
d_exit      db    'exit',0dh,0

code    ends
        end    start

------分隔线----------------------------
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
推荐内容