Underc0de

Programación General => ASM => Mensaje iniciado por: ANTRAX en Abril 12, 2012, 10:57:54 AM

Título: [MASM] Shellcode example
Publicado por: ANTRAX en Abril 12, 2012, 10:57:54 AM
shellcode

Código (asm) [Seleccionar]
.386
.model flat, stdcall
option casemap:none

.code
start:
    push 0
    push 0
    push 0
    push 0
    call ebx
    ret
end start


example:

Código (asm) [Seleccionar]
.386
.model flat, stdcall
option casemap:none

include \masm32\include\windows.inc
include \masm32\include\user32.inc

includelib \masm32\lib\user32.lib

.data
shellcode db 6Ah, 00h, 6Ah, 00h, 6Ah, 00h, 6Ah, 00h, 0FFh, 0D3h, 0C3h

.code
start:
    mov ebx, MessageBoxW
    mov esi, offset shellcode
    call esi
    push 0
    call ExitProcess
end start


Autor: b0ss