]> git.saurik.com Git - cycript.git/blobdiff - Baton.hpp
Implemented Mach injection: Cycript into any process.
[cycript.git] / Baton.hpp
diff --git a/Baton.hpp b/Baton.hpp
new file mode 100644 (file)
index 0000000..45f0ec9
--- /dev/null
+++ b/Baton.hpp
@@ -0,0 +1,12 @@
+#include <dlfcn.h>
+#include <mach/mach.h>
+
+struct Baton {
+    void (*_pthread_set_self)(pthread_t);
+    int (*pthread_create)(pthread_t *, const pthread_attr_t *, void *(*)(void *), void *);
+    int (*pthread_detach)(pthread_t);
+    void *(*dlopen)(const char *, int);
+    mach_port_t (*mach_thread_self)();
+    kern_return_t (*thread_terminate)(thread_act_t);
+    char library[];
+};