Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
BITS 32
org 0x08048000
ehdr:
db 0x7F, "ELF", 1, 1, 1, 0
times 8 db 0
dw 2
dw 3
dd 1
dd _start
dd phdr - $$
dd 0
dd 0
dw ehdrsize
dw phdrsize
dw 1
dw 0
dw 0
dw 0
dw 0
ehdrsize equ $ - ehdr
phdr:
dd 1
dd 0
dd $$
dd $$
dd filesize
dd filesize
dd 5
dd 0x1000
phdrsize equ $ - phdr
_start:
xor eax,eax
xor ebx,ebx
xor edx,edx
mov al, 4
inc bl
mov ecx, string_start
mov dl, string_len
int 0x80
mov al, 1
int 0x80
string_start:
db "Hello world", 0x0a
string_len equ $ - string_start
filesize equ $ - $$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.