Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/data/templates/src/elf/exe/elf_ppc64_template.s
20052 views
1
BITS 64
2
ehdr: ; Elf32_Ehdr
3
db 0x7F, "ELF", 2, 2, 1, 0 ; e_ident
4
db 0, 0, 0, 0, 0, 0, 0, 0 ;
5
dw 0x0200 ; e_type = ET_EXEC for an executable
6
dw 0x1500 ; e_machine = PPC64
7
dd 0x01000000 ; e_version
8
dq 0x7810000000000000 ; e_entry
9
dq 0x4000000000000000 ; e_phoff
10
dq 0 ; e_shoff
11
dd 0 ; e_flags
12
dw 0x4000 ; e_ehsize
13
dw 0x3800 ; e_phentsize
14
dw 0x0100 ; e_phnum
15
dw 0 ; e_shentsize
16
dw 0 ; e_shnum
17
dw 0 ; e_shstrndx
18
19
ehdrsize equ $ - ehdr
20
21
phdr: ; Elf32_Phdr
22
23
dd 0x01000000 ; p_type = pt_load
24
dd 0x07000000 ; p_flags = rwx
25
dq 0 ; p_offset
26
dq 0x0010000000000000 ; p_vaddr
27
dq 0x0010000000000000 ; p_paddr
28
dq 0xefbeadde ; p_filesz
29
dq 0xefbeadde ; p_memsz
30
dq 0x0000100000000000 ; p_align
31
32
phdrsize equ $ - phdr
33
34
_start:
35
dq 0x8010000000000000
36
37