mirror of
https://github.com/NohamR/MasterPDFEditor-patch.git
synced 2026-10-10 18:19:52 +00:00
Add inject.sh and permanent injection docs
This commit is contained in:
10
README.md
10
README.md
@@ -20,10 +20,20 @@ Output: `MasterPDFEditor.dylib`
|
||||
|
||||
## Usage
|
||||
|
||||
To use the dylib, you have two options:
|
||||
|
||||
**Option 1 — DYLD_INSERT_LIBRARIES** (requires SIP to be turned off; refer to [Apple's documentation](https://developer.apple.com/documentation/security/disabling-and-enabling-system-integrity-protection)):
|
||||
|
||||
```sh
|
||||
DYLD_INSERT_LIBRARIES=/path/to/MasterPDFEditor.dylib '/Applications/Master PDF Editor.app/Contents/MacOS/Master PDF Editor'
|
||||
```
|
||||
|
||||
**Option 2 — Permanent injection** (uses [optool](https://github.com/alexzielenski/optool) to inject the dylib into the app bundle):
|
||||
|
||||
```sh
|
||||
./inject.sh /path/to/MasterPDFEditor.dylib '/Applications/Master PDF Editor.app'
|
||||
```
|
||||
|
||||
## Analysis
|
||||
|
||||
Full reverse engineering write-up: [noham.dev](https://noh.am/en/posts/master-pdf-editor-patch-analysis/)
|
||||
Reference in New Issue
Block a user