summaryrefslogtreecommitdiff
path: root/tools/defines.c
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-07-30 23:32:19 -0400
committerspv420 <spv@spv.sh>2022-07-30 23:32:19 -0400
commit630aecdb5082b7aabf38c4d5594fb236bebcceff (patch)
treedd65f68e2d342a53bd4cfa59d0a8fcd149376be2 /tools/defines.c
parente35a04268fb48fac634ca123a58584a26b513831 (diff)
hell
Diffstat (limited to 'tools/defines.c')
-rw-r--r--tools/defines.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/defines.c b/tools/defines.c
index 4c499b3..44edc28 100644
--- a/tools/defines.c
+++ b/tools/defines.c
@@ -15,6 +15,9 @@ void fuck(char* s) {
printf("var %s_addr = 0x%08x;\n", s, dlsym_cf(s));
}
+extern uint32_t bootstrap_port;
+
+
int main(int argc, char* argv[]) {
printf("#define PRINTF_ADDR 0x%x\n", dlsym(RTLD_DEFAULT, "printf"));
// printf("%x %x %x %x %x %x %x %x\n", RTLD_NOW, dlsym_cf("kCFTypeDictionaryKeyCallBacks"), 0x41414141);//, &kCFTypeDictionaryValueCallBacks, kCFNumberSInt32Type);
@@ -24,5 +27,6 @@ int main(int argc, char* argv[]) {
// fuck("kCFNumberSInt32Type");
fuck("CFDictionarySetValue");
fuck("CFNumberCreate");
+ printf("%x %x %x %x %x\n", SEEK_SET, SEEK_CUR, SEEK_END, RTLD_DEFAULT, bootstrap_port);
return 0;
}