All pastes #708552 Raw Edit

xda

public text v1 · immutable
#708552 ·published 2007-09-23 22:44 UTC
rendered paste body

extern printf
extern execl
extern execlp


global main
section	.data
filename3: db "./a.out",0
hello: db "hello",10,0
fmt:	db "%s",10


section .bss

filename: resb 500

section .text

main:

        push    ebp		
        mov     ebp,esp
        push	ebx

push hello
push fmt
call printf
add esp,8

mov eax,0
	push filename3
	push filename3
	push eax
	call execl
	add esp,12