Skip to content

Commit

Permalink
Payload Guest Fix Thanks @BestPig
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoStretch authored Aug 16, 2024
1 parent 6d31cea commit 67cf564
Show file tree
Hide file tree
Showing 23 changed files with 2,036 additions and 922 deletions.
Binary file added installer/build/embed.o
Binary file not shown.
Binary file added installer/build/main.o
Binary file not shown.
89 changes: 46 additions & 43 deletions installer/include/offsets/1000.h
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
#ifndef __OFFSETS_H__
#define __OFFSETS_H__
#pragma once

// 10.00
#define XFAST_SYSCALL_addr 0x000001C0

// Names - Data
#define PRISON0_addr 0x0111B8B0
#define ROOTVNODE_addr 0x01B25BD0
#define PMAP_STORE_addr 0x02182D60
#define DT_HASH_SEGMENT_addr 0x00CE6DC8

// Functions
#define pmap_protect_addr 0x000E2420
#define pmap_protect_p_addr 0x000E2467

// Patches
// debug menu error
#define debug_menu_error_patch1 0x004EC908
#define debug_menu_error_patch2 0x004ED9CE

// disable signature check
#define disable_signature_check_patch 0x006926E0

// enable debug RIFs
#define enable_debug_rifs_patch1 0x0064A510
#define enable_debug_rifs_patch2 0x0064A540

// allow sys_dynlib_dlsym in all processes
#define sys_dynlib_dlsym_patch1 0x0019025F
#define sys_dynlib_dlsym_patch2 0x001BEA40

// disable some check for mmap
#define vm_map_protect_check 0x0039207B

// enable debug log
#define enable_debug_log_patch 0x000C51D7

// enable uart output
#define enable_uart_patch 0x01A78A78

#endif
#ifndef __OFFSETS_H__
#define __OFFSETS_H__
#pragma once

// 10.00
#define XFAST_SYSCALL_addr 0x000001C0

// Names - Data
#define PRISON0_addr 0x0111B8B0
#define ROOTVNODE_addr 0x01B25BD0
#define PMAP_STORE_addr 0x02182D60
#define DT_HASH_SEGMENT_addr 0x00CE6DC8

// Functions
#define pmap_protect_addr 0x000E2420
#define pmap_protect_p_addr 0x000E2467

// Patches
// debug menu error
#define debug_menu_error_patch1 0x004EC908
#define debug_menu_error_patch2 0x004ED9CE

// disable signature check
#define disable_signature_check_patch 0x006926E0

// enable debug RIFs
#define enable_debug_rifs_patch1 0x0064A510
#define enable_debug_rifs_patch2 0x0064A540

// allow sys_dynlib_dlsym in all processes
#define sys_dynlib_dlsym_patch1 0x0019025F
#define sys_dynlib_dlsym_patch2 0x001BEA40

// patch sys_mmap to allow rwx mappings
#define sys_mmap_patch 0x000ED59A

// disable some check for mmap
#define vm_map_protect_check 0x0039207B

// enable debug log
#define enable_debug_log_patch 0x000C51D7

// enable uart output
#define enable_uart_patch 0x01A78A78

#endif
89 changes: 46 additions & 43 deletions installer/include/offsets/1001.h
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
#ifndef __OFFSETS_H__
#define __OFFSETS_H__
#pragma once

// 10.01
#define XFAST_SYSCALL_addr 0x000001C0

// Names - Data
#define PRISON0_addr 0x0111B8B0
#define ROOTVNODE_addr 0x01B25BD0
#define PMAP_STORE_addr 0x02182D60
#define DT_HASH_SEGMENT_addr 0x00CE6DC8

// Functions
#define pmap_protect_addr 0x000E2420
#define pmap_protect_p_addr 0x000E2467

// Patches
// debug menu error
#define debug_menu_error_patch1 0x004EC908
#define debug_menu_error_patch2 0x004ED9CE

// disable signature check
#define disable_signature_check_patch 0x006926E0

// enable debug RIFs
#define enable_debug_rifs_patch1 0x0064A510
#define enable_debug_rifs_patch2 0x0064A540

// allow sys_dynlib_dlsym in all processes
#define sys_dynlib_dlsym_patch1 0x0019025F
#define sys_dynlib_dlsym_patch2 0x001BEA40

// disable some check for mmap
#define vm_map_protect_check 0x0039207B

// enable debug log
#define enable_debug_log_patch 0x000C51D7

// enable uart output
#define enable_uart_patch 0x01A78A78

#endif
#ifndef __OFFSETS_H__
#define __OFFSETS_H__
#pragma once

// 10.01
#define XFAST_SYSCALL_addr 0x000001C0

// Names - Data
#define PRISON0_addr 0x0111B8B0
#define ROOTVNODE_addr 0x01B25BD0
#define PMAP_STORE_addr 0x02182D60
#define DT_HASH_SEGMENT_addr 0x00CE6DC8

// Functions
#define pmap_protect_addr 0x000E2420
#define pmap_protect_p_addr 0x000E2467

// Patches
// debug menu error
#define debug_menu_error_patch1 0x004EC908
#define debug_menu_error_patch2 0x004ED9CE

// disable signature check
#define disable_signature_check_patch 0x006926E0

// enable debug RIFs
#define enable_debug_rifs_patch1 0x0064A510
#define enable_debug_rifs_patch2 0x0064A540

// allow sys_dynlib_dlsym in all processes
#define sys_dynlib_dlsym_patch1 0x0019025F
#define sys_dynlib_dlsym_patch2 0x001BEA40

// patch sys_mmap to allow rwx mappings
#define sys_mmap_patch 0x000ED59A

// disable some check for mmap
#define vm_map_protect_check 0x0039207B

// enable debug log
#define enable_debug_log_patch 0x000C51D7

// enable uart output
#define enable_uart_patch 0x01A78A78

#endif
87 changes: 45 additions & 42 deletions installer/include/offsets/1050.h
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
#ifndef __OFFSETS_H__
#define __OFFSETS_H__
#pragma once

// 10.50
#define XFAST_SYSCALL_addr 0x000001C0

// Names - Data
#define PRISON0_addr 0x0111B910
#define ROOTVNODE_addr 0x01BF81F0
#define PMAP_STORE_addr 0x01B2CEE0
#define DT_HASH_SEGMENT_addr 0x00CE7008

// Functions
#define pmap_protect_addr 0x00046EF0
#define pmap_protect_p_addr 0x00046F37

// Patches
// debug menu error
#define debug_menu_error_patch1 0x004E6DA8
#define debug_menu_error_patch2 0x004E7E6E

// disable signature check
#define disable_signature_check_patch 0x006C4C00

// enable debug RIFs
#define enable_debug_rifs_patch1 0x0064E930
#define enable_debug_rifs_patch2 0x0064E960

// allow sys_dynlib_dlsym in all processes
#define sys_dynlib_dlsym_patch1 0x00213088
#define sys_dynlib_dlsym_patch2 0x002DAB60

// disable some check for mmap
#define vm_map_protect_check 0x0047B2EC

// enable debug log
#define enable_debug_log_patch 0x00450F67

// enable uart output
#define enable_uart_patch 0x01A3BCA0

#ifndef __OFFSETS_H__
#define __OFFSETS_H__
#pragma once

// 10.50
#define XFAST_SYSCALL_addr 0x000001C0

// Names - Data
#define PRISON0_addr 0x0111B910
#define ROOTVNODE_addr 0x01BF81F0
#define PMAP_STORE_addr 0x01B2CEE0
#define DT_HASH_SEGMENT_addr 0x00CE7008

// Functions
#define pmap_protect_addr 0x00046EF0
#define pmap_protect_p_addr 0x00046F37

// Patches
// debug menu error
#define debug_menu_error_patch1 0x004E6DA8
#define debug_menu_error_patch2 0x004E7E6E

// disable signature check
#define disable_signature_check_patch 0x006C4C00

// enable debug RIFs
#define enable_debug_rifs_patch1 0x0064E930
#define enable_debug_rifs_patch2 0x0064E960

// allow sys_dynlib_dlsym in all processes
#define sys_dynlib_dlsym_patch1 0x00213088
#define sys_dynlib_dlsym_patch2 0x002DAB60

// patch sys_mmap to allow rwx mappings
#define sys_mmap_patch 0x0019C42A

// disable some check for mmap
#define vm_map_protect_check 0x0047B2EC

// enable debug log
#define enable_debug_log_patch 0x00450F67

// enable uart output
#define enable_uart_patch 0x01A3BCA0

#endif
87 changes: 45 additions & 42 deletions installer/include/offsets/1070-1071.h
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
#ifndef __OFFSETS_H__
#define __OFFSETS_H__
#pragma once

// 10.70 - 10.71
#define XFAST_SYSCALL_addr 0x000001C0

// Names - Data
#define PRISON0_addr 0x0111B910
#define ROOTVNODE_addr 0x01BF81F0
#define PMAP_STORE_addr 0x01B2CEE0
#define DT_HASH_SEGMENT_addr 0x00CE7008

// Functions
#define pmap_protect_addr 0x00046EF0
#define pmap_protect_p_addr 0x00046F37

// Patches
// debug menu error
#define debug_menu_error_patch1 0x004E6DA8
#define debug_menu_error_patch2 0x004E7E6E

// disable signature check
#define disable_signature_check_patch 0x006C4C00

// enable debug RIFs
#define enable_debug_rifs_patch1 0x0064E930
#define enable_debug_rifs_patch2 0x0064E960

// allow sys_dynlib_dlsym in all processes
#define sys_dynlib_dlsym_patch1 0x00213088
#define sys_dynlib_dlsym_patch2 0x002DAB60

// disable some check for mmap
#define vm_map_protect_check 0x0047B2EC

// enable debug log
#define enable_debug_log_patch 0x00450F67

// enable uart output
#define enable_uart_patch 0x01A3BCA0

#ifndef __OFFSETS_H__
#define __OFFSETS_H__
#pragma once

// 10.70 - 10.71
#define XFAST_SYSCALL_addr 0x000001C0

// Names - Data
#define PRISON0_addr 0x0111B910
#define ROOTVNODE_addr 0x01BF81F0
#define PMAP_STORE_addr 0x01B2CEE0
#define DT_HASH_SEGMENT_addr 0x00CE7008

// Functions
#define pmap_protect_addr 0x00046EF0
#define pmap_protect_p_addr 0x00046F37

// Patches
// debug menu error
#define debug_menu_error_patch1 0x004E6DA8
#define debug_menu_error_patch2 0x004E7E6E

// disable signature check
#define disable_signature_check_patch 0x006C4C00

// enable debug RIFs
#define enable_debug_rifs_patch1 0x0064E930
#define enable_debug_rifs_patch2 0x0064E960

// allow sys_dynlib_dlsym in all processes
#define sys_dynlib_dlsym_patch1 0x00213088
#define sys_dynlib_dlsym_patch2 0x002DAB60

// patch sys_mmap to allow rwx mappings
#define sys_mmap_patch 0x0019C42A

// disable some check for mmap
#define vm_map_protect_check 0x0047B2EC

// enable debug log
#define enable_debug_log_patch 0x00450F67

// enable uart output
#define enable_uart_patch 0x01A3BCA0

#endif
Loading

0 comments on commit 67cf564

Please sign in to comment.