HariboteOS/day28/app/crack7.asm
2021-06-01 21:15:52 +08:00

25 lines
325 B
NASM
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

; 因为换成了ELF无法使用
GLOBAL main
main:
MOV AX, 1005 * 8
MOV DX, AX
CMP DWORD [DS:0x0004], 'Hari'
JNE fin
MOV ECX, [DS:0x0000]
MOV AX, 2005 * 8
MOV DS, AX
crackloop:
ADD ECX, -1
MOV BYTE [DS:ECX], 123
CMP ECX, 0
JNE crackloop
fin:
MOV EDX, 4
INT 0x40