Skip to content

ReverseApple/inject_aarch64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inject_aarch64

Simply clone the directory and run make which will create inject_arm64 and inject_arm64e respectively.

NOTE: AMFI needs to be turned off for arm64e if you are targeting Apple binaries until the ES method is implemented.

Below is a simple usage on the Books application.

First step is creating the library.

$ cat lib.c
#include <stdio.h>

__attribute__((constructor))
static void ctor(void)
{
    printf("hello from ReverseApple\n");
}
$ gcc lib.c -dynamiclib -o lib.dylib -arch arm64e
$ # create ~/Library/Logs/AirTraffic directory because it can be read from sandbox
$ mkdir ~/Library/Logs/AirTraffic
$ # copy to previous location to respect the sandbox
$ cp lib.dylib ~/Library/Logs/AirTraffic/airtraffic.log
$ sudo ./inject_arm64e 42448 ~/Library/Logs/AirTraffic/airtraffic.log

Running against Books

About

arm64 and arm64e dylib injector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published