- Download the files into a directory.
- Replace the API key with your own in
gpt.js
- Run
npm i
- Run
node .
- Connect to it using
telnet
This article aims to describe how to hook Swift functions.
Thanks to help from @NightwindDev for discussion and testing.
Overall, the idea is simple:
Write our own Swift code that will have the same calling convention as the target code,
then get a pointer to our own code and the target code, and call MSHookFunction
with
these values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CDView.swift | |
// CD | |
// | |
// Created by Daniel Kuntz on 7/3/23. | |
// | |
import SwiftUI | |
struct ShapeWithHole: Shape { |