Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
1: redirect the home directory of the jailbreak root process
2: add signal capture to launchd's crashreporter
3: redirect preference paths for some apple internal apps
  • Loading branch information
roothider committed Oct 26, 2024
1 parent 0be0ba9 commit acf5f1f
Show file tree
Hide file tree
Showing 25 changed files with 474 additions and 100 deletions.
4 changes: 2 additions & 2 deletions BaseBin/clean
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ cd "watchdoghook"
make clean
cd -

# rootlesshooks
cd "rootlesshooks"
# roothidehooks
cd "roothidehooks"
make clean
cd -

Expand Down
4 changes: 2 additions & 2 deletions BaseBin/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ cd "watchdoghook"
make clean
cd -

# rootlesshooks
cd "rootlesshooks"
# roothidehooks
cd "roothidehooks"
make clean
cd -

Expand Down
12 changes: 11 additions & 1 deletion BaseBin/launchdhook/src/crashreporter.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#import <mach/mach.h>
#include <stdio.h>

typedef int exception_type_t;
typedef integer_t exception_data_type_t;

#pragma pack(4)
typedef struct {
mach_msg_header_t header;
mach_msg_body_t msgh_body;
Expand All @@ -15,13 +17,17 @@ typedef struct {
int subcode;
NDR_record_t ndr;
} exception_raise_request; // the bits we need at least
#pragma pack()

#pragma pack(4)
typedef struct {
mach_msg_header_t header;
NDR_record_t ndr;
kern_return_t retcode;
} exception_raise_reply;
#pragma pack()

#pragma pack(4)
typedef struct {
mach_msg_header_t header;
NDR_record_t ndr;
Expand All @@ -30,6 +36,7 @@ typedef struct {
mach_msg_type_number_t new_stateCnt;
natural_t new_state[614];
} exception_raise_state_reply;
#pragma pack()

typedef enum {
kCrashReporterStateNotActive = 0,
Expand All @@ -39,4 +46,7 @@ typedef enum {

void crashreporter_start(void);
void crashreporter_pause(void);
void crashreporter_resume(void);
void crashreporter_resume(void);

FILE *crashreporter_open_outfile(const char *source, char **nameOut);
void crashreporter_save_outfile(FILE *f);
Loading

0 comments on commit acf5f1f

Please sign in to comment.